
.bb-v2-editor-root [data-bb-v2-block-shell] {
    margin-top: 0;
}

.bb-v2-add-block-row {
    align-items: center;
    border-bottom: 1px solid #c5c5c5;
    border-top: 1px solid #c5c5c5;
    box-sizing: border-box;
    color: #db3a57;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    gap: 0;
    min-height: 128.8px;
    justify-content: center;
    overflow: visible;
    padding: 2rem 0;
    position: relative;
}

.bb-v2-editor-root > .bb-v2-add-block-row:first-child {
    margin-top: 0;
}

.bb-v2-add-block-row.is-open {
    min-height: 244px;
    padding: 2rem 16px;
}

.bb-v2-add-block-placeholder {
    align-items: center;
    background: transparent;
    border: 0;
    color: #db3a57;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    font-size: 16px;
    gap: 0;
    height: auto;
    justify-content: center;
    letter-spacing: 0;
    padding: 0;
    width: auto;
}

.bb-v2-add-block-placeholder .add-icon {
    align-items: center;
    border: 1px solid #db3a57;
    border-radius: 50%;
    display: inline-flex;
    height: 1.625rem;
    justify-content: center;
    line-height: 1;
    margin-bottom: 1rem;
    position: relative;
    transition: 0.5s rotate;
    width: 1.625rem;
}

.bb-v2-add-block-placeholder .add-icon span {
    background-color: #db3a57;
    border: 0;
    border-radius: 0;
    display: block;
    height: 1px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.75rem;
}

.bb-v2-add-block-placeholder .add-icon span:last-child {
    height: 0.75rem;
    width: 1px;
}

.bb-v2-add-block-placeholder.active {
    margin-bottom: 2.5rem;
}

.bb-v2-add-block-placeholder.active .add-icon {
    rotate: 45deg;
}

.bb-v2-block-palette {
    background: #ffffff;
    border: 1px solid #d2d5da;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 14px;
    max-width: 720px;
    padding: 14px;
    width: min(720px, calc(100vw - 48px));
    z-index: 60;
}

.bb-v2-block-palette__categories {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.bb-v2-block-category {
    background: #ffffff;
    border: 1px solid #d2d5da;
    border-radius: 4px;
    color: #000000;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-height: 40px;
    min-width: 92px;
    padding: 8px 14px;
}

.bb-v2-block-category.active {
    border-color: #db3a57;
    color: #db3a57;
}

.bb-v2-block-palette__group {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.bb-v2-block-option {
    background: #ffffff;
    border: 1px solid #d2d5da;
    border-radius: 4px;
    color: #000000;
    cursor: pointer;
    min-height: 88px;
    padding: 12px;
    text-align: left;
}

.bb-v2-block-option:hover,
.bb-v2-block-option:focus {
    border-color: #db3a57;
    outline: 0;
}

.bb-v2-block-option:disabled,
.bb-v2-block-option.is-loading {
    cursor: wait;
    opacity: 0.64;
}

.bb-palette-card {
    display: grid;
    gap: 5px;
}

.bb-palette-card strong {
    font-size: 15px;
    font-weight: 600;
}

.bb-palette-card span {
    color: #4b5563;
    font-size: 12px;
}

.editable-continer {
    position: relative;
}

.bb-v2-structural-form-shell {
    position: relative;
}

.bb-v2-structural-form-shell:not(.bb-v2-structural-form-shell--embedded):not(#header-form-horizontal) > .edit-design-btn[aria-label="Edit Hero Form"] {
    top: calc(3rem - 13px);
}

.editable-continer.edit-border,
.bb-v2-editor-root .edit-border {
    border: 1px dashed #db3a57;
}

/* Empty image fields render as a full-size grey placeholder, not a bare plus. */
.bb-v2-editor-root .bb-v2-image-placeholder {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    display: flex;
    font-size: 18px;
    font-weight: 400;
    justify-content: center;
    line-height: 1;
}

.bb-v2-editor-root .services__item-header .bb-v2-image-placeholder {
    flex: 0 0 auto;
    height: 64px;
    width: 64px;
}

.bb-v2-editor-root .bb-review-card__author .bb-v2-image-placeholder {
    border-radius: 50%;
    flex: 0 0 auto;
    height: 48px;
    width: 48px;
}

.bb-v2-editor-root .bb-editor-object {
    outline: 0;
    outline-offset: 0;
}

.edit-design-btn {
    align-items: center;
    background: #ffffff;
    border: 1px solid #db3a57;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    height: 25px;
    justify-content: center;
    position: absolute;
    right: -13px;
    top: -13px;
    width: 25px;
    z-index: 40;
}

/* !important is LOAD-BEARING here: V2 blocks carry V1 layout classes for
   pixel parity, and V1's stylesheet has broad img rules scoped to them
   (e.g. .articles-columns-container .article-column img { height: 9.375rem })
   that out-specify this selector and blow the pencil icons up to 150px.
   Every new parity class re-triggers that unless the size is forced. */
.edit-design-btn img,
.bb-editor-hotspot img {
    height: 15px !important;
    max-height: 15px !important;
    max-width: 15px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    object-fit: contain !important;
    width: 15px !important;
}

.bb-v2-structural .bb-v2-structural-header-btn {
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 80;
}

.bb-v2-structural > .bb-v2-structural-image-btn {
    right: 14px;
    top: 16px;
    z-index: 80;
}

.bb-v2-structural-hero > .bb-v2-structural-image-btn {
    right: 10px;
    top: 64px;
}

.edit-background-btn {
    right: 16px;
    top: 16px;
}

.circle {
    background: #ffffff;
    border: 1px solid #db3a57;
    border-radius: 50%;
    display: inline-block;
    height: 16px;
    position: relative;
    width: 16px;
}

.circle.r45 {
    rotate: 45deg;
}

.circle span:first-child {
    background: #db3a57;
    height: 7px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
}

.circle span:last-child {
    background: #db3a57;
    height: 1px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
}

/* One unified pencil rule everywhere: V1's 25px square .edit-design-btn. */
.bb-v2-editor-root .edit-design-btn,
.bb-v2-editor-root .bb-editor-hotspot {
    border-radius: 0.1875rem;
    height: 1.5625rem !important;
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    width: 1.5625rem !important;
    z-index: 45;
}

/* Delete hotspots keep V1's red circle (.circle.r45), not the pencil square. */
.bb-v2-editor-root .bb-editor-hotspot[data-bb-icon="x"] {
    background: transparent;
    border: 0;
    border-radius: 50%;
    height: auto !important;
    width: auto !important;
}

.bb-v2-editor-root .edit-design-btn[data-bb-block-id],
.bb-v2-editor-root .bb-editor-hotspot[data-bb-object-id] {
    position: absolute;
}

.bb-editor-hotspot--top-left {
    left: -13px;
    right: auto;
    top: -13px;
}

.bb-editor-hotspot--top-right {
    right: -13px;
    top: -13px;
}

.bb-editor-menu {
    background: #ffffff;
    border: 1px solid #d2d5da;
    border-radius: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    gap: 0;
    max-width: calc(100vw - 16px);
    min-width: 200px;
    padding: 0;
    left: 0;
    top: calc(100% + 6px);
    z-index: 90;
}

.bb-editor-menu--bottom-left {
    left: 0;
    right: auto;
    top: calc(100% + 6px);
    bottom: auto;
}

.bb-editor-menu--bottom-right {
    left: auto;
    right: 0;
    top: calc(100% + 6px);
    bottom: auto;
}

.bb-editor-menu--top-left {
    left: 0;
    right: auto;
    top: auto;
    bottom: calc(100% + 6px);
}

.bb-editor-menu--top-right {
    left: auto;
    right: 0;
    top: auto;
    bottom: calc(100% + 6px);
}

.bb-editor-menu button {
    border-radius: 0;
    color: #000000;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 16px;
    white-space: normal;
}

.bb-editor-menu button:hover {
    background: #ffffff;
    color: #000000;
}

.bb-v2-builder-page .bb-v2-image-placeholder,
.bb-v2-builder-page .review-customer-image.bb-v2-review-image-placeholder {
    align-items: center;
    background: #e9eaec;
    border-radius: 50%;
    color: #7a7f8a;
    cursor: pointer;
    display: inline-flex !important;
    font-size: 20px;
    font-weight: 500;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
}

.bb-editor-add-item {
    align-items: center;
    background: transparent;
    border: 0;
    color: #db3a57;
    display: flex;
    font-size: 12px;
    font-weight: 500;
    gap: 8px;
    justify-content: flex-start;
    line-height: 15.6px;
    margin: 35px 0 0 max(0px, calc((100% - 1398px) / 2));
    min-height: 16px;
    padding: 0;
    text-transform: uppercase;
    white-space: nowrap;
    width: auto;
}

.bb-editor-add-item::before {
    align-items: center;
    border: 1px solid #db3a57;
    border-radius: 50%;
    content: "+";
    display: inline-flex;
    font-size: 14px;
    height: 16px;
    justify-content: center;
    line-height: 1;
    width: 16px;
}

.bb-editor-add-item:hover,
.bb-editor-add-item:focus {
    color: #db3a57;
    text-decoration: underline;
}

.padding-range {
    align-items: center;
    align-self: center;
    display: flex;
    height: 3rem;
    justify-content: center;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: auto;
    z-index: 55;
}

.padding-range-top {
    top: calc((120px / 2) - 1.5rem);
}

.padding-range-bottom {
    bottom: calc((120px / 2) - 1.5rem);
}

.padding-edit-btn {
    background: #ffffff;
    border: 1px solid #db3a57 !important;
    border-radius: 4px;
    color: #db3a57;
    cursor: pointer;
    font-size: 12px;
    height: auto;
    line-height: normal;
    padding: 1.6px 6.4px;
    white-space: nowrap;
    width: auto;
}

.padding-edit-btn img {
    height: 13px;
    margin-left: 6px;
    width: 13px;
}

.close-range-btn {
    align-items: center;
    background: #ffffff;
    border: 1px solid #db3a57 !important;
    border-radius: 50%;
    color: #db3a57;
    display: flex;
    height: 20px;
    justify-content: center;
    margin-left: 8px;
    padding: 0 !important;
    width: 20px;
}

.bb-range {
    align-items: center;
    display: flex;
    min-width: 230px;
    position: relative;
}

.padding-range .bb-range.d-none,
.padding-range .close-range-btn.d-none,
.padding-range .padding-edit-btn.d-none {
    display: none !important;
}

.bb-range .range-input {
    accent-color: #db3a57;
    width: 230px;
}

.bb-range .output {
    background: #db3a57;
    border-radius: 4px;
    color: #ffffff;
    font-size: 11px;
    left: 50%;
    padding: 2px 5px;
    position: absolute;
    top: -22px;
    transform: translateX(-50%);
}

/* Hotspots anchor to their object; V1 cards aren't positioned on their own. */
.bb-v2-editor-root .bb-editor-object {
    position: relative;
}

.bb-v2-editor-root [data-bb-action] img,
.bb-v2-editor-root img[data-bb-action] {
    cursor: pointer;
}

/* Multi-page switcher bar: fixed above the page frame, which shifts down. */
.bb-v2-pages-bar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e3e6ea;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    height: 44px;
    left: 0;
    overflow-x: auto;
    padding: 0 16px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 500;
}

.bb-v2-builder-page.has-pages-bar {
    top: 44px;
}

/* V1's fixed navigation sits at viewport top; shift it below the bar. */
.bb-v2-builder-page.has-pages-bar #site-navigation {
    top: 44px !important;
}

/* Empty page: no artificial 800px void under the add-block row. */
.bb-v2-editor-root--empty {
    min-height: 0;
}

.bb-v2-pages-bar__label {
    color: #6c7280;
    font-size: 12px;
    font-weight: 700;
    margin-right: 4px;
    text-transform: uppercase;
}

.bb-v2-pages-bar__item {
    border: 1px solid #e3e6ea;
    border-radius: 4px;
    color: #2f3237;
    font-size: 13px;
    padding: 4px 10px;
    text-decoration: none;
}

.bb-v2-pages-bar__item.is-active {
    background: #db3a57;
    border-color: #db3a57;
    color: #ffffff;
}

/* The Preview action must stand out from the page pills (owner: the old
   grey-on-white link was barely visible). */
.bb-v2-pages-bar__preview {
    background: #172033;
    border-color: #172033;
    color: #ffffff;
    font-weight: 700;
    margin-left: auto;
}

.bb-v2-pages-bar__preview:hover {
    background: #2f3d5c;
    border-color: #2f3d5c;
    color: #ffffff;
    text-decoration: none;
}

/* V1 has no hover box on ADD NEW BLOCK - a global admin button hover was
   painting a grey square behind it (owner report). */
.bb-v2-add-block-placeholder:hover,
.bb-v2-add-block-placeholder:focus {
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
}

/* A closed hide-eye dims the whole row it controls (owner rule). */
#form-container.builder-side-panel .form-row.bb-hidden-field-row > *:not(label),
#form-container.builder-side-panel .form-row.bb-hidden-field-row label {
    opacity: 0.45;
}

#form-container.builder-side-panel .form-row.bb-hidden-field-row .hide-elem-btn {
    opacity: 1;
}

/* Palette redesign (owner): cute line icons, compact cards that fit the
   screen without scrolling, and a V1-style BACK row. */
.bb-v2-block-category {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    justify-content: center;
}

.bb-palette-tab-icon,
.bb-palette-tab-icon svg {
    display: inline-flex;
    height: 17px;
    width: 17px;
}

.bb-v2-block-palette__group {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.bb-v2-block-option {
    align-items: center;
    display: flex;
    gap: 12px;
    min-height: 74px;
    padding: 12px 14px;
}

.bb-palette-option-icon,
.bb-palette-option-icon svg {
    color: #db3a57;
    display: inline-flex;
    flex: 0 0 auto;
    height: 30px;
    width: 30px;
}

.bb-palette-option-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.bb-palette-option-copy .bb-palette-card strong {
    font-size: 14px;
}

.bb-palette-option-copy .bb-palette-card span {
    font-size: 12px;
    line-height: 1.35;
}

/* Preview + Refresh Website sit together at the right end (owner: keep
   buttons together) - only the FIRST right-side button eats the free space. */
.bb-v2-pages-bar__preview ~ .bb-v2-pages-bar__preview {
    margin-left: 8px;
}
