/*------------------------------------*\
  #ADDITIONAL STYLES
\*------------------------------------*/

.parametric_product .addPageButton {
    display: none;
}

.parametric_product .meuidialogwindow .modal-dialog {
    max-width: 600px;
}

.parametric_product .customScriptUi-mainControlsArea .control {
    position: initial;
}

.parametric_product button.btAdjustParameter {
    position: absolute;
    left: 4.5rem;
    bottom: 0rem;
    z-index: 9;
}

.parametric_product button.btAdjustParameter,
.parametric_product button.parametricEditor-animation-open,
.parametric_product button.parametricEditor-animation-close,
.parametric_product .zoom_options.buttons .btn {
    border: none;
}

.parametric_product .parametricEditor-info {
    padding-top: 0;
    position: absolute;
    top: 1.3rem;
    z-index: 9;
    right: 50%;
    transform: translateX(50%);
}

.parametric_product
.editorMain.pane.ui-layout-center.ui-layout-pane.ui-layout-pane-center {
    overflow: visible;
}

.parametric_product button.parametricEditor-animation-open,
.parametric_product button.parametricEditor-animation-close {
    position: fixed;
    top: 4.5rem;
    z-index: 9;
    width: 7rem;
}

.parametric_product button.parametricEditor-animation-close {
    right: 1rem;
}

.parametric_product button.parametricEditor-animation-open {
    right: 8rem;
    margin-right: 2px;
}

.parametric_product .customScriptUi-viewControls {
    padding-left: 8px;
    margin-top: -0.5rem;
}

.parametric_product button.btAdjustParameter:before,
.parametric_product button.parametricEditor-animation-open:before,
.parametric_product button.parametricEditor-animation-close:before {
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-family: "Font Awesome 5 Pro";
    content: "";
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

.parametric_product button.btAdjustParameter:before {
    content: "\f1b2";
}

.parametric_product button.parametricEditor-animation-open:before {
    content: "\f49e";
}

.parametric_product button.parametricEditor-animation-close:before {
    content: "\f466";
}

.parametric_product button.parametricEditor-switch3DView {
    position: absolute;
    top: 0.5rem;
    z-index: 2;
    right: 0.5rem;
}

/* li.lhTab.lhTabs_pages {
    display: none;
} */

/* .page-dynamicproduct-editor .editorMain {
    z-index: 1 !important;
} */

.cf_imageViewer_pageCounter,
.cf_imageViewer_prev.cf_imageViewer_navigation,
.cf_imageViewer_next.cf_imageViewer_navigation {
    display: none !important;
}

div#previewArea {
    pointer-events: none;
}

.previewDialog3D .modal-body {
    display: flex;
    justify-content: center;
}

    .previewDialog3D .modal-body canvas {
        width: auto !important;
        height: 75vh !important;
    }

.page-dynamicproduct-editor {
    body

{
    &.parametric_product

{
    margin: 0 !important;
}

}
}

.parametric_product {
    .me-editor-simple-preview-button, .FB-FormFooterContainer

{
    display: none !important;
}

}

.parametric_product {
    .meuidialogwindow

{
    .modal-body

{
    div [ng-switch-when="Slider"], div[ui-slider]

{
    display: none;
}

}
}
}

.parametric_product.closed_on_load button.parametricEditor-animation-open,
.parametric_product.closed_on_load button.parametricEditor-animation-close {
    display: block !important;
}

.parametric_product {
    .alert.notification

{
    z-index: 99999999;
}

}

.hidden-price-quantity {
    .product-main-wrapper

{
    .quantity-wrapper, .price

{
    display: none;
}

}

.picture-wrapper {
    display: none;
}

.details-wrapper {
    width: 80%;
    margin: 0 auto;
}

}

/* Editor tweaks */

.leftPaneTabbedContentArea .content span {
    display: block;
    font-size: 0.65rem;
    margin-top: -3px;
}

.leftPaneTabbedContentArea .content {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-content {
    display: flex;
}

.topicpage {
    padding-top: 3rem;
    padding-bottom: 3rem;
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.leftPaneTabbedContentArea .ui-draggable .media {
    align-items: center;
}

    .leftPaneTabbedContentArea .ui-draggable .media .icon,
    .leftPaneTabbedContentArea .ui-draggable .media .svg-icon,
    .leftPaneTabbedContentArea .ui-draggable .media .svg-icon .image {
        width: 2rem !important;
        height: 2rem !important;
    }

figure.media-left {
    margin-right: 1rem;
}

.leftPaneTabbedContentArea .content * {
    font-size: 1rem;
    text-transform: capitalize;
}

.editorLeft {
    width: 25.14286rem !important;
    z-index: 1 !important;
}

    .editorLeft #leftPaneTabs #leftPaneList .lhTab a {
        padding: 0.5rem;
        width: 5rem;
        font-size: 0.85rem
    }

.customFieldOptionsDialog {
    max-width: 25rem;
}

    .customFieldOptionsDialog .ui-tabs .ui-tabs-nav li .icon {
        display: none;
    }
/* .ui-tabs .ui-tabs-nav li span {
    color: white !important;
} */
/* .ui-tabs .ui-tabs-nav li.ui-state-active a, .ui-tabs .ui-tabs-nav li.is-active a {
    background-color: #ffffff;
} */
.parametric_product .parametricEditor-info {
    padding-top: 0;
    position: absolute;
    top: 0.9rem;
    z-index: 9;
    left: 9rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 2rem;
    font-size: 0.8rem;
    transform: none;
    right: 2rem;
    color: black !important;
    font-weight: bold;
    text-align: right;
}

.parametric_product button.btAdjustParameter {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0 !important;
    margin-bottom: 0 !important;
    z-index: 9;
    padding: 1rem 2rem;
}

.parametric_product .zoom_options.buttons .btn {
    padding: 0.75rem;
    height: auto;
    background: transparent;
}

#leftPane-fields .fieldsSelectorContainer .fieldList-Container .catfish-button {
    padding: 0.75rem !important;
    height: 3rem !important;
}

.fieldList-Container > .columns {
    margin-top: 1rem !important;
    padding-top: 0.75rem;
}

    .fieldList-Container > .columns .columns > .column {
        padding-bottom: 0;
        margin-bottom: -0.5rem;
    }

.parametric_product button.btAdjustParameter:before {
    margin-right: 5px !important;
}

@media screen and (min-width: 768px) and (max-width: 1400px) {
    html.page-dynamicproduct-editor {
        font-size: 1.15vw !important;
    }

    .editorTop.pane .catfish-button {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .parametric_product button.parametricEditor-animation-open, .parametric_product button.parametricEditor-animation-close {
        position: fixed;
        top: 4.5rem;
        z-index: 9;
        width: auto;
        background: transparent !important;
        height: auto !important;
        flex-direction: column;
        font-size: 0.7rem;
        padding: 0.5rem;
    }

        .parametric_product button.parametricEditor-animation-open:before, .parametric_product button.parametricEditor-animation-close:before {
            margin: 0;
        }

    .parametric_product button.parametricEditor-animation-close {
        right: 1rem;
    }

    .parametric_product button.parametricEditor-animation-open {
        right: 4rem;
        margin-right: 2px;
    }
}

.notification.alert-dismissible.alert-success.is-success.alert-dismissable a {
    display: block;
    padding: 1rem;
    text-align: center;
    text-decoration: none !important;
    margin-top: 10px;
    font-weight: normal;
    color: black !important;
    border-radius: 4px;
}

a.catfish-button.has-text-hidden-mobile.btn.btn-default.btn-me.viewControlButton.fullScreen {
    display: none;
}

.backgroundItemContainer.columns > .column {
    max-width: 20%;
}

.megaEditBodyClass-RegisteredUser .imageOptionsDialog div#imageTabs-photo,
.megaEditBodyClass-RegisteredUser .imageOptionsDialog div#imageTabs-effect {
    display: block !important
}

.megaEditBodyClass-RegisteredUser .imageOptionsDialog div#imageTabs-photo {
    order: 2;
}

.megaEditBodyClass-RegisteredUser div#imageTabs {
    display: flex;
    flex-flow: column;
}

.megaEditBodyClass-RegisteredUser div#effectControlButtonset {
    display: none;
}

.megaEditBodyClass-RegisteredUser .UISetCol.brightnessCol.column.ui-buttonset {
    display: none;
}

.megaEditBodyClass-RegisteredUser .UISetCol.contrastCol.column.ui-buttonset {
    display: none;
}

.megaEditBodyClass-RegisteredUser .UISetCol.gammaCol.column.ui-buttonset {
    display: none;
}

.megaEditBodyClass-RegisteredUser .UISetCol.pixelateCol.column.ui-buttonset {
    display: none;
}

.megaEditBodyClass-RegisteredUser .UISetCol.tintCol.column.ui-buttonset {
    display: flex;
    flex-direction: row;
    height: auto;
    z-index: 3;
}

    .megaEditBodyClass-RegisteredUser .UISetCol.tintCol.column.ui-buttonset > * {
        flex-grow: 1;
        flex-shrink: 1;
        min-width: 3rem;
        margin: 0.1rem;
        order: 1 !important;
    }

        .megaEditBodyClass-RegisteredUser .UISetCol.tintCol.column.ui-buttonset > *:last-child {
            order: 0;
        }

.megaEditBodyClass-RegisteredUser label.catfish-button.is-dark.ng-scope.ui-button.ui-widget.ui-state-default.ui-button-text-only.ui-corner-right {
    order: 10 !important;
}

.megaEditBodyClass-RegisteredUser .UISetRow.field.level.is-flex.effects__sharpnessandblend {
    display: none !important;
}

.megaEditBodyClass-RegisteredUser .UISetRow.field {
    margin-bottom: 0px !important;
    padding: 0px !important;
}

.megaEditBodyClass-RegisteredUser .sliderRow.opacityCol {
    display: none !important;
}

.megaEditBodyClass-RegisteredUser .imageOptionsDialog div#imageTabs-effect {
    padding-bottom: 0px;
    padding-top: 0.5rem;
}

.megaEditBodyClass-RegisteredUser ul.ui-tabs-nav.ui-helper-reset.ui-helper-clearfix.ui-widget-header.ui-corner-all {
    display: none;
}

.megaEditBodyClass-RegisteredUser .ui-dialog.ui-widget.ui-widget-content.ui-corner-all.ui-front.imageOptionsDialog.ui-draggable.ui-resizable {
    max-width: 19rem;
}

.megaEditBodyClass-RegisteredUser .UISetCol.tintCol.column.ui-buttonset label {
    text-align: left !important;
}

.megaEditBodyClass-RegisteredUser .imageOptionsDialog .ImageFXRow .collabel.label {
    text-align: left;
}

.megaEditBodyClass-RegisteredUser .imageOptionsDialog .ImageFXRow .tintCol {
    padding-left: 0.2rem;
}

.megaEditBodyClass-RegisteredUser .imageOptionsDialog .ImageFXRow .collabel.label {
    text-align: left;
    max-width: 2rem !important;
    min-width: 2rem !important;
}

.megaEditBodyClass-RegisteredUser .UISetCol.tintCol label.catfish-button {
    padding: 0.75rem;
    max-width: 4rem;
}

.megaEditBodyClass-RegisteredUser .UISetCol.tintCol .ui-slider.ui-slider-horizontal {
    max-width: 6rem;
    padding: 0px !important;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.megaEditBodyClass-RegisteredUser #textOptionsDialog.ui-dialog-content .ui-tabs-panel,
.megaEditBodyClass-RegisteredUser #customFieldOptionsDialog.ui-dialog-content .ui-tabs-panel,
.megaEditBodyClass-RegisteredUser #imageOptionsDialog.ui-dialog-content .ui-tabs-panel {
    border: none;
}

.megaEditBodyClass-RegisteredUser .imageOptionsDialog div#imageTabs-effect {
    padding-bottom: 0;
    padding-top: 1rem;
    order: 0;
    margin-bottom: -1rem !important;
}

.megaEditBodyClass-RegisteredUser li.textTab.textTabs_advanced,
.megaEditBodyClass-RegisteredUser li.textTab.textTabs_shadow,
.megaEditBodyClass-RegisteredUser .textTabs_details,
.megaEditBodyClass-RegisteredUser .imageTabs_details,
.megaEditBodyClass-RegisteredUser .customFieldTabs_details {
    display: none !important;
}

.megaEditBodyClass-RegisteredUser #textOptionsDialog ul.ui-tabs-nav.ui-helper-reset.ui-helper-clearfix.ui-widget-header.ui-corner-all {
    display: flex !important;
}

.megaEditBodyClass-RegisteredUser .rowlabel.label.ng-scope {
    font-size: 0.75rem !important;
    margin-bottom: 2px;
}

.megaEditBodyClass-RegisteredUser .UISetRow.field.fontScaleRow {
    margin-top: 5px;
}

.megaEditBodyClass-RegisteredUser .fontOptionRow__textoptions.field {
    margin-top: 5px;
}

.megaEditBodyClass-RegisteredUser .ui-dialog.textOptionsDialogOuter {
    max-width: 25rem;
}

.page-dynamicproduct-editor .messageCtrlContainer .messagesContainer {
    z-index: 9999999;
    .alert.notification

{
    padding: 2rem 2rem 2rem;
}

}

/* .editorLeft #leftPaneTabs #leftPaneList .lhTab.ui-state-active:after,
.editorLeft #leftPaneTabs #leftPaneList .lhTab.ui-state-active:before, 
.editorLeft #leftPaneTabs #leftPaneList .lhTab.ui-state-active.ui-state-hover:after, .editorLeft #leftPaneTabs #leftPaneList .lhTab.ui-state-active.ui-state-hover:before, .editorLeft #leftPaneTabs #leftPaneList .lhTab.ui-state-active:after, .editorLeft #leftPaneTabs #leftPaneList .lhTab.ui-state-active:before {
  background: radial-gradient(circle closest-side,transparent 0,transparent 50%,var(--Primary-hover-color) 0) 200% 200%/400% 400%
} */

.editorLeft #leftPaneTabs #leftPaneList .lhTab a:hover, .editorLeft #leftPaneTabs #leftPaneList .lhTab.ui-state-active a, .editorLeft #leftPaneTabs #leftPaneList .lhTab.ui-state-active.ui-state-hover a, .editorLeft #leftPaneTabs #leftPaneList .lhTab.ui-state-active a {
    background: var(--Primary-hover-color) !important;
}

button.svg-shapes-dropdown-button {
    padding: 1.5rem !important;
    height: 53.9px !important;
}

.freeTargetContainer {
    overflow: hidden;
}

/* .page-dynamicproduct-editor {
  .modal-footer, .ui-dialog-buttonpane  {
    button {
      &:first-of-type {
        color: white;
      }
      &:last-of-type {
        background: var(--Danger-hover-color);
        color: white;
      }
      &.ui-colorpicker-cancel {
        background: var(--Danger-hover-color)!important;
      }
    }
  }
} */

.page-dynamicproduct-editor {
    .ui-dialog-buttonpane

{
    justify-content: center;
}

}

.page-dynamicproduct-editor {
    div #mobileDeletionBox

{
    width: 28vw;
    position: absolute;
    right: 0;
    bottom: 1.5rem;
    border-radius: 4px;
    margin-bottom: 0px;
}

}
/* .parametric_product .editorBottom {
    z-index: -1;
    background: transparent !important;
} */

/* --- Brand Variables --- */
:root {
    --bb-primary-green: #29a073; /* Matched to the reference image */
    --bb-text-dark: #1a1a1a;
    --bb-text-light: #4a4a4a;
    --bb-bg-color: #ffffff;
}

/* --- Section Container --- */
.bb-best-sellers-section {
    background-color: var(--bb-bg-color);
    padding: 60px 20px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; /* Update to match your global font */
}

.bb-container {
    max-width: 1400px;
    margin: 0 auto;
}

.title {
    font-weight: 900;
}

.bb-section-title {
    text-align: center;
    color: var(--bb-text-dark);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 50px;
}

/* --- CSS Grid Layout --- */
.bb-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
}

/* --- Card Styling --- */
.bb-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .bb-product-card:hover {
        transform: translateY(-5px);
        opacity: 0.9;
    }

.bb-image-wrapper {
    height: 220px; /* Standardizes image heights */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bb-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bb-product-title {
    color: var(--bb-primary-green);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.bb-product-desc {
    color: var(--bb-text-light);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding: 0 10px;
}

/* --- Responsive Breakpoints --- */

/* Tablet & Smaller Desktops */
@media screen and (max-width: 1024px) {
    .bb-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices */
@media screen and (max-width: 600px) {
    .bb-product-grid {
        grid-template-columns: 1fr;
    }

    .bb-section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .bb-image-wrapper {
        height: auto;
        min-height: 180px;
    }

    button.parametricEditor-animation-close, button.parametricEditor-animation-open {
        position: fixed;
        top: 10.5rem !important;
        z-index: 9;
        width: 7rem;
    }
}

.bb-prop-icon {
    width: 65px;
    height: 65px;
    object-fit: contain; /* Ensures the GIF maintains its aspect ratio */
    display: block;
}

.page-dynamicproduct-editor {
    .dropdown-item-canvas-size

{
    pointer-events: none;
}

button.svg-shapes-dropdown-button {
    margin-bottom: 0 !important;
}

.customScriptUi-fieldsTab {
    .svg-shapes-dropdown-button

{
    .dropdown-menu

{
    top: 81%;
}

}
}

.catfish-button.is-primary.lhTabs_pages__add-page.is-fullwidth {
    display: none;
}

}

/*------------------------------------*\
  #BOTTOM BAR CONTROLS FIX 
\*------------------------------------*/

/* 1. Reset wrapper height and remove excessive padding */
.editorBottom {
    position: absolute !important;
    bottom: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 60px !important;
    padding: 10px 20px !important;
    z-index: 999999 !important;
    background-color: #ffffff !important;
    border-top: 1px solid #e5e5e5 !important;
}

/* 2. Force the inner elements into a single horizontal row */
.ui-layout-south__inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

/* 3. Ensure the price and warning button sit inline together */
.editorBottom .buttonContainer.rightSide {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    margin: 0 !important;
}

/* 4. Compact the price text into a single line to save vertical space */
.editorBottom .priceContainer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}

    .editorBottom .priceContainer .priceHeader h2,
    .editorBottom .priceContainer .price.title {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 1.2rem !important;
    }

/* 5. Ensure the main canvas and 3D preview stay behind the footer */
.megaEditMainContainer,
#webgl-container {
    z-index: 1 !important;
}

.buttons:not(:last-child) {
    margin-bottom: 0rem;
}

.page-catalog-product .priceScriptType_Info:first-of-type {
    display: none;
}

.editorBottom.is-attached-to-editor .priceContainer {
    position: absolute;
    bottom: 0.5rem;
    pointer-events: none;
    left: auto;
    right: 2rem;
    text-align: right;
}

@media (max-width: 1024px) {
    .memobilePageClass {
        left: 30%;
    }

    .editorBottom .priceContainer {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0px !important;
        margin: 0 !important;
    }

        .editorBottom .priceContainer .priceHeader h2,
        .editorBottom .priceContainer .price.title {
            margin: 0 !important;
            padding: 0 !important;
            font-size: 1rem !important;
        }
}

.parametric_product button.parametricEditor-animation-open,
.parametric_product button.parametricEditor-animation-close {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.parametric_product .editorMain.pane.ui-layout-center.ui-layout-pane.ui-layout-pane-center {
    overflow: visible;
    z-index: 1 !important;
}

.parametric_product {
    .ui-dialog:has(#dlgPopupInstruction .editor-popup) {
        max-width: 60vw;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%);
        .ui-dialog-titlebar {
            display: block;
            text-align: right;
            border: none;
            background-color: var(--brand-main-colors-and-font-primary-color);
            .ui-dialog-title {
                display: none;
            }
        }
        .ui-dialog-content, .ui-dialog-buttonpane {
            background-color: var(--brand-main-colors-and-font-primary-color);
            border: none;
            padding: 2rem;
            gap: 2rem;
        }
        /* .ict-image {
            border-radius: 100%;
            overflow: hidden;
        } */
        p#popupInstructionContent, .dont-show-again {
            color: white;
        }
        .dont-show-again {
            gap: 10px;
            display: flex;
        }
    }
}

.parametric_product .shoppingCartWrapper {
    padding-top: 0 !important;
}

.parametric_product .picker-buttons {
    button {
        text-transform: uppercase;
    }
}

.parametric_product .ui-dialog-buttonset {
    .ui-colorpicker-ok {
        color: white!important;
        background-color: var(--brand-main-colors-and-font-primary-color)!important;
    }
}

.parametric_product .main_view_controls {
    a {
        font-size: 1.5rem;
    }
}

.parametric_product .customScriptUi-fieldsTab {
    margin: 0px;
}

.cart--unitprice {
    .priceScriptMessageItem {
        span {
            font-size: 1rem;
            b {
                font-weight: normal;
            }
        }
    }
}