/* ==========================================================================
   Dynamic Product Pricing - 3D Viewer Frontend Styles
   ========================================================================== */


/* WooCommerce Gallery Container Setup */

.woocommerce-product-gallery {
    position: relative;
}


/* Floating Gallery Toggle Button Container */

.dpp-gallery-toggle-container {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;

    display: flex;
    gap: 8px;
}


/* Premium Glassmorphic Toggle Buttons */

.dpp-toggle-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;

    background: rgba(255, 255, 255, 0.8) !important;

    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.4) !important;

    color: #1a1a1a !important;

    font-weight: 600 !important;
    font-size: 12px !important;

    padding: 8px 16px !important;

    border-radius: 30px !important;

    cursor: pointer !important;

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.08) !important;

    transition:
        all
        0.25s
        cubic-bezier(0.4, 0, 0.2, 1) !important;

    line-height: 1 !important;

    text-transform: uppercase !important;

    letter-spacing: 0.5px !important;

    outline: none !important;

    text-decoration: none !important;
}


.dpp-toggle-btn:hover {
    background:
        rgba(255, 255, 255, 0.95) !important;

    transform:
        translateY(-1px) !important;

    box-shadow:
        0 6px 16px
        rgba(0, 0, 0, 0.12) !important;
}


.dpp-toggle-btn:active {
    transform:
        translateY(1px) !important;
}


.dpp-toggle-btn.active {
    background:
        #111111 !important;

    color:
        #ffffff !important;

    border-color:
        #111111 !important;

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.15) !important;
}


/* ==========================================================================
   3D Viewer Container
   ========================================================================== */


.dpp-3d-viewer-container {
    width: 100%;

    min-height: 450px;
    height: 100%;

    position: relative;

    background:
        radial-gradient(
            circle at center,
            #ffffff 0%,
            #f4f4f4 100%
        );

    border-radius: 8px;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    box-shadow:
        inset
        0 0 30px
        rgba(0, 0, 0, 0.02);
}


.dpp-3d-viewer-container canvas {
    display: block;

    width: 100% !important;
    height: 100% !important;
}


/* ==========================================================================
   3D Loader
   ========================================================================== */


.dpp-3d-loader {
    position: absolute;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 12px;

    color: #333333;

    font-weight: 500;

    font-size: 14px;

    z-index: 10;

    background:
        rgba(255, 255, 255, 0.9);

    padding: 24px;

    border-radius: 12px;

    box-shadow:
        0 8px 32px
        rgba(0, 0, 0, 0.05);

    border:
        1px solid
        rgba(255, 255, 255, 0.5);

    backdrop-filter:
        blur(4px);
}


.dpp-3d-loader .spinner {
    width: 32px;

    height: 32px;

    border:
        3px solid
        rgba(0, 0, 0, 0.07);

    border-top-color:
        #111111;

    border-radius:
        50%;

    animation:
        dpp-spin
        0.8s
        cubic-bezier(0.5, 0, 0.5, 1)
        infinite;
}


@keyframes dpp-spin {

    to {
        transform:
            rotate(360deg);
    }

}


/* Dashicons */

.dpp-toggle-btn .dashicons {
    font-size: 16px;

    width: 16px;
    height: 16px;

    display: inline-block;

    line-height: 1;

    vertical-align: middle;
}


/* ==========================================================================
   Top Listing Introduction
   ========================================================================== */

.dpp-top-listing-intro {
    margin: 0 0 20px;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.45;
}

.dpp-top-listing-intro p {
    margin: 0;
}

.dpp-top-listing-intro strong {
    font-weight: 700;
}

@media (max-width: 768px) {
    .dpp-top-listing-intro {
        margin-bottom: 30px;
        font-size: 16px;
        line-height: 1.5;
    }
}


/* ==========================================================================
   DPP Visual Product Options
   ========================================================================== */


.dpp-product-options {
    width: 100%;

    margin:
        0px 0;
}


.dpp-option-row {
    margin-bottom:
        15px;
}


.dpp-option-label {
    display: block;

    margin-bottom:
        12px;

    color:
        #1a1a1a;

    font-size:
        13px;

    font-weight:
        700;

    line-height:
        1.4;

    letter-spacing:
        0.04em;

    text-transform:
        uppercase;
}


/* ==========================================================================
   Hide Native Select
   ========================================================================== */


.dpp-native-select {
    position:
        absolute !important;

    width:
        1px !important;

    height:
        1px !important;

    padding:
        0 !important;

    margin:
        -1px !important;

    overflow:
        hidden !important;

    clip:
        rect(0, 0, 0, 0) !important;

    white-space:
        nowrap !important;

    border:
        0 !important;
}


/* ==========================================================================
   Visual Options Container
   ========================================================================== */


.dpp-visual-options {
    display:
        flex;

    flex-wrap:
        wrap;

    align-items:
        stretch;

    gap:
        10px;
}


/* ==========================================================================
   Base Visual Option
   ========================================================================== */


.dpp-visual-option {
    position:
        relative;

    display:
        inline-flex !important;

    align-items:
        center;

    justify-content:
        center;

    min-width:
        74px;

    min-height:
        44px;

    margin:
        0 !important;

    padding:
        10px 16px !important;

    background:
        #ffffff !important;

    color:
        #222222 !important;

    border:
        1px solid
        #d8d8d8 !important;

    border-radius:
        2px !important;

    box-shadow:
        none !important;

    font-family:
        inherit;

    font-size:
        13px !important;

    font-weight:
        500 !important;

    line-height:
        1.25 !important;

    text-align:
        center;

    text-transform:
        none !important;

    letter-spacing:
        normal !important;

    cursor:
        pointer;

    overflow:
        hidden;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.edge-profile .dpp-visual-option{
    border: none !important;
    background: transparent !important;
}

.colour-options .dpp-visual-option{
    border: none !important;
    background: transparent !important;
}    

.dpp-visual-option:hover:not(:disabled):not(.is-disabled) {
    border-color:
        #222222 !important;
}

.quantity {
    display: none;
}


/* ==========================================================================
   Text Options
   ========================================================================== */


.dpp-visual-option.is-text {
    min-width:
        82px;
}


/* ==========================================================================
   Image Options - Compact Cards
   ========================================================================== */


.dpp-visual-option.has-image {
    flex-direction: column;

    width: 65px;

    min-width: 65px;

    min-height: 65px;

    padding: 5px !important;

    gap: 4px;
}

.edge-profile .dpp-visual-option.has-image{
    width: 110px;
    min-width: 110px;
}

.colour-options .dpp-visual-option.has-image{
    width: 110px;
    min-width: 110px;
    height: 75px;
    max-height: 75px;
}

.dpp-visual-options.colour-options{
    gap: 4px;
}



/* Image Container */

.dpp-visual-option.has-image
.dpp-visual-option-image {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        100%;

    height:
        54px;

    overflow:
        hidden;

    background:
        #f5f5f5;
}

.edge-profile .dpp-visual-option.has-image
.dpp-visual-option-image {
    background: transparent;
    height: auto;
}    
.colour-options .dpp-visual-option.has-image
.dpp-visual-option-image {
    background: transparent;
    height: auto;
}    

/* Full Image Without Crop */

/* .dpp-visual-option.has-image
.dpp-visual-option-image img {
    display:
        block;

    width:
        100%;

    height:
        100%;

    max-width:
        35px;

    max-height:
        35px;

    margin:
        auto;

    object-fit:
        contain;
} */


/* Image Option Name */

.dpp-visual-option.has-image
.dpp-visual-option-name {
    display:
        block;

    width:
        100%;

    max-width:
        100%;

    font-size:
        11px;

    line-height:
        1.15;

    text-align:
        center;

    white-space:
        normal;

    overflow-wrap:
        anywhere;

    pointer-events:
        none;
}

.edge-profile span.dpp-visual-option-name {
    display: none !important;
}

.colour-options span.dpp-visual-option-name {
    font-weight: 600;
    font-size: 12px !important;
}

/* ==========================================================================
   Selected Option
   ========================================================================== */


.dpp-visual-option.is-selected {
    color:
        #ffffff !important;

    background:
        #1f1f1f !important;

    border-color:
        #1f1f1f !important;
}


.dpp-visual-option.has-image.is-selected {
    background:
        #ffffff !important;

    color:
        #1f1f1f !important;

    border-color:
        #1f1f1f !important;

    box-shadow:
        inset
        0 0 0 1px
        #1f1f1f !important;
}


/* ==========================================================================
   Selected Check
   ========================================================================== */




.dpp-visual-option.is-selected {
    display:
        flex;
}


/* ==========================================================================
   Disabled Option
   ========================================================================== */


.dpp-visual-option.is-disabled,
.dpp-visual-option:disabled {
    cursor:
        not-allowed !important;

    opacity:
        0.35;

    border-color:
        #dddddd !important;

    background:
        #f5f5f5 !important;

    color:
        #888888 !important;
}


.dpp-visual-option.is-disabled::after,
.dpp-visual-option:disabled::after {
    content:
        "";

    position:
        absolute;

    top:
        50%;

    left:
        10%;

    width:
        80%;

    height:
        1px;

    background:
        #999999;

    transform:
        rotate(-18deg);

    pointer-events:
        none;
}


/* ==========================================================================
   Pricing Information
   ========================================================================== */


.dpp-selection-info {
    margin:
        25px 0 20px;

    padding:
        16px 0;

    border-top:
        1px solid
        #e5e5e5;

    border-bottom:
        1px solid
        #e5e5e5;
}


.dpp-selection-info p {
    display:
        flex;

    justify-content:
        space-between;

    gap:
        15px;

    margin:
        6px 0;

    font-size:
        14px;
}


.dpp-selection-info span {
    font-weight:
        600;
}


/* ==========================================================================
   Area / MOQ
   ========================================================================== */


.dpp-area-section {
    margin-top:
        20px;
}


.dpp-moq-text {
    margin:
        0 0 12px;

    font-size:
        13px;

    font-weight:
        600;
}


.dpp-required-area-row {
    display:
        flex;

    align-items:
        center;

    gap:
        15px;
}


.dpp-required-area-row label {
    flex:
        1;

    margin:
        0;

    font-size:
        14px;

    font-weight:
        600;
}


.dpp-required-area {
    min-height:
        44px;

    padding:
        8px 12px !important;

    border:
        1px solid
        #cccccc !important;

    border-radius:
        2px !important;
}


.dpp-required-area:focus {
    border-color:
        #222222 !important;

    outline:
        none;

    box-shadow:
        0 0 0 1px
        #222222;
}


.dpp-required-area.dpp-input-error {
    border-color:
        #b32d2e !important;
}


/* ==========================================================================
   Total Price
   ========================================================================== */


.dpp-total-price-row {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    margin-top:
        12px;

    padding:
        16px 0;

    border-top:
        1px solid
        #333;

    font-size:
        18px;
}


.dpp-total-price-label {
    font-weight:
        600;
}


#dpp-total-price {
    font-size:
        22px;

    font-weight:
        700;
}


/* ==========================================================================
   Validation Message
   ========================================================================== */


.dpp-area-message {
    margin-top:
        10px;

    color:
        #b32d2e;

    font-size:
        13px;

    font-weight:
        600;
}


/* ==========================================================================
   Tablet
   ========================================================================== */


@media (max-width: 768px) {

    .dpp-option-row {
        margin-bottom:
            22px;
    }


    .dpp-visual-options {
        gap:
            8px;
    }


    .dpp-visual-option {
        min-width:
            68px;

        min-height:
            42px;

        padding:
            9px 12px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Compact Image Options
    |--------------------------------------------------------------------------
    */

    .dpp-visual-option.has-image {
        width:
            70px;

        min-width:
            70px;

        min-height:
            82px;

        padding:
            5px !important;
    }


    .dpp-visual-option.has-image
    .dpp-visual-option-image {
        height:
            35px;
    }


    .dpp-visual-option.has-image
    .dpp-visual-option-image img {
        max-width:
            100px;

        max-height:
            100px;
    }

}


/* ==========================================================================
   Mobile
   ========================================================================== */


@media (max-width: 480px) {

    .dpp-visual-options {
        display:
            grid;

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }


    /*
    |--------------------------------------------------------------------------
    | Text Options
    |--------------------------------------------------------------------------
    */

    .dpp-visual-option,
    .dpp-visual-option.is-text {
        width:
            100%;

        min-width:
            0;
    }


    /*
    |--------------------------------------------------------------------------
    | Compact Image Options
    |--------------------------------------------------------------------------
    */

    .dpp-visual-option.has-image {
        width:
            100%;

        min-width:
            0;

        min-height:
            80px;

        padding:
            5px !important;
    }


    .dpp-visual-option.has-image
    .dpp-visual-option-image {
        height:
            48px;
    }


    .dpp-visual-option.has-image
    .dpp-visual-option-image img {
        max-width:
            100px;

        max-height:
            100px;
    }


    /*
    |--------------------------------------------------------------------------
    | Required Area
    |--------------------------------------------------------------------------
    */

    .dpp-required-area-row {
        align-items:
            stretch;

        flex-direction:
            column;

        gap:
            8px;
    }


    .dpp-required-area {
        width:
            100% !important;
    }

}
#dpp-combination-message {
    color: #ff0000;
}

/* ==========================================================================
   DPP COLOUR SAMPLE PACK
   ========================================================================== */

.dpp-sample-request {
    margin-top: 30px;
    padding: 24px;
    background: #f3efe8;
    border: 1px solid #e2dbd1;
}

/* Need Colour Samples heading */

.dpp-order-samples{
    display:flex;
    align-items:center;
    gap:18px;
    cursor:pointer;
    margin-bottom:25px;
    user-select:none;
}

.dpp-order-samples input{
    position:absolute;
    opacity:0;
    width:1px;
    height:1px;
    margin:0;
    pointer-events:none;
}

.dpp-checkbox{
    width:20px;
    height:20px;
    background:#E0880B;
    position:relative;
    box-sizing:border-box;
    transition:.25s;
    display: inline-block;
    vertical-align: middle;
}
img.refresh_btn{
    width: 16px;
    vertical-align: middle;
}
.dpp-checkbox::after{
    content:"";
    position:absolute;
    left:9px;
    top:0px;
    width:6px;
    height:17px;
    border:solid #fff;
    border-width:0 3px 3px 0;
    transform:rotate(45deg);
    opacity:0;
    transition:.2s;
}

.dpp-order-samples input:checked + .dpp-checkbox{
    background:#E0880B;
    
}

.dpp-order-samples input:checked + .dpp-checkbox::after{
    opacity:1;
}

.dpp-order-title{
    font-size:18px;
    font-weight:500;
    letter-spacing:.5px;
    text-transform:uppercase;
    color:#090909;
    padding-left: 5px;
}

/* Top description */

.dpp-sample-request > .description {
    margin: 8px 0 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

/* Selection area */

#dpp-sample-selection {
    margin-top: 18px;
}

/* 4 columns per row */

.dpp-sample-colours {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

/* Individual colour */

.dpp-sample-colour {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

/* Hide colour checkbox only.
   Main "Need Colour Samples?" checkbox remains visible. */

.dpp-sample-colour-checkbox {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Colour image */

.dpp-sample-colour img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: cover;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Colour name */

.dpp-sample-colour > span {
    display: block;
    width: 100%;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
    color: #222;
}

/* Selected colour */

.dpp-sample-colour:has(
    .dpp-sample-colour-checkbox:checked
) img {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
}

/* Footer */

.dpp-sample-footer {
    grid-column: 1 / -1;
    margin-top: 8px;
}

/* Counter */

.dpp-sample-counter {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}

/* Add Sample Pack button */

#dpp-add-sample-pack {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 20px !important;
    background: #E0880B !important;
    color: #090909 !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    opacity: 1;
    border: 0px !important;
}

/* Refund information */

.dpp-sample-info {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.dpp-sample-info p {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    color: #666;
}

.dpp-action-buttons{
    display:flex;
    gap:20px;
    margin-top:20px;
}

.dpp-action-buttons .button{
    flex:1;
    height:56px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.dpp-delivery-button{
    margin:0 !important;
}

.single_add_to_cart_button{
    flex:1;
    margin:0 !important;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    .dpp-sample-request {
        margin-top: 24px;
        padding: 18px;
    }

    .dpp-sample-colours {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

.dpp-clear-selection {
    display: inline-block !important;
    padding: 0 !important;
    margin: 0 0 12px !important;
    background: transparent;
    border: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    cursor: pointer !important;
    color: #090909 !important;
}

.dpp-clear-selection:hover {
    background: transparent !important;
}
/* Selected option price */
.dpp-selected-price-row {
    display: none;
    margin: 14px 0 10px;
    font-size: 16px;
    line-height: 1.4;
}

.dpp-selected-price-row #dpp-price {
    font-weight: 600;
}

.dpp-selected-price-row .dpp-price-unit {
    margin-left: 4px;
    font-weight: 600;
}