body.dhdk-has-configurator .woocommerce-product-gallery,
body.dhdk-has-configurator .woocommerce div.product div.images,
body.dhdk-has-configurator div.product .images {
    display: none !important;
}

body.dhdk-has-configurator .woocommerce div.product div.summary,
body.dhdk-has-configurator div.product .summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
}

body.dhdk-has-configurator .woocommerce div.product {
    grid-template-columns: 1fr !important;
}

body.dhdk-has-configurator .dhdk-product-columns {
    display: flex;
    flex-wrap: wrap;
}

body.dhdk-has-configurator .dhdk-product-columns > .wp-block-column {
    flex-basis: 100% !important;
}

body.dhdk-has-configurator .dhdk-product-columns > .wp-block-column.dhdk-gallery-column {
    display: none !important;
}

.dhdk-configurator-shell {
    --dhdk-alignment-grid-drag-opacity: 0.78;
    --dhdk-alignment-grid-scale: 1;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    padding: 16px;
    border: 1px solid #d7dee7;
    border-radius: 14px;
    background-color: #e7eef5;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.dhdk-configurator-shell::before {
    content: none;
    display: none;
}

.dhdk-configurator {
    position: relative;
    z-index: 1;
}

.dhdk-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 18px;
    align-items: start;
}

.dhdk-canvas-col,
.dhdk-options-col {
    min-width: 0;
}

.dhdk-canvas-box {
    position: relative;
    border: 1px solid #cdd6e2;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
}

.dhdk-canvas-stage {
    position: relative;
}

.dhdk-canvas-stage.dhdk-stage-initial-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 420ms ease;
}

.dhdk-canvas-stage.dhdk-stage-initial-ready {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dhdk-canvas {
    width: 100%;
    height: auto;
    display: block;
    touch-action: none;
}

.dhdk-canvas-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.dhdk-control-btn {
    border: 1px solid #9db0c9;
    background: #fff;
    color: #1f2f45;
    border-radius: 7px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}

.dhdk-control-btn.dhdk-zoom-in,
.dhdk-control-btn.dhdk-zoom-out {
    width: 36px;
    min-width: 36px;
    padding: 0;
    font-size: 1.1rem;
}

.dhdk-control-btn.dhdk-change-image {
    margin-left: auto;
}

.dhdk-configurator-notice {
    position: relative;
    z-index: 5;
    margin-top: 6px;
    padding: 0 10px;
    font-size: 10px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.74);
    text-align: center;
}

.dhdk-configurator-notice p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: #fff;
    text-shadow: -1px 1px 2px rgba(0,0,0,0.8);
}

.dhdk-buybox-mobile-preview,
.dhdk-configurator-notice--buybox-mobile {
    display: none;
}

.dhdk-configurator-tips {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 99998;
    width: min(360px, calc(100% - 48px));
    padding: 15px;
    border-radius: 8px;
    background: rgba(17, 17, 17, 0.92);
    color: #fff;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.dhdk-configurator-tips__title {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: #fff;
}

.dhdk-configurator-tips.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dhdk-configurator-tips.is-fading-out {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
}

.dhdk-configurator-tips__content {
    font-size: 13px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.96);
}

.dhdk-configurator-tips__content p {
    margin-top: 0;
}

.dhdk-configurator-tips__content p:last-child {
    margin-bottom: 0;
}

.dhdk-configurator-tips__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 0;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.dhdk-control-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.dhdk-upload-dropzone {
    position: absolute;
    inset: 0;
    display: block;
    cursor: pointer;
    transition: opacity 180ms ease;
}

.dhdk-upload-dropzone.is-passive {
    opacity: 0;
    pointer-events: none;
}

.dhdk-upload-dropzone-text {
    display: none;
}

.dhdk-upload-outline {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    transition: opacity 180ms ease;
}

.dhdk-canvas-stage.has-customer-upload .dhdk-upload-outline {
    opacity: 0;
}

.dhdk-upload-outline-poly {
    fill: transparent;
    stroke: rgba(68, 166, 70, 0);
    stroke-width: 0.55;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: none;
    filter: drop-shadow(0 0 0 rgba(68, 166, 70, 0));
    animation: dhdkDropzoneBorderPulse 2.15s ease-out infinite;
}

.dhdk-canvas-stage.is-dragover .dhdk-upload-outline-poly {
    fill: transparent;
    stroke: rgba(68, 166, 70, 0.9);
    stroke-width: 0.7;
    animation-play-state: paused;
    filter: drop-shadow(0 0 10px rgba(68, 166, 70, 0.28));
}

.dhdk-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.dhdk-upload-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 160px;
    height: 120px;
    transform-origin: 0 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dhdk-upload-icon {
    width: var(--dhdk-upload-icon-size, 80px);
    height: var(--dhdk-upload-icon-size, 80px);
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    animation: dhdkUploadPulse 2.1s ease-in-out infinite;
}

.dhdk-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.dhdk-visually-hidden-file {
    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;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.dhdk-options-col {
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.dhdk-buybox-uploader {
    display: grid;
    gap: 8px;
}

.dhdk-buybox-uploader-label {
    display: block;
    font-weight: 600;
    color: #223247;
}

.dhdk-buybox-uploader-meta {
    font-size: 12px;
    color: #5a6b81;
}

.dhdk-custom-item-uploads {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.dhdk-custom-item-upload-block.is-hidden {
    display: none;
}

.dhdk-buybox-dropzone {
    min-height: 132px;
    border: 1px dashed #b9c8d8;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(246, 249, 252, 0.96) 0%, rgba(236, 242, 248, 0.96) 100%);
    display: block;
    padding: 14px;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.dhdk-buybox-dropzone:hover,
.dhdk-buybox-dropzone.is-dragover {
    border-color: #8ba5c4;
    background: linear-gradient(180deg, rgba(240, 246, 252, 0.98) 0%, rgba(226, 236, 246, 0.98) 100%);
    box-shadow: inset 0 0 0 1px rgba(139, 165, 196, 0.22);
}

.dhdk-buybox-dropzone-content {
    min-height: 102px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.dhdk-buybox-dropzone-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dhdk-buybox-dropzone-icon {
    width: 26px;
    height: 26px;
    display: block;
    background: url("../images/general/ico-fr-upload.svg") center / contain no-repeat;
    opacity: 0.8;
}

.dhdk-buybox-dropzone-text {
    font-size: 13px;
    line-height: 1.45;
    color: #34465d;
    font-weight: 600;
}

.dhdk-buybox-dropzone-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
}

.dhdk-buybox-upload-count-label,
.dhdk-buybox-upload-max-label {
    font-size: 11px;
    line-height: 1.35;
    color: #5a6b81;
}

.dhdk-buybox-upload-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 36px;
    margin-top: 10px;
}

.dhdk-buybox-upload-tile {
    flex: 0 0 calc(10% - 5.4px);
    width: calc(10% - 5.4px);
    max-width: calc(10% - 5.4px);
    min-width: 34px;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #d1dae5;
    background: #eef3f8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 1;
    color: #41536b;
    text-transform: uppercase;
}

.dhdk-buybox-upload-tile-link {
    width: 100%;
    height: 100%;
    display: block;
}

.dhdk-buybox-upload-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dhdk-price-live {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #eef3f8;
    border-radius: 8px;
}

.dhdk-price-value {
    font-size: 1.2rem;
}

.dhdk-field-row {
    margin-bottom: 10px;
}

.dhdk-field-row label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.dhdk-field-row input,
.dhdk-field-row select,
.dhdk-field-row textarea {
    width: 100%;
}

.dhdk-custom-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.dhdk-custom-item {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #fff;
}

.dhdk-custom-item img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
}

.dhdk-examples {
    margin-top: 10px;
}

.dhdk-examples-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dhdk-examples-grid img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #d7dee7;
}

@keyframes dhdkDropzoneBorderPulse {
    0% {
        stroke: rgba(68, 166, 70, 0);
        stroke-width: 0.55;
        filter: drop-shadow(0 0 0 rgba(68, 166, 70, 0));
    }
    24% {
        stroke: rgba(68, 166, 70, 0.82);
        stroke-width: 1.2;
        filter: drop-shadow(0 0 0 rgba(68, 166, 70, 0.18));
    }
    68% {
        stroke: rgba(68, 166, 70, 0);
        stroke-width: 3.8;
        filter: drop-shadow(0 0 14px rgba(68, 166, 70, 0));
    }
    100% {
        stroke: rgba(68, 166, 70, 0);
        stroke-width: 3.8;
        filter: drop-shadow(0 0 14px rgba(68, 166, 70, 0));
    }
}

@keyframes dhdkUploadPulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

@keyframes dhdkShellBgPulse {
    0% {
        transform: scale(1.01);
    }
    100% {
        transform: scale(1.05);
    }
}

@media (max-width: 1200px) {
    .dhdk-layout {
        grid-template-columns: 65% 35%;
    }
}

@media (max-width: 900px) {
    .dhdk-layout {
        grid-template-columns: 1fr;
    }
}

/* ===== DHDK Hero Layout ===== */
body.dhdk-has-configurator.single-product .summary > .product_title,
body.dhdk-has-configurator.single-product .summary > .woocommerce-product-details__short-description,
body.dhdk-has-configurator.single-product .summary > .price {
    display: none !important;
}

body.dhdk-has-configurator .summary form.cart > .quantity,
body.dhdk-has-configurator .summary form.cart > .single_add_to_cart_button {
    display: none !important;
}

.dhdk-configurator-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 14px 0 22px;
    margin-left: 0;
    margin-right: 0;
    padding: clamp(16px, 2vw, 24px);
    border: 0;
    border-radius: 0;
    overflow: hidden;
    isolation: isolate;
    background-color: #20242a;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.dhdk-configurator-shell::before {
    content: none;
    display: none;
}

.dhdk-shell-bottom-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 300px;
    background-color: transparent;
    background-image: url('../images/general/dk-konfi-overlay.webp');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 2;
    pointer-events: none;
}

.dhdk-shell-bottom-overlay--stage-mobile {
    display: none;
}

@media (max-width: 1202px) and (min-width: 641px) {
    .dhdk-shell-bottom-overlay {
        background-image: url('../images/general/dk-konfi-overlay-mob.webp');
    }
}

.dhdk-shell-claim-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.dhdk-shell-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: var(--dhdk-video-overlay-blend-mode, overlay);
}

.dhdk-shell-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

html.dhdk-browser-safari .dhdk-shell-video-overlay {
    display: none !important;
}

.dhdk-shell-loader {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dhdk-shell-loader-bg, #0b0e14);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .88s cubic-bezier(.25, .1, .25, 1), visibility 0s linear .88s;
}

.dhdk-shell-loader-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform, opacity;
    opacity: 0.82;
    animation: dhdkLoaderLogoPulse 2.8s ease-in-out infinite;
}

.dhdk-shell-loader-logo {
    width: clamp(56px, 7vw, 92px);
    height: clamp(56px, 7vw, 92px);
    object-fit: contain;
    display: block;
    opacity: 1;
    transform: scale(1);
    filter: brightness(0) invert(1);
    transition: opacity .58s ease, transform .58s ease;
    will-change: opacity, transform;
}

.dhdk-shell-loader.is-logo-fade .dhdk-shell-loader-logo-wrap {
    animation: none;
    transform: scale(.965);
}

.dhdk-shell-loader.is-logo-fade .dhdk-shell-loader-logo {
    opacity: 0;
    transform: scale(.94);
}

.dhdk-shell-loader.is-bg-fade {
    opacity: 0;
    pointer-events: none;
}

.dhdk-shell-loader.is-hidden {
    visibility: hidden;
}

@keyframes dhdkLoaderLogoPulse {
    0% {
        opacity: 0.78;
        transform: translateZ(0) scale3d(1, 1, 1);
    }
    50% {
        opacity: 1;
        transform: translateZ(0) scale3d(1.018, 1.018, 1);
    }
    100% {
        opacity: 0.78;
        transform: translateZ(0) scale3d(1, 1, 1);
    }
}

.single-product .dhdk-configurator-shell > .woocommerce-error.message-wrapper,
.single-product .dhdk-configurator-shell > .woocommerce-message.message-wrapper,
.single-product .dhdk-configurator-shell > .woocommerce-info.message-wrapper {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 40px));
    z-index: 26;
    margin: 0;
    list-style: none;
    pointer-events: auto;
}

.single-product .dhdk-configurator-shell > .woocommerce-message.message-wrapper,
.single-product .product.type-product > .woocommerce-message.message-wrapper {
    display: none !important;
}

.single-product .woocommerce-message.message-wrapper .message-container:empty,
.single-product .woocommerce-message.message-wrapper:empty {
    display: none !important;
}

.single-product .dhdk-configurator-shell > .woocommerce-error.message-wrapper .message-container,
.single-product .dhdk-configurator-shell > .woocommerce-message.message-wrapper .message-container,
.single-product .dhdk-configurator-shell > .woocommerce-info.message-wrapper .message-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.dhdk-configurator-shell::after {
    content: '';
    position: absolute;
    z-index: 0;
    background-image: inherit;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform-origin: center center;
    transform: none;
    animation: none;
    pointer-events: none;
    will-change: transform;
}
/*
.dhdk-configurator-shell.dhdk-mode-fixed::after {
    transform: scale(1.01);
    animation: dhdkShellBgPulse 12s ease-in-out infinite alternate;
}
*/
.dhdk-configurator {
    position: relative;
    z-index: 3;
    min-height: clamp(660px, 82vh, 920px);
}

.dhdk-product-meta {
    position: absolute;
    top: clamp(22px, 3vw, 34px);
    left: clamp(20px, 3vw, 38px);
    z-index: 6;
    max-width: min(460px, 46vw);
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #fff;
}

.dhdk-product-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.05vw, 2.25rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
}

.dhdk-product-short {
    margin-top: 8px;
    font-size: clamp(0.82rem, 0.95vw, 0.98rem);
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}

.dhdk-product-short p {
    margin: 0;
}

.dhdk-canvas-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(620px, 76vh, 860px);
    max-height: calc(var(--dhdk-canvas-container-max-height, 600px) + 140px);
    padding: clamp(108px, 12vh, 156px) clamp(16px, 2.2vw, 30px) clamp(186px, 22vh, 288px);
}

.dhdk-canvas-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    width: min(58vw, 860px);
    max-width: 100%;
    max-height: var(--dhdk-canvas-container-max-height, 600px);
}

.dhdk-canvas-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(var(--dhdk-canvas-container-max-height, 600px) - 84px);
    margin: 0 auto;
    overflow: hidden;
}

.dhdk-canvas {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
    filter: none;
}

.dhdk-canvas-controls {
    margin: 14px auto 0;
    width: fit-content;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: #000;
}

.dhdk-control-btn {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 999px;
    min-height: 34px;
    padding: 0 13px;
    font-size: 0.9rem;
}

.dhdk-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dhdk-control-btn.is-active {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.42);
}

.dhdk-control-btn.dhdk-zoom-in,
.dhdk-control-btn.dhdk-zoom-out {
    width: 34px;
    min-width: 34px;
    padding: 0;
}

.dhdk-control-btn.dhdk-change-image {
    margin-left: 0;
}

.dhdk-bottom-bar {
    position: absolute;
    left: 50%;
    bottom: clamp(18px, 3vw, 30px);
    transform: translateX(-50%);
    width: min(1360px, calc(100% - 40px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(14px, 2vw, 24px);
    align-items: end;
    padding: 18px clamp(14px, 1.6vw, 26px);
    border-radius: 14px;
    background: rgba(247, 248, 250, 0.95);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    z-index: 7;
}

.dhdk-options-col {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.dhdk-options-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(148px, 1fr));
    align-items: end;
}

.dhdk-field-row {
    margin: 0;
}

.dhdk-field-row--wide {
    grid-column: span 2;
}

.dhdk-field-row label {
    margin-bottom: 5px;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 600;
    color: #1a2433;
}

.dhdk-field-label-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
}

.dhdk-field-label-inline small {
    display: inline-block;
    margin: 0;
    margin-left: auto;
    font-size: 10px;
    font-weight: 500;
    color: #7d8899;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
    text-align: right;
}

.dhdk-field-row input,
.dhdk-field-row select,
.dhdk-field-row textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid #c9d4e2;
    border-radius: 10px;
    background: #fff;
    color: #111926;
    padding: 8px 11px;
    box-shadow: none;
}

.dhdk-field-row textarea {
    min-height: 68px;
    resize: vertical;
}

.dhdk-custom-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dhdk-custom-item {
    border: 1px solid #c9d4e2;
    border-radius: 999px;
    padding: 6px 10px;
    gap: 6px;
    background: #fff;
    min-height: 36px;
}

.dhdk-custom-item img {
    width: 24px;
    height: 24px;
}

.dhdk-bottom-actions {
    min-width: clamp(200px, 20vw, 290px);
    display: grid;
    gap: 10px;
    align-content: end;
}

.dhdk-price-live {
    margin: 0;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.dhdk-price-live span {
    font-size: 0.86rem;
    color: #3b4c63;
}

.dhdk-price-value {
    font-size: clamp(1.6rem, 2.1vw, 2rem);
    font-weight: 700;
    color: #0f1725;
    line-height: 1.08;
}

.dhdk-cart-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.dhdk-cart-actions .quantity {
    margin: 0 !important;
}

.dhdk-cart-actions .qty {
    height: 42px;
    min-width: 72px;
    border-radius: 999px;
    border: 1px solid #cad4e2;
    text-align: center;
}

.dhdk-cart-actions .single_add_to_cart_button,
.dhdk-cart-actions button[type='submit'] {
    border-radius: 999px !important;
    min-height: 46px;
    padding: 0 24px !important;
    border: 0 !important;
    background: #0b0e14 !important;
    color: #fff !important;
    font-weight: 600;
    margin: 0 !important;
    box-shadow: none !important;
    font-size: 12px;
    text-transform: unset;
}

.dhdk-cart-actions .single_add_to_cart_button:hover,
.dhdk-cart-actions button[type='submit']:hover {
    background: #1a2232 !important;
}

.dhdk-examples {
    position: absolute;
    top: clamp(24px, 3vw, 36px);
    right: clamp(20px, 3vw, 38px);
    width: min(260px, 24vw);
    margin: 0;
    padding: 10px;
    border-radius: 10px;
    background: rgba(8, 12, 18, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    z-index: 5;
}

.dhdk-examples h4 {
    margin: 0 0 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
    letter-spacing: 0.08em;
}

.dhdk-examples-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.dhdk-examples-grid img {
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 1300px) {
    .dhdk-options-grid {
        grid-template-columns: repeat(3, minmax(148px, 1fr));
    }
}

@media (max-width: 1100px) {
    .dhdk-configurator {
        min-height: auto;
    }

    .dhdk-product-meta {
        position: static;
        max-width: 100%;
        margin: 0 0 14px;
    }

    .dhdk-canvas-center {
        min-height: auto;
        padding: 10px 0 10px;
    }

    .dhdk-canvas-box {
        width: min(92vw, 780px);
    }

    .dhdk-bottom-bar {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 14px;
        grid-template-columns: 1fr;
    }

    .dhdk-bottom-actions {
        min-width: 0;
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .dhdk-price-live {
        align-items: flex-start;
    }

    .dhdk-cart-actions {
        justify-content: flex-end;
    }

    .dhdk-examples {
        position: static;
        width: 100%;
        margin-top: 12px;
        background: rgba(255, 255, 255, 0.86);
        border-color: rgba(11, 19, 31, 0.12);
    }

    .dhdk-examples h4 {
        color: #1a2638;
    }
}

@media (max-width: 760px) {
    .dhdk-buybox-body .dhdk-options-grid {
    }

    .dhdk-buybox-body .dhdk-field-col {
        padding: 0 3px 6px;
    }

    .dhdk-configurator-shell {
        padding: 12px;
    }

    .dhdk-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dhdk-field-row--wide {
        grid-column: span 2;
    }

    .dhdk-bottom-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dhdk-cart-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .dhdk-canvas-controls {
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        margin-bottom:20px !important;
        box-sizing: border-box;
    }
    .dhdk-layout--hero .dhdk-canvas-controls{padding:10px 12px; gap:6px;}
    .dhdk-layout--hero .dhdk-control-btn{padding:0 12px;}
    .dhdk-layout--hero .dhdk-control-btn.dhdk-auto-fit{padding:0; width:36px; min-width:36px;}
    .dhdk-layout--hero .dhdk-control-btn.dhdk-auto-fit span{display:none;}
    .dhdk-layout--hero .dhdk-control-btn.dhdk-change-image{padding:0; width:36px; min-width:36px; background:green;}
    .dhdk-layout--hero .dhdk-control-btn.dhdk-change-image span{display:none;}
    .dhdk-layout--hero .dhdk-control-btn.dhdk-fill-background{padding:0; width:36px; min-width:36px; background:green;}
    .dhdk-layout--hero .dhdk-control-btn.dhdk-fill-background span{display:none;}
    .dhdk-layout--hero .dhdk-control-btn.dhdk-toggle-extras{padding:0; width:36px; min-width:36px;}
    .dhdk-layout--hero .dhdk-control-btn.dhdk-toggle-extras span{display:none;}
    .dhdk-layout--hero .dhdk-print-side-switch{top:auto !important;left:50%;transform:translateX(-50%); bottom:10px;}
    .dhdk-layout--hero .dhdk-print-side-switch .dhdk-side-tab{line-height:1 !important;}
    .dhdk-text-actions, .dhdk-qr-actions, .dhdk-text-open, .dhdk-qr-open{margin:0 !important;}
    .dhdk-text-font-dropdown{min-width:140px !important; max-width:140px !important;}
    .dhdk-text-color-dropdown{min-width: 46px !important; max-width: 46px !important;}
    .dhdk-text-color-trigger-label{display:none !important;}
    .dhdk-text-toolbar{width:100% !important; border-radius:0 !important; max-width: 100% !important; gap:0 !important;}
    .dhdk-text-font-trigger-preview, .dhdk-text-font-trigger-file{font-size: 11px; overflow: hidden;}
    .dhdk-text-toolbar-icon--static{display:none !important;}
    .dhdk-fill-modal__dialog .dhdk-sidepanel-modal__body{align-items: center !important;}

}

/* ===== DHDK Hero 70/30 (Photoshop-like) ===== */
.dhdk-configurator-shell {
    --dhdk-header-offset: 170px;
    height: auto;
    min-height: calc(100vh - var(--dhdk-header-offset));
}

.dhdk-configurator {
    height: auto;
    min-height: 100%;
    display: flex;
    align-items: stretch;
}

.dhdk-layout--hero {
    --dhdk-stage-controls-gap: 14px;
    --dhdk-stage-controls-height: 62px;
    position: relative;
    z-index: 2;
    width: min(1760px, calc(100% - 36px));
    margin: 0 auto;
    height: auto;
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(340px, 3fr);
    gap: clamp(18px, 2.2vw, 34px);
    align-items: end;
    box-sizing: border-box;
    overflow: visible;
}

body.admin-bar .dhdk-configurator-shell,
body.admin-bar .dhdk-configurator,
body.admin-bar .dhdk-layout--hero {
    height: auto;
    min-height: calc(100vh - var(--dhdk-header-offset) - 32px);
}

.dhdk-stage-col {
    position: relative;
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.dhdk-stage-stack {
    width: min(100%, 1120px);
    height: 100%;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: var(--dhdk-stage-controls-gap);
    box-sizing: border-box;
}

.dhdk-layout--hero .dhdk-canvas-box {
    width: min(100%, 980px);
    max-width: 100%;
    max-height: min(
        var(--dhdk-canvas-container-max-height, 600px),
        calc(100% - var(--dhdk-stage-controls-height) - var(--dhdk-stage-controls-gap))
    );
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.dhdk-configurator-shell.dhdk-mode-free .dhdk-layout--hero .dhdk-canvas-box {
    width: min(100%, 1120px);
    max-height: min(
        calc(var(--dhdk-canvas-container-max-height, 600px) + 120px),
        calc(100% - var(--dhdk-stage-controls-height) - var(--dhdk-stage-controls-gap))
    );
    padding: 12px;
    box-sizing: border-box;
    align-items: center;
    flex: 1 1 auto;
    margin-top: 0;
    margin-bottom: 0;
}

.dhdk-configurator-shell.dhdk-mode-free .dhdk-canvas-center {
    padding:
        clamp(84px, 10vh, 132px)
        clamp(12px, 1.5vw, 20px)
        clamp(170px, 19vh, 246px);
}

.dhdk-layout--hero .dhdk-canvas-stage {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    margin: 0 auto;
    transition: opacity 180ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dhdk-layout--hero .dhdk-canvas-stage.dhdk-stage-initial-hidden {
    transition: opacity 420ms ease;
}

.dhdk-layout--hero .dhdk-canvas-stage.is-scene-switching {
    opacity: 0.12;
}

.dhdk-layout--hero .dhdk-canvas-stage.is-side-switching {
    opacity: 0.22;
}

.dhdk-layout--hero .dhdk-canvas {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
}

.dhdk-layout--hero .dhdk-canvas-controls {
    width: auto;
    max-width: 100%;
    min-height: var(--dhdk-stage-controls-height);
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 999px;
    backdrop-filter: blur(2px);
    box-sizing: border-box;
    overflow: hidden;
}

.dhdk-canvas-controls-toggle {
    display: none !important;
}

.dhdk-canvas-controls-close {
    display: none !important;
}

.dhdk-layout--hero .dhdk-print-side-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
  top: -30px;
  right: 0;
}

.dhdk-layout--hero .dhdk-print-side-switch.is-hidden {
    display: none;
}

.dhdk-layout--hero .dhdk-side-tab {
    background: #000;
    color: #fff;
    min-height: 32px;
    padding: 0 14px;
    font-size: 11px;
    font-weight:500;
    line-height: 38px;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
     text-transform: unset !important;
     margin:0;
}

.dhdk-side-tab--front{border-top-left-radius: 999px; border-bottom-left-radius: 999px;}
.dhdk-side-tab--back{border-top-right-radius: 999px; border-bottom-right-radius: 999px;}

.dhdk-layout--hero .dhdk-side-tab.is-active {
    border-color: #44a646;
    background: #44a646;
}

.dhdk-layout--hero .dhdk-control-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 999px;
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
    text-transform: unset !important;
    margin:0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.dhdk-layout--hero .dhdk-control-btn:hover {
    background: rgba(255, 255, 255, 0.17);
}

.dhdk-layout--hero .dhdk-control-btn-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    display: block;
    object-fit: contain;
}

.dhdk-layout--hero .dhdk-control-btn span {
    display: inline-block;
    line-height: 1;
}

.dhdk-layout--hero .dhdk-control-btn.dhdk-zoom-in,
.dhdk-layout--hero .dhdk-control-btn.dhdk-zoom-out {
    width: 36px;
    min-width: 36px;
    padding: 0;
}

.dhdk-buybox-col {
    justify-self: end;
    width: min(100%, 420px);
    max-width: 100%;
    max-height: none;
    border-radius: 14px;
    overflow: visible;
    /*box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);*/
    align-self: end;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
}

.dhdk-buybox-head {
    color: #fff;
}

.dhdk-buybox-head--floating {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 8;
    width: min(460px, 42vw);
    pointer-events: none;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.66);
}

.dhdk-buybox-head .dhdk-product-title {
    margin: 0;
    font-size: clamp(1.8rem, 2.6vw, 2.45rem);
    line-height: 1.02;
    color: #fff;
    font-weight:600 !important;
}

.dhdk-product-subtitle {
    margin-top: 6px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.dhdk-buybox-head .dhdk-product-short {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
}

.dhdk-buybox-head .dhdk-product-short p {
    margin: 0;
    font-size: 12px;
  opacity: .7;
}

.product-short-description{display:none;}

.dhdk-buybox-body {
    /* From https://css.glass */
background: #fff;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
    min-height: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.dhdk-buybox-body .dhdk-options-col {
    padding: 0;
    border: 0;
    background: transparent;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.dhdk-buybox-body .dhdk-variant-picker {
    margin: 0;
}

.dhdk-buybox-body .dhdk-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dhdk-buybox-body .dhdk-variant-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 44px;
}

.dhdk-buybox-body .dhdk-variant-item.is-disabled {
    opacity: .5;
    filter: grayscale(1);
}

.dhdk-buybox-body .dhdk-variant-option {
    width: 44px;
    height: 44px;
    border: 1px solid #c9d4e2;
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
    margin:4px !important;
}

.dhdk-buybox-body .dhdk-variant-option:hover {
    border-color: #8ea4bf;
    transform: translateY(-1px);
}

.dhdk-buybox-body .dhdk-variant-option.is-disabled,
.dhdk-buybox-body .dhdk-variant-option:disabled {
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.dhdk-buybox-body .dhdk-variant-option.is-active {
    border-color: #44a646;
    box-shadow: 0 0 0 1px #44a646;
}

.dhdk-buybox-body .dhdk-variant-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dhdk-buybox-body .dhdk-variant-option span {
    display: inline-block;
    font-size: 0.8rem;
    line-height: 1;
    font-weight: 700;
    color: #1f2937;
}

.dhdk-buybox-body .dhdk-variant-label {
    font-size: 9px;
    line-height: 1.2;
    color: #111827;
    text-align: center;
    max-width: 64px;
    word-break: break-word;
}

.dhdk-buybox-body .dhdk-custom-item-group + .dhdk-custom-item-group {
    margin-top: 12px;
}

.dhdk-buybox-body .dhdk-specs-box label {
    display: block;
    margin-bottom: 8px;
}

.dhdk-specs-panel {
    margin-top: 12px;

}

.dhdk-specs-panel .dhdk-specs-box label {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #172433;
}

.dhdk-specs-panel .dhdk-specs-body {
    display: grid;
    gap: 10px;
}

.dhdk-specs-panel .dhdk-specs-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #d9e2ee;
}

.dhdk-specs-panel .dhdk-specs-text {
    color: #273247;
    font-size: 12px;
    line-height: 1.45;
}

.dhdk-specs-panel .dhdk-specs-text p {
    margin: 0 0 6px;
}

.dhdk-specs-panel .dhdk-specs-text p:last-child {
    margin-bottom: 0;
}

.dhdk-specs-panel .dhdk-specs-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dhdk-specs-panel .dhdk-specs-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #c6d1e2;
    background: #fff;
    color: #1b2a42;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.dhdk-specs-panel .dhdk-specs-download-link img {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: block;
}

.dhdk-specs-panel .dhdk-specs-download-link:hover {
    border-color: #9fb0c8;
    color: #0f1e35;
}

.dhdk-buybox-body .dhdk-specs-body {
    border: 1px solid #d5deea;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    padding: 10px;
    display: grid;
    gap: 10px;
}

.dhdk-buybox-body .dhdk-specs-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #d9e2ee;
}

.dhdk-buybox-body .dhdk-specs-text {
    color: #273247;
    font-size: 12px;
    line-height: 1.45;
}

.dhdk-buybox-body .dhdk-specs-text p {
    margin: 0 0 6px;
}

.dhdk-buybox-body .dhdk-specs-text p:last-child {
    margin-bottom: 0;
}

.dhdk-buybox-body .dhdk-specs-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dhdk-buybox-body .dhdk-specs-download-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #c6d1e2;
    background: #fff;
    color: #1b2a42;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.dhdk-buybox-body .dhdk-specs-download-link:hover {
    border-color: #9fb0c8;
    color: #0f1e35;
}

.dhdk-buybox-body .dhdk-custom-items--variants {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dhdk-buybox-body .dhdk-custom-item-variant {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 44px;
    padding: 2px;
    border-radius: 8px;
    cursor: pointer;
}

.dhdk-buybox-body .dhdk-custom-item-variant.is-disabled {
    opacity: .5;
    filter: grayscale(1);
    cursor: not-allowed;
}

.dhdk-buybox-body .dhdk-custom-item-variant input[type='checkbox'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dhdk-buybox-body .dhdk-custom-item-option {
    margin: 4px !important;
}

.dhdk-buybox-body .dhdk-custom-item-variant .dhdk-custom-item-option,
.dhdk-buybox-body .dhdk-custom-item-variant .dhdk-variant-label {
    pointer-events: none;
}

.dhdk-buybox-body .dhdk-custom-item-variant:hover .dhdk-custom-item-option {
    border-color: #8ea4bf;
    transform: translateY(-1px);
}

.dhdk-buybox-body .dhdk-custom-item-variant.is-disabled:hover .dhdk-custom-item-option {
    border-color: #c9d4e2;
    transform: none;
}

.dhdk-buybox-body .dhdk-custom-item-variant input[type='checkbox']:checked + .dhdk-custom-item-option {
    border-color: #44a646;
    box-shadow: 0 0 0 1px #44a646;
}

.dhdk-buybox-body .dhdk-options-grid {
    display: grid;
    grid-template-columns: repeat(30, minmax(0, 1fr));
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.dhdk-buybox-body .dhdk-field-col {
    min-width: 0;
    max-width: 100%;
    grid-column: span var(--dhdk-field-span, 30);
    order: var(--dhdk-field-order, 999);
    box-sizing: border-box;
}

.dhdk-buybox-body .dhdk-field-col--half {
    grid-column: span 15;
}

.dhdk-buybox-body .dhdk-field-col--fifth {
    grid-column: span 6;
}

.dhdk-buybox-body .dhdk-field-col--third {
    grid-column: span 10;
}

.dhdk-buybox-body .dhdk-field-col--three-fifths {
    grid-column: span 18;
}

.dhdk-buybox-body .dhdk-field-col--wide {
    grid-column: 1 / -1;
}

.dhdk-buybox-body .dhdk-options-grid.dhdk-options-grid--2cols {
    grid-template-columns: repeat(30, minmax(0, 1fr));
}

.dhdk-buybox-body .dhdk-options-grid.dhdk-options-grid--2cols .dhdk-field-col {
    grid-column: span var(--dhdk-field-span, 15);
}

.dhdk-buybox-body .dhdk-options-grid.dhdk-options-grid--2cols .dhdk-field-col--fifth {
    grid-column: span 6;
}

.dhdk-buybox-body .dhdk-options-grid.dhdk-options-grid--2cols .dhdk-field-col--wide {
    grid-column: 1 / -1;
}

.dhdk-buybox-body .dhdk-options-grid.dhdk-options-grid--2cols .dhdk-field-col--third {
    grid-column: span 10;
}

.dhdk-buybox-body .dhdk-options-grid.dhdk-options-grid--2cols .dhdk-field-col--three-fifths {
    grid-column: span 18;
}

.dhdk-buybox-body > .dhdk-field-col {
    width: 100%;
    max-width: 100%;
}

.dhdk-buybox-body > .dhdk-field-col.dhdk-field-col--half {
    width: calc(50% - 6px);
    max-width: calc(50% - 6px);
}

.dhdk-buybox-body > .dhdk-field-col.dhdk-field-col--fifth {
    width: calc(20% - 10px);
    max-width: calc(20% - 10px);
}

.dhdk-buybox-body > .dhdk-field-col.dhdk-field-col--third {
    width: calc(33.3334% - 8px);
    max-width: calc(33.3334% - 8px);
}

.dhdk-buybox-body > .dhdk-field-col.dhdk-field-col--three-fifths {
    width: calc(60% - 5px);
    max-width: calc(60% - 5px);
}

.dhdk-buybox-body .dhdk-field-row,
.dhdk-buybox-body .dhdk-field-row--wide {
    margin: 0;
    grid-column: auto;
}

.dhdk-buybox-body .dhdk-field-row label {
    margin-bottom: 4px;
    font-size: 0.74rem;
    line-height: 1.25;
    font-weight: 700;
    color: #111821;
}

.dhdk-buybox-body .dhdk-field-row input,
.dhdk-buybox-body .dhdk-field-row select,
.dhdk-buybox-body .dhdk-field-row textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #ccd5df;
    border-radius: 12px;
    background: #fff;
    color: #121926;
    padding: 8px 12px;
    box-shadow: none;
    font-size:11px;
}

.dhdk-options-grid select,
.dhdk-options-grid textarea {
    font-size: 12px;
}

.dhdk-buybox-body .dhdk-field-row textarea {
    min-height: 86px;
    resize: vertical;
}

.dhdk-buybox-body #dhdk_note {
    resize: none !important;
    min-height: calc(1.2em * 2 + 16px);
    height: calc(1.2em * 2 + 16px);
    overflow-y: auto;
}

.dhdk-configurator-shell input[type='number'] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.dhdk-configurator-shell input[type='number']::-webkit-outer-spin-button,
.dhdk-configurator-shell input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dhdk-buybox-body .dhdk-custom-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dhdk-buybox-body .dhdk-custom-item {
    min-height: 36px;
    border-radius: 999px;
}

.dhdk-buybox-body .dhdk-bottom-actions {
    min-width: 0;
    display: grid;
    gap: 10px;
    align-content: end;
}

.dhdk-buybox-body .dhdk-price-live {
    margin: 0;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.dhdk-buybox-body .dhdk-price-live span {
    font-size: 0.86rem;
    color: #3b4c63;
}

.dhdk-buybox-body .dhdk-price-value {
    font-size: clamp(2rem, 2.8vw, 2.6rem);
    font-weight: 700;
    color: #0f1725;
    line-height: 1.05;
}

.dhdk-buybox-body .dhdk-cart-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 46px;
}

.dhdk-buybox-body .dhdk-cart-actions .single_add_to_cart_button,
.dhdk-buybox-body .dhdk-cart-actions button[type='submit'] {
    min-height: 48px;
    padding: 0 24px !important;
    border-radius: 999px !important;
}

.dhdk-buybox-body .dhdk-cart-actions input.qty {
    border-radius: 999px !important;
}

.dhdk-paypal-button-slot {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 8px;
}

.dhdk-paypal-button-slot:empty {
    display: none;
}

.dhdk-paypal-button-slot .ppc-button-wrapper {
    width: min(100%, 220px) !important;
    margin: 0 !important;
}

@media (max-width: 640px) {
    .dhdk-paypal-button-slot .ppc-button-wrapper {
        width: 100% !important;
    }
}

.dhdk-tier-quantity-controls {
    display: grid;
    grid-template-columns: minmax(76px, .7fr) minmax(0, 1.3fr);
    gap: 8px;
}

.dhdk-tier-quantity-controls input,
.dhdk-tier-quantity-controls select {
    min-width: 0;
}

.dhdk-tier-quantity-controls--select-only {
    grid-template-columns: minmax(0, 1fr);
}

.dhdk-configurator-shell.dhdk-has-tier-quantity .dhdk-cart-actions .quantity {
    display: none !important;
}

.dhdk-buybox-body .dhdk-cart-actions .ux-quantity__button,
.dhdk-buybox-body .dhdk-cart-actions .ux-quantity__button--minus,
.dhdk-buybox-body .dhdk-cart-actions .ux-quantity__button--plus,
.dhdk-buybox-body .dhdk-cart-actions .button.minus.is-form,
.dhdk-buybox-body .dhdk-cart-actions .button.plus.is-form {
    display: none !important;
}

.dhdk-buybox-col {
    align-self: stretch;
    height: auto;
    min-height: 0;
    gap: 10px;
}

.dhdk-buybox-body {
    flex: 0 0 auto;
    min-height: auto;
    border-radius: 10px;
}

.dhdk-buybox-head--inline {
    color: #111821;
    pointer-events: auto;
    text-shadow: none;
}

.dhdk-buybox-head--inline .dhdk-buybox-head-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dhdk-buybox-head--inline .dhdk-buybox-head-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dhdk-buybox-head--inline .dhdk-buybox-head-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.dhdk-buybox-head--inline .dhdk-buybox-head-text {
    min-width: 0;
}

.dhdk-buybox-head--inline .dhdk-product-title {
    color: #111821;
    font-size: 28px;
  font-weight: 800 !important;
  letter-spacing: -.5px;
    line-height: 1.05;
}

.dhdk-buybox-head--inline .dhdk-product-subtitle {
    color: #1a2433;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 600;
}

.dhdk-buybox-head--inline .dhdk-product-short {
    color: #2f3f55;
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.32;
}

.dhdk-buybox-body .dhdk-product-shipping {
    color: #1f2d3f;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    background-image: url('../images/general/ico-shipping.svg');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: 10px center;
    padding: 10px 0 10px 40px;
    background-color:rgba(0,0,0,0.04);
    border-radius:999px;
}

.dhdk-buybox-body .dhdk-product-shipping p {
    margin: 0;
}

.dhdk-buybox-body .dhdk-express-shipping-btn {
    width: 100%;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: #000;
    color: #fff;
    padding: 10px 10px 10px 50px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    font-size: 13px;
    text-transform: unset;
    cursor: pointer;
    transition: opacity .2s ease, box-shadow .2s ease;
    background-image: url('../images/general/ico-express.svg');
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: 10px center;
}

.dhdk-buybox-body .dhdk-express-shipping-btn:hover {
    opacity: .9;
}

.dhdk-buybox-body .dhdk-express-shipping-btn.is-active {
    background-color:green;
}

.dhdk-buybox-body .dhdk-express-shipping-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dhdk-buybox-body .dhdk-express-shipping-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.dhdk-buybox-body .dhdk-express-shipping-subtext {
    margin-top: 2px;
    font-size: 11px;
    color: #fff;
    font-weight: 400;
    line-height: 1.25;
}

.dhdk-buybox-body .dhdk-express-shipping-price {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.dhdk-buybox-body .dhdk-express-shipping-price .woocommerce-Price-amount,
.dhdk-buybox-body .dhdk-express-shipping-price .amount {
    color: #fff;
}

.dhdk-buybox-body .dhdk-bottom-actions {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 20px;}

.dhdk-buybox-body .dhdk-price-live {
    align-items: flex-start;
}

.dhdk-buybox-body .dhdk-price-value {
    font-size: 24px;
    transition: opacity .18s ease;
    will-change: opacity;
}

.dhdk-buybox-body .dhdk-price-value.is-updating {
    opacity: .28;
}

.dhdk-buybox-body .dhdk-price-tax {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    color: #5d6b7e;
    line-height: 1.15;
}

.dhdk-buybox-body .dhdk-cart-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.dhdk-payment-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    padding: 10px 0 0 0;
    opacity: .7;
}

.dhdk-payment-icons img {
    width: 100%;
    max-height: 28px;
    object-fit: contain;
    display: block;
}

.dhdk-buybox-studio {
    position: absolute;
    left: 40px;
    top: 30px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}

.dhdk-buybox-studio img {
    width: auto;
    max-width: 100%;
    height: 20px;
    max-height: 65px;
    object-fit: contain;
    display: block;
}

.dhdk-buybox-body .dhdk-examples {
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
}

.dhdk-buybox-body .dhdk-examples h4 {
    margin: 0 0 6px;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c6e86;
}

.dhdk-buybox-body .dhdk-examples-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.dhdk-buybox-body .dhdk-examples-grid img {
    width: 100%;
    height: 54px;
    border-radius: 8px;
    border: 1px solid #d7dee7;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .dhdk-layout--hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    }

    .dhdk-layout--hero .dhdk-canvas-box {
        width: min(100%, 860px);
    }
}

@media (max-width: 1200px) and (min-width: 981px) {
    .dhdk-stage-col,
    .dhdk-stage-col.dhdk-stage-col-size-fixed {
        align-items: center;
    }

    .dhdk-stage-col .dhdk-stage-stack,
    .dhdk-stage-col.dhdk-stage-col-size-fixed .dhdk-stage-stack {
        justify-content: center;
        min-height: 0;
    }

    .dhdk-layout--hero .dhdk-canvas-box,
    .dhdk-stage-col.dhdk-stage-col-size-fixed .dhdk-canvas-box {
        flex: 0 1 auto;
        height: auto;
        min-height: 0;
        max-height: none;
        align-items: center;
    }

    .dhdk-layout--hero .dhdk-canvas-stage {
        height: auto;
        max-height: none;
    }

    .dhdk-layout--hero .dhdk-canvas {
        max-height: none;
    }
}

@media (min-width: 980px) {
.dhdk-field-row{padding:5px;}
}
@media (max-width: 980px) {
    .dhdk-configurator-shell,
    .dhdk-configurator,
    .dhdk-layout--hero {
        height: auto;
        min-height: auto;
    }

    .dhdk-layout--hero {
        grid-template-columns: 1fr;
        width: min(100%, calc(100% - 20px));
        gap: 14px;
        padding-top: 12px;
    }

    .dhdk-stage-col {
        align-items: center;
    }

    .dhdk-buybox-col {
        justify-self: stretch;
        width: 100%;
        height: auto;
        max-height: none;
        gap: 8px;
    }

    .dhdk-buybox-head--floating {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        margin: 0 0 8px;
        pointer-events: auto;
    }

    .dhdk-buybox-body .dhdk-options-grid {
        grid-template-columns: repeat(30, minmax(0, 1fr));
        gap: 0 !important;
    }

    .dhdk-buybox-body .dhdk-bottom-actions {
        flex-wrap: wrap;
    }

    .dhdk-buybox-body .dhdk-cart-actions {
        justify-content: flex-start;
    }

    .dhdk-buybox-body .dhdk-field-col,
    .dhdk-buybox-body .dhdk-field-col--half,
    .dhdk-buybox-body .dhdk-field-col--fifth,
    .dhdk-buybox-body .dhdk-field-col--third,
    .dhdk-buybox-body .dhdk-field-col--three-fifths,
    .dhdk-buybox-body .dhdk-field-col--wide {
        grid-column: span var(--dhdk-field-span-mobile, 30);
        order: var(--dhdk-field-order-mobile, var(--dhdk-field-order, 999));
    }

    .dhdk-buybox-body > .dhdk-field-col.dhdk-field-col--half,
    .dhdk-buybox-body > .dhdk-field-col.dhdk-field-col--fifth,
    .dhdk-buybox-body > .dhdk-field-col.dhdk-field-col--third,
    .dhdk-buybox-body > .dhdk-field-col.dhdk-field-col--three-fifths {
        width: auto;
        max-width: none;
    }

    .dhdk-configurator-shell {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #fff;
    }

    .dhdk-configurator-shell::after,
    .dhdk-configurator-shell::before {
        content: none;
        display: none;
    }

    .dhdk-configurator-shell .dhdk-layout--hero {
        width: 100%;
        gap: 0;
        padding-top: 0;
        min-width: 0;
        max-width: 100%;
        overflow-x: clip;
    }

    .dhdk-configurator-shell .dhdk-stage-col {
        position: relative;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 0;
        overflow: hidden;
        box-sizing: border-box;
        transition: padding-top 220ms ease;
    }

    .dhdk-configurator-shell .dhdk-stage-col.has-mobile-text-toolbar-space {
        padding-top: 60px;
    }

    .dhdk-configurator-shell .dhdk-stage-col::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        background-color: var(--dhdk-shell-background-color, #e7eef5);
        background-image: var(--dhdk-shell-background-image-mobile, var(--dhdk-shell-background-image, none));
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        pointer-events: none;
    }

    .dhdk-configurator-shell .dhdk-stage-stack {
        position: relative;
        z-index: 1;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
        overflow-x: clip;
    }

    .dhdk-configurator-shell .dhdk-layout--hero .dhdk-canvas-box {
        margin-bottom: 40px;
    }

    .dhdk-configurator-shell.dhdk-mode-free .dhdk-stage-col {
        min-height: calc(var(--dhdk-canvas-container-max-height, 600px) + 24px);
    }

    .dhdk-configurator-shell.dhdk-mode-free .dhdk-layout--hero .dhdk-canvas-box {
        height: var(--dhdk-canvas-container-max-height, 600px);
        min-height: var(--dhdk-canvas-container-max-height, 600px);
        max-height: var(--dhdk-canvas-container-max-height, 600px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dhdk-configurator-shell.dhdk-mode-free .dhdk-layout--hero .dhdk-canvas-stage {
        margin: auto;
    }

    .dhdk-configurator-shell .dhdk-buybox-col {
        width: 100%;
        max-width: 100%;
        background: #fff;
        min-width: 0;
        box-sizing: border-box;
    }

    .dhdk-configurator-shell .dhdk-buybox-body {
        border-radius: 0;
        background: #fff;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .dhdk-buybox-col {
        height: auto;
        max-height: none;
        min-height: 0;
    }

    .dhdk-buybox-body {
        flex: 0 0 auto;
        height: auto;
        max-height: none;
        overflow: visible;
        overflow-x: hidden;
    }

    .dhdk-configurator-shell,
    body.admin-bar .dhdk-configurator-shell {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .dhdk-configurator,
    .dhdk-layout--hero,
    body.admin-bar .dhdk-configurator,
    body.admin-bar .dhdk-layout--hero {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .dhdk-shell-loader {
        position: fixed;
        inset: 0;
        width: 100vw;
        width: 100dvw;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .dhdk-buybox-head-icon{display:none !important;}
}

.single-product .product-main {
    padding: 0 !important;
}

.single-product .dhdk-configurator-shell {
    margin-top: 0 !important;
}

.single-product .is-divider.small {
    display: none !important;
}

.single-product .product-info .price {
    margin: 0 !important;
}

.single-product .price-wrapper > .price:empty {
    display: none !important;
    margin: 0 !important;
}

.single-product .price-wrapper:has(> .price:empty) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dhdk-examples--below-shell {
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    margin: 18px 0 22px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    z-index: 1;
}

.dhdk-examples--below-shell .dhdk-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.dhdk-examples--below-shell .dhdk-examples-grid .dk-lightbox {
    position: relative;
    display: block;
    line-height: 0;
    border-radius: 0;
    overflow: hidden;
    background: #d9e2ee;
    transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
    min-height: 120px;
    max-height: 155px;
    border-radius:4px;
}

.dhdk-examples--below-shell .dhdk-examples-grid .dk-lightbox:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 30, 53, 0.16);
}

.dhdk-examples--below-shell .dhdk-examples-grid img {
    width: 100%;
    height: 100%;
    max-height: 155px;
    border-radius: 0;
    object-fit: cover;
    border: 0;
}

@media (max-width: 900px) {
    .dhdk-examples--below-shell .dhdk-examples-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .dhdk-configurator-shell.dhdk-mode-free .dhdk-layout--hero .dhdk-canvas-box{padding:0;}
}

@media (max-width: 640px) {
    .dhdk-configurator-shell {
        --dhdk-mobile-controls-rail-width: 64px;
        --dhdk-mobile-controls-rail-gap: 12px;
    }

    .dhdk-examples--below-shell {
        padding: 14px;
        border-radius: 16px;
    }

    .dhdk-examples--below-shell .dhdk-examples-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .dhdk-examples--below-shell .dhdk-examples-grid .dk-lightbox {
        min-height: 120px;
    }
    .dhdk-buybox-body .dhdk-field-row input,
    .dhdk-buybox-body .dhdk-field-row select,
    .dhdk-buybox-body .dhdk-field-row textarea,
    .dhdk-buybox-body .dhdk-cart-actions input.qty {
        font-size: 16px !important;
    }

    .dhdk-configurator-shell .dhdk-stage-col {
        min-height: clamp(320px, 48vh, 460px);
        padding-top:40px;
    }

    .dhdk-configurator-shell .dhdk-stage-stack {
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .dhdk-configurator-shell .dhdk-layout--hero .dhdk-canvas-box {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .dhdk-layout--hero .dhdk-canvas-controls{
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        width: var(--dhdk-mobile-controls-rail-width);
        max-width: var(--dhdk-mobile-controls-rail-width);
        margin: 0;
        padding: 10px 4px;
        z-index: 4;
        transition: transform 320ms ease, opacity 320ms ease;
        will-change: transform, opacity;
    }

    .dhdk-layout--hero .dhdk-canvas-controls .dhdk-canvas-controls-close {
        display: inline-flex !important;
        margin-top: auto !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .dhdk-layout--hero .dhdk-canvas-controls .dhdk-canvas-controls-close:hover {
        background: transparent !important;
    }

    .dhdk-canvas-controls-toggle {
        position: absolute;
        right: 10px;
        bottom: 10px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 999px;
        border: 0;
        background: rgba(0, 0, 0, 0.92);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
        z-index: 5;
        opacity: 0;
        pointer-events: none;
        transform: translate3d(72px, 0, 0);
        transition: transform 320ms ease, opacity 320ms ease;
        will-change: transform, opacity;
    }

    .dhdk-canvas-controls-toggle img {
        width: 18px;
        height: 18px;
        display: block;
    }

    .dhdk-configurator-shell.dhdk-mobile-controls-collapsed .dhdk-layout--hero .dhdk-canvas-controls {
        transform: translate3d(92px, -50%, 0);
        opacity: 0;
        pointer-events: none;
    }

    .dhdk-configurator-shell.dhdk-mobile-controls-collapsed .dhdk-canvas-controls-toggle {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        pointer-events: auto;
    }

    .dhdk-configurator-shell.dhdk-mobile-controls-expanded .dhdk-layout--hero .dhdk-canvas-controls {
        transform: translate3d(0, -50%, 0);
        opacity: 1;
        pointer-events: auto;
    }

    .dhdk-configurator-shell.dhdk-mobile-controls-expanded .dhdk-canvas-controls-toggle {
        transform: translate3d(72px, 0, 0);
        opacity: 0;
        pointer-events: none;
    }
    .dhdk-text-font-menu, .dhdk-text-color-menu{border-top-left-radius:0 !important; border-top-right-radius: 0 !important;}
    .dhdk-qr-preview-surface{max-height:120px;}
    .dhdk-qr-background-input, .dhdk-qr-color-input{max-width:100px !important; font-size:16px !important;}
    .dhdk-configurator-tips{right:auto; left:15px !important; width:calc(100vw - 30px) !important;}
}

/* ===== DHDK Buybox Scroll Reset ===== */
.dhdk-configurator-shell {
    --dhdk-header-offset: 170px;
    --dhdk-buybox-overflow: 0px;
    --dhdk-shell-desktop-base-height: 820px;
    width: 100vw !important;
    width: 100dvw !important;
    max-width: 100vw !important;
    max-width: 100dvw !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50dvw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50dvw) !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    height: calc(100vh - var(--dhdk-header-offset) + var(--dhdk-buybox-overflow)) !important;
    min-height: calc(100vh - var(--dhdk-header-offset) + var(--dhdk-buybox-overflow)) !important;
    max-height: calc(100vh - var(--dhdk-header-offset) + var(--dhdk-buybox-overflow)) !important;
    overflow: hidden;
}

body.admin-bar .dhdk-configurator-shell {
    height: calc(100vh - var(--dhdk-header-offset) - 32px + var(--dhdk-buybox-overflow)) !important;
    min-height: calc(100vh - var(--dhdk-header-offset) - 32px + var(--dhdk-buybox-overflow)) !important;
    max-height: calc(100vh - var(--dhdk-header-offset) - 32px + var(--dhdk-buybox-overflow)) !important;
}

.dhdk-configurator,
.dhdk-layout--hero,
body.admin-bar .dhdk-configurator,
body.admin-bar .dhdk-layout--hero {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
}

.dhdk-buybox-col {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.dhdk-buybox-body {
    flex: 1 1 auto;
    height: auto;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

@media (min-width: 981px) {
    .dhdk-configurator-shell {
        height: auto !important;
        min-height: calc(var(--dhdk-shell-desktop-base-height) + var(--dhdk-buybox-overflow)) !important;
        max-height: none !important;
        overflow: visible;
    }

    body.admin-bar .dhdk-configurator-shell {
        height: auto !important;
        min-height: calc(var(--dhdk-shell-desktop-base-height) + var(--dhdk-buybox-overflow)) !important;
        max-height: none !important;
    }

    .dhdk-configurator,
    .dhdk-layout--hero,
    body.admin-bar .dhdk-configurator,
    body.admin-bar .dhdk-layout--hero {
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
    }

    .dhdk-stage-col {
        height: auto;
        align-items: center;
    }

    .dhdk-stage-stack {
        height: auto;
        min-height: var(--dhdk-shell-desktop-base-height);
        justify-content: center;
    }

    .dhdk-stage-col.dhdk-stage-col-size-fixed {
        align-items: flex-end;
    }

    .dhdk-stage-col.dhdk-stage-col-size-fixed .dhdk-stage-stack {
        justify-content: flex-end;
    }

    .dhdk-stage-col.dhdk-stage-col-size-fixed .dhdk-canvas-box {
        align-items: flex-end;
    }

    .dhdk-stage-col.dhdk-stage-col-size-free {
        align-items: center;
    }

    .dhdk-stage-col.dhdk-stage-col-size-free .dhdk-stage-stack {
        justify-content: center;
    }

    .dhdk-layout--hero .dhdk-canvas-box {
        flex: 0 0 auto;
        max-height: var(--dhdk-canvas-container-max-height, 600px);
    }

    .dhdk-configurator-shell.dhdk-mode-free .dhdk-layout--hero .dhdk-canvas-box {
        flex: 0 0 auto;
        height: var(--dhdk-canvas-container-max-height, 600px);
        min-height: var(--dhdk-canvas-container-max-height, 600px);
        max-height: calc(var(--dhdk-canvas-container-max-height, 600px));
    }

    .dhdk-layout--hero .dhdk-canvas-stage {
        height: auto;
        max-height: inherit;
    }

    .dhdk-buybox-col {
        height: auto;
        max-height: none;
    }

    .dhdk-buybox-body {
        flex: 0 0 auto;
        max-height: none;
        overflow: visible;
    }
}

/* ===== DHDK Flatsome Single-Column Fix ===== */
body.dhdk-has-configurator .product-main > .row.content-row,
body.dhdk-has-configurator .product-main > .row.content-row.mb-0,
body.dhdk-has-configurator .product-main > .row.ht-product-main-row {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.dhdk-has-configurator .product-main .product-gallery {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.dhdk-has-configurator .product-main .product-info.summary,
body.dhdk-has-configurator .product-main .entry-summary,
body.dhdk-has-configurator .woocommerce div.product div.summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    flex-basis: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.dhdk-has-configurator .product-container,
body.dhdk-has-configurator .product-main,
body.dhdk-has-configurator .product-main > .row.content-row,
body.dhdk-has-configurator .product-main > .row.content-row.mb-0,
body.dhdk-has-configurator .product-main > .row.ht-product-main-row,
body.dhdk-has-configurator .product-main .product-info,
body.dhdk-has-configurator .product-main .summary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ===== DHDK Buybox Select + Note Overrides ===== */
.dhdk-buybox-body .dhdk-field-row select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 36px;
    background-image: url('../images/general/ico-drop-select.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
}

.dhdk-buybox-body .dhdk-select-price-wrap {
    position: relative;
}


.dhdk-buybox-body .dhdk-select-price {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    font-weight: 600;
    color: #5d6b80;
    pointer-events: none;
    white-space: nowrap;
}

.dhdk-buybox-body #dhdk_note {
    border-radius: 8px !important;
    min-height: calc(1.2em * 2 + 30px) !important;
    height: calc(1.2em * 2 + 30px) !important;
}

.dhdk-qr-actions {
    margin: 10px 0 0;
}

.dhdk-qr-actions .dhdk-qr-open,
.dhdk-text-actions .dhdk-text-open {
    width: 100%;
    background: #000 !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    text-transform: unset !important;
    text-align: left !important;
    padding: 10px 0 10px 40px !important;
    background-position: 10px center !important;
    background-repeat: no-repeat !important;
    background-size: 20px !important;
    background-image: url('../images/general/ico-qr.svg') !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    min-height: 42px;
}

.dhdk-text-actions {
    margin: 10px 0 0;
}

.dhdk-text-actions .dhdk-text-open {
    background-image: none !important;
    padding-left: 48px !important;
    position: relative;
}

.dhdk-text-actions .dhdk-text-open::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 6.75A1.75 1.75 0 0 1 6.75 5h10.5A1.75 1.75 0 0 1 19 6.75v10.5A1.75 1.75 0 0 1 17.25 19H6.75A1.75 1.75 0 0 1 5 17.25V6.75Z' stroke='white' stroke-width='1.6'/%3E%3Cpath d='M8 9h8M12 9v7' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.dhdk-sidepanel-modal.modal,
.dhdk-sidepanel-modal.dhdk-qr-modal--fallback,
.dhdk-sidepanel-modal.dhdk-text-modal--fallback {
    z-index: 10800 !important;
}

.modal-backdrop.fade.show {
    z-index: 10780 !important;
}

.modal-backdrop.dhdk-qr-backdrop,
.modal-backdrop.dhdk-text-backdrop,
.modal-backdrop.dhdk-back-empty-backdrop {
    z-index: 10790 !important;
    background: rgba(0, 0, 0, 0.7);
    opacity: 1 !important;
}

.dhdk-cart-modal.modal {
    z-index: 10820 !important;
}

.dhdk-cart-modal {
    padding: 16px;
}

.dhdk-cart-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.dhdk-cart-modal__dialog {
    width: min(540px, calc(100vw - 32px));
    max-width: 540px;
    margin: 0;
}

.dhdk-cart-modal__surface {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(11, 18, 32, 0.24);
}

.dhdk-cart-modal__body {
    position: relative;
    min-height: 250px;
    padding: 38px 34px 32px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dhdk-cart-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 0 10px;
}

.dhdk-cart-modal__icon img {
    display: block;
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.dhdk-cart-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    opacity: 1;
}

.dhdk-cart-modal__title {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.02;
    font-weight: 800;
    color: #151b28;
    text-align: center;
}

.dhdk-cart-modal__description {
    margin: 0;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.6;
    color: #526078;
    text-align: center;
}

.dhdk-cart-modal__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 28px;
}

.dhdk-cart-modal__button {
    flex: 1 1 0;
    height: 52px;
    min-height: 52px;
    padding: 0 20px !important;
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px;
    border: 1px solid #d5dce7;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.dhdk-cart-modal__button--ghost {
    background: #fff;
    color: #151b28;
}

.dhdk-cart-modal__button--primary {
    background: #0d1322;
    border-color: #0d1322;
    color: #fff;
}

.dhdk-cart-item-meta {
    margin-top: 10px;
}

.dhdk-cart-item-subtitle {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7486;
}

.dhdk-cart-item-summary {
    font-size: 14px;
    line-height: 1.65;
    color: #30384a;
}

.dhdk-cart-item-preview-block {
    margin-top: 14px;
}

.dhdk-cart-item-preview-block--after-name {
    margin-top: 14px;
}

.dhdk-cart-item-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dhdk-cart-item-preview-link {
    display: block;
    width: 124px;
    max-width: 100%;
    line-height: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f7f9fc;
    box-shadow: 0 10px 22px rgba(20, 33, 61, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dhdk-cart-item-preview-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(20, 33, 61, 0.14);
}

.dhdk-cart-item-preview-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
}

.dhdk-cart-item-media-block {
    margin-top: 14px;
}

.dhdk-cart-item-media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dhdk-cart-item-media-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 124px;
    max-width: 100%;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #f7f9fc;
    box-shadow: 0 10px 22px rgba(20, 33, 61, 0.08);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dhdk-cart-item-media-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(20, 33, 61, 0.14);
}

.dhdk-cart-item-media-card__image-wrap {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
}

.dhdk-cart-item-media-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
}

.dhdk-cart-item-media-card__label {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    color: #1f2f45;
    word-break: break-word;
}

.dhdk-cart-item-media-card--file {
    justify-content: center;
    min-height: 124px;
}

.dhdk-cart-item-media-card__file-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dhdk-sidepanel-modal {
    background: rgba(0, 0, 0, 0) !important;
}

.dhdk-sidepanel-modal.dhdk-qr-modal--fallback,
.dhdk-sidepanel-modal.dhdk-text-modal--fallback {
    display: none;
}

.dhdk-sidepanel-modal.dhdk-qr-modal--fallback.is-open,
.dhdk-sidepanel-modal.dhdk-text-modal--fallback.is-open {
    display: block;
    position: fixed;
    inset: 0;
}

.dhdk-sidepanel-modal .modal-dialog,
.dhdk-sidepanel-modal.dhdk-qr-modal--fallback .modal-dialog,
.dhdk-sidepanel-modal.dhdk-text-modal--fallback .modal-dialog {
    width: min(420px, 100vw);
    max-width: min(420px, 100vw);
    min-height: 100vh;
    margin: 0;
    transform: translateX(-100%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.dhdk-sidepanel-modal.show .modal-dialog,
.dhdk-sidepanel-modal.is-open .modal-dialog {
    transform: translateX(0);
}

.dhdk-sidepanel-modal__surface {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: 16px 0 48px rgba(10, 18, 30, 0.18);
    position: relative;
    overflow: hidden;
}

.dhdk-sidepanel-modal--bg-soft .dhdk-sidepanel-modal__surface {
background: rgba(255, 255, 255, 0.8);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(6.3px);
-webkit-backdrop-filter: blur(6.3px);
}

.dhdk-sidepanel-modal__close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 3;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-size: 24px 24px;
    opacity: 1;
    box-shadow: none;
}

.dhdk-sidepanel-modal__close:hover,
.dhdk-sidepanel-modal__close:focus {
    opacity: 0.72;
}

.dhdk-sidepanel-modal__body {
    min-height: 100vh;
    padding: 34px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.dhdk-sidepanel-modal__content {
    width: 100%;
    display: grid;
    gap: 10px;
}

.dhdk-sidepanel-modal__content--qr {
    max-width: 410px;
}

.dhdk-sidepanel-modal__content--fill {
    max-width: 410px;
}

.dhdk-sidepanel-modal__content--text {
    max-width: 408px;
}

.dhdk-sidepanel-modal__intro {
    display: grid;
    gap: 12px;
}

.dhdk-sidepanel-modal__title {
    margin: 0;
    font-size: 36px;
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 700 !important;
    color: #09090b;
}

.dhdk-sidepanel-modal__description {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    color: #161616;
    max-width: 360px;
    margin-bottom:20px;
}

.dhdk-sidepanel-modal__preview-card {
    margin: 0;
}

.dhdk-qr-preview {
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dhdk-qr-preview-surface {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
        padding: 20px;

}

.dhdk-qr-preview-surface.is-background-enabled {
    padding: 20px;
    border-radius: 10px;
    background: var(--dhdk-qr-bg, #ffffff);
}

.dhdk-qr-preview svg {
    width: 100%;
    max-width: 160px;
    height: auto;
    display: block;
}

.dhdk-qr-feedback {
    min-height: 18px;
    margin-top: 10px;
    font-size: 12px;
    color: #b42318;
    text-align: center;
}

.dhdk-sidepanel-modal__fields,
.dhdk-qr-controls {
    display: grid;
    gap: 20px;
}

.dhdk-sidepanel-modal__field,
.dhdk-qr-field {
    display: grid;
    gap: 10px;
}

.dhdk-sidepanel-modal__label,
.dhdk-qr-label {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    color: #161616;
    height:min-content;
}

.dhdk-sidepanel-modal__input,
.dhdk-sidepanel-modal__textarea {
    width: 100%;
    border-radius: 999px !important;
    border: 1px solid rgba(0,0,0,0.4) !important;
    background: transparent !important;
    color: #111;
    font-size: 14px;
    box-shadow: none;
    padding: 20px 26px !important;
}

.dhdk-sidepanel-modal__textarea {
    min-height: 92px;
    border-radius: 26px;
    padding-top: 18px;
    padding-bottom: 18px;
    resize: vertical;
}

.dhdk-sidepanel-modal__input:focus,
.dhdk-sidepanel-modal__textarea:focus {
    border-color: #111;
    box-shadow: none;
    outline: none;
}

.dhdk-sidepanel-modal__divider {
    width: 100%;
    height: 1px;
    background: rgba(17, 17, 17, 0.14);
}

.dhdk-sidepanel-modal__section-title,
.dhdk-text-list-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    color: #161616;
    text-transform: none;
}

.dhdk-text-list-area {
    display: grid;
    gap: 10px;
}

.dhdk-text-list-empty {
    font-size: 14px;
    line-height: 1.3;
    color: #161616;
}

.dhdk-text-list {
    display: grid;
    gap: 10px;
}

.dhdk-text-list-item {
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.88);
    min-width: 0;
}

.dhdk-text-list-item-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    line-height: 1.3;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dhdk-text-list-item-actions {
    display: inline-flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.dhdk-text-list-item-actions .btn {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    margin:0;
    opacity:.3;
}

.dhdk-text-list-item-actions .btn:hover {
opacity:1;}

.dhdk-text-item-edit img,
.dhdk-text-item-delete img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
}

.dhdk-sidepanel-modal__actions,
.dhdk-qr-button-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.dhdk-sidepanel-modal__actions--single {
    grid-template-columns: minmax(0, 1fr);
}

.dhdk-sidepanel-modal__button,
.dhdk-qr-generate-apply,
.dhdk-qr-download,
.dhdk-qr-delete {
    min-height: 60px;
    width: 100%;
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: none;
    box-shadow: none;
}

.dhdk-sidepanel-modal__button--primary,
.dhdk-qr-generate-apply,
.dhdk-text-save {
    background: #000 !important;
    color: #fff !important;
}

.dhdk-sidepanel-modal__button--ghost,
.dhdk-qr-download {
    background: transparent !important;
    color: #111 !important;
    justify-self: start;
    width: auto;
    min-height: auto;
    padding: 0;
}

.dhdk-sidepanel-modal__footer-action,
.dhdk-qr-delete-row {
    display: flex;
    justify-content: center;
}

.dhdk-sidepanel-modal__text-action,
.dhdk-qr-delete {
    background: transparent !important;
    color: #111 !important;
    width: auto;
    min-height: auto;
    padding: 0;
}

.dhdk-sidepanel-modal__color-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
}

.dhdk-fill-modal__layout {
    grid-template-columns: minmax(0, 1fr);
}

.dhdk-sidepanel-modal__content--qr .dhdk-sidepanel-modal__color-layout,
.dhdk-fill-modal__layout .dhdk-sidepanel-modal__field,
.dhdk-sidepanel-modal__content--qr .dhdk-sidepanel-modal__field,
.dhdk-fill-modal__layout .dhdk-sidepanel-modal__swatch-group,
.dhdk-sidepanel-modal__content--qr .dhdk-sidepanel-modal__swatch-group,
.dhdk-fill-modal__layout .dhdk-sidepanel-modal__palette,
.dhdk-fill-modal__layout .dhdk-qr-color-palette,
.dhdk-sidepanel-modal__content--qr .dhdk-sidepanel-modal__palette,
.dhdk-sidepanel-modal__content--qr .dhdk-qr-color-palette {
    width: 100%;
    max-width: 100%;
}

.dhdk-sidepanel-modal__content--qr .dhdk-sidepanel-modal__color-layout {
    grid-template-columns: minmax(0, 1fr);
}

.dhdk-sidepanel-modal__swatch-group {
    display: grid;
    gap: 10px;
}

.dhdk-sidepanel-modal__palette,
.dhdk-qr-color-palette {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    margin: 0;
    width: 100%;
    gap: 6px;
}

.dhdk-sidepanel-modal__color-option,
.dhdk-qr-color-option,
.dhdk-qr-background-option {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-width: 0;
    max-width: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    box-shadow: none;
    margin: 0;
}

.dhdk-sidepanel-modal__color-option:hover,
.dhdk-qr-color-option:hover,
.dhdk-qr-background-option:hover {
    transform: translateY(-1px);
}

.dhdk-sidepanel-modal__color-option.is-active,
.dhdk-qr-color-option.is-active,
.dhdk-qr-background-option.is-active {
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.18);
}

.dhdk-qr-color-option-swatch {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: var(--dhdk-color, #111111);
    box-shadow: none;
    overflow: hidden;
}

.dhdk-qr-color-option-swatch--transparent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.dhdk-qr-color-option-swatch--transparent img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dhdk-qr-color-option-label {
    display: none;
}

.dhdk-sidepanel-modal__color-custom,
.dhdk-qr-color-custom {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.dhdk-qr-color-custom-preview {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    background: var(--dhdk-color, #111111);
    box-shadow: none;
}

.dhdk-qr-color-custom-preview.is-transparent {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.dhdk-qr-color-custom-preview.is-transparent::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 44%, #9aa4b2 44%, #9aa4b2 56%, transparent 56%);
}

.dhdk-sidepanel-modal__input--hex,
.dhdk-qr-color-input {
    min-height: 48px;
    font-size: 13px;
    text-transform: uppercase;
    padding-left: 18px;
    padding-right: 18px;
}
.dhdk-sidepanel-modal__input--hex{margin-bottom:0 !important; border: none !important;
  background: rgba(255,255,255,0.4) !important;
  border-radius: 8px !important;}

.dhdk-sidepanel-modal .btn:not(.btn-close) {
    box-shadow: none !important;
}

body.dhdk-qr-modal-open,
body.dhdk-fill-modal-open,
body.dhdk-text-modal-open {
    overflow: hidden;
}

.dhdk-fill-modal__dialog {
    max-width: 460px;
}

@media (max-width: 767px) {
    .dhdk-sidepanel-modal .modal-dialog,
    .dhdk-sidepanel-modal.dhdk-qr-modal--fallback .modal-dialog,
    .dhdk-sidepanel-modal.dhdk-fill-modal--fallback .modal-dialog,
    .dhdk-sidepanel-modal.dhdk-text-modal--fallback .modal-dialog {
        width: 100vw;
        max-width: 100vw;
    }

    .dhdk-sidepanel-modal__body {
        padding: 26px 22px 34px;
        align-items: flex-start;
    }

    .dhdk-sidepanel-modal.dhdk-text-modal .dhdk-sidepanel-modal__body,
    .dhdk-sidepanel-modal.dhdk-fill-modal .dhdk-sidepanel-modal__body,
    .dhdk-sidepanel-modal.dhdk-text-modal--fallback .dhdk-sidepanel-modal__body {
        align-items: center;
    }

    .dhdk-sidepanel-modal__content--qr,
    .dhdk-sidepanel-modal__content--fill,
    .dhdk-sidepanel-modal__content--text {
        max-width: none;
    }

    .dhdk-sidepanel-modal__title {
        font-size: 44px;
    }

    .dhdk-sidepanel-modal__color-layout,
    .dhdk-sidepanel-modal__actions,
    .dhdk-qr-button-row {
        grid-template-columns: 1fr;
    }

    .dhdk-sidepanel-modal__content--qr .dhdk-sidepanel-modal__swatch-group {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: 14px;
        row-gap: 8px;
    }

    .dhdk-sidepanel-modal__content--qr .dhdk-sidepanel-modal__palette,
    .dhdk-sidepanel-modal__content--qr .dhdk-qr-color-palette {
        flex-wrap: nowrap;
        align-self: center;
    }

    .dhdk-sidepanel-modal__content--qr .dhdk-sidepanel-modal__color-custom,
    .dhdk-sidepanel-modal__content--qr .dhdk-qr-color-custom {
        grid-template-columns: 32px minmax(0, 1fr);
        align-self: center;
    }

    .dhdk-sidepanel-modal__button--ghost,
    .dhdk-qr-download {
        width: 100%;
        min-height: 52px;
        background: #000 !important;
        color: #fff !important;
        justify-self: stretch;
    }
}

.dhdk-text-toolbar {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #000;
    max-width: calc(100% - 16px);
    overflow: visible;
    white-space: nowrap;
}

.dhdk-layout--hero .dhdk-text-toolbar.is-visible {
    position: absolute;
    left: 0;
    top: 0;
}

.dhdk-text-toolbar[hidden] {
    display: none !important;
}

.dhdk-qr-center-button,
.dhdk-qr-delete-button,
.dhdk-text-selection-center-button,
.dhdk-text-selection-delete-button {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 41;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #000;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.dhdk-qr-center-button,
.dhdk-text-selection-center-button {
    transform: translate(-50%, 50%);
}

.dhdk-qr-delete-button,
.dhdk-text-selection-delete-button {
    transform: translate(50%, -50%);
    background: #e53935;
}

.dhdk-qr-center-button:hover,
.dhdk-qr-delete-button:hover,
.dhdk-text-selection-center-button:hover,
.dhdk-text-selection-delete-button:hover {
    transform: translateY(-1px);
    background: #111;
}

.dhdk-qr-center-button:hover,
.dhdk-text-selection-center-button:hover {
    transform: translate(-50%, calc(50% - 1px));
}

.dhdk-qr-delete-button:hover,
.dhdk-text-selection-delete-button:hover {
    transform: translate(50%, calc(-50% - 1px));
    background: #d32f2f;
}

.dhdk-qr-center-button[hidden],
.dhdk-qr-delete-button[hidden],
.dhdk-text-selection-center-button[hidden],
.dhdk-text-selection-delete-button[hidden] {
    display: none !important;
}

.dhdk-qr-center-button img,
.dhdk-qr-delete-button img,
.dhdk-text-selection-center-button img,
.dhdk-text-selection-delete-button img {
    display: block;
    width: 13px;
    height: 13px;
    object-fit: contain;
    pointer-events: none;
    min-width:13px;
}

.dhdk-text-toolbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.dhdk-text-toolbar-icon--static {
    width: 26px;
    height: 32px;
}

.dhdk-text-toolbar-icon img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.dhdk-text-font-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 32px;
    min-width: 182px;
    max-width: min(320px, calc(100vw - 72px));
}

.dhdk-text-toolbar-font {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.dhdk-text-font-trigger {
    width: 100%;
    height: 32px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    text-align: left;
margin:0;
    color: #fff;
    padding: 3px 30px 3px 8px;
    position: relative;
    cursor: pointer;
    text-transform:  unset !important;
}

.dhdk-text-color-trigger, .dhdk-text-font-trigger , .dhdk-text-toolbar-btn{margin:0;}

.dhdk-text-font-trigger::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.8);
    transform: translateY(-58%) rotate(45deg);
    transition: transform 0.18s ease;
}

.dhdk-text-font-dropdown.is-open .dhdk-text-font-trigger::after {
    transform: translateY(-28%) rotate(-135deg);
}

.dhdk-text-font-trigger-file {
    display: block;
    font-size: 9px;
    line-height: 1;
    text-transform: lowercase;
    opacity: 0.78;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.dhdk-text-font-trigger-preview {
    display: block;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 500;
}

.dhdk-text-font-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    width: min(320px, calc(100vw - 72px));
    max-height: min(300px, 42vh);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 90;
    pointer-events: auto;
}

.dhdk-text-font-menu, .dhdk-text-color-menu{-webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    border-radius: 8px;
    background: rgba(0,0,0,0.8);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
    padding: 6px;}



.dhdk-text-font-option {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 7px 9px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.dhdk-text-font-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dhdk-text-font-option.is-active {
    background: rgba(68, 166, 70, 1);
    box-shadow: inset 0 0 0 1px rgba(68, 166, 70, 0.4);
}

.dhdk-text-font-option-file {
    display: block;
    font-size: 10px;
    line-height: 1.1;
    text-transform: lowercase;
    opacity: 0.74;
    font-weight: 500;
}

.dhdk-text-font-option-preview {
    display: block;
    font-size: 16px;
    line-height: 1.2;
    color: #fff;
    text-transform: capitalize !important;
}

.dhdk-text-color-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 32px;
    min-width: 128px;
    max-width: min(220px, calc(100vw - 72px));
}

.dhdk-text-color-trigger {
    width: 100%;
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    padding: 0 28px 0 8px;
    position: relative;
    cursor: pointer;
}

.dhdk-text-color-trigger::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.8);
    transform: translateY(-58%) rotate(45deg);
    transition: transform 0.18s ease;
}

.dhdk-text-color-dropdown.is-open .dhdk-text-color-trigger::after {
    transform: translateY(-28%) rotate(-135deg);
}

.dhdk-text-color-trigger-swatch {
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: var(--dhdk-color, #111111);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
    flex: 0 0 auto;
}

.dhdk-text-color-trigger-label {
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.dhdk-text-color-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    width: min(220px, calc(100vw - 72px));
    max-height: min(260px, 40vh);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 90;
    pointer-events: auto;
    display: grid;
    gap: 4px;
}

.dhdk-text-color-option {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.dhdk-text-color-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dhdk-text-color-option.is-active {
    background: rgba(68, 166, 70, 0.18);
    box-shadow: inset 0 0 0 1px rgba(68, 166, 70, 0.4);
}

.dhdk-text-color-option-swatch {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: var(--dhdk-color, #111111);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
    flex: 0 0 auto;
}

.dhdk-text-color-option-label {
    font-size: 12px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.dhdk-text-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border-radius:4px;
}

.dhdk-text-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.dhdk-text-toolbar-btn.is-active {
    border-color: rgba(68, 166, 70, 0.9);
    background: rgba(68, 166, 70, 0.22);
    color: #dff9e1;
}

.dhdk-text-toolbar-btn img {
    display: block;
    width: 15px;
    height: 15px;
    object-fit: contain;
    pointer-events: none;
}

.dhdk-text-toolbar > * {
    align-self: center;
}


.dhdk-description-custom-items {
    border: 1px solid rgba(21, 33, 51, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    padding: 16px;
}

.dhdk-description-custom-items-title {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.3;
}

.dhdk-description-custom-group + .dhdk-description-custom-group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(21, 33, 51, 0.1);
}

.dhdk-description-custom-group-title {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.35;
}

.dhdk-description-custom-group-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.dhdk-description-custom-item {
    position: relative;
    border: 1px solid rgba(21, 33, 51, 0.16);
    border-radius: 10px;
    background: #fff;
    padding: 8px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dhdk-description-custom-item.is-active {
    border-color: #44a646;
    box-shadow: 0 0 0 1px rgba(68, 166, 70, 0.25);
}

.dhdk-description-custom-item.is-disabled {
    opacity: .5;
    filter: grayscale(1);
    pointer-events: none;
}

.dhdk-description-custom-item-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    border: 1px solid rgba(21, 33, 51, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f7fa;
}

.dhdk-description-custom-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dhdk-description-custom-item-fallback {
    font-size: 20px;
    font-weight: 700;
    color: #0f1725;
}

.dhdk-description-custom-item-label {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    color: #0f1725;
}

.dhdk-description-custom-item-selected {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.25;
    color: #44a646;
    font-weight: 700;
}

@media (max-width: 980px) {
    .dhdk-buybox-body .dhdk-options-grid {
    }

    .dhdk-buybox-body .dhdk-field-col {
        padding: 0 4px 8px;
    }

    .dhdk-layout--hero .dhdk-control-btn {
        font-size: 10px;
    }

    .dhdk-layout--hero .dhdk-canvas-controls {
        width: auto;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    .dhdk-qr-actions .dhdk-qr-open, .dhdk-text-actions .dhdk-text-open{font-size:9px !important;}

    .dhdk-configurator-shell,
    body.admin-bar .dhdk-configurator-shell {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .dhdk-configurator,
    .dhdk-layout--hero,
    body.admin-bar .dhdk-configurator,
    body.admin-bar .dhdk-layout--hero {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .dhdk-buybox-col {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .dhdk-buybox-body {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
    }

    .dhdk-shell-loader {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        width: 100dvw !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }

    .dhdk-shell-loader-logo {
        width: 86px;
        height: 86px;
    }

    .dhdk-stage-stack > .dhdk-configurator-notice {
        display: none !important;
    }

    .dhdk-stage-stack > .dhdk-canvas-controls .dhdk-download-preview {
        display: none !important;
    }

    .dhdk-buybox-mobile-preview {
        display: block;
    }

    .dhdk-buybox-mobile-preview .dhdk-control-btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        background:#000;
        font-size:14px;
    }

    .dhdk-configurator-notice--buybox-mobile {
        display: block;
        margin-top: 4px;
        padding: 0;
        color: #5d6b7d;
        text-align: center;
    }

    .dhdk-configurator-notice--buybox-mobile p {
        color: #5d6b7d;
        text-shadow: none;
    }

    .dhdk-configurator-tips {
        right: 16px;
        bottom: 16px;
        width: min(320px, calc(100% - 32px));
        padding: 15px;
    }

    .dhdk-configurator-shell > .dhdk-shell-bottom-overlay {
        display: none !important;
    }

    .dhdk-shell-bottom-overlay--stage-mobile {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 220px;
        z-index: 0;
        background-color: transparent;
        background-image: url('../images/general/dk-konfi-overlay.webp');
        background-position: bottom center;
        background-repeat: no-repeat;
        background-size: cover;
        pointer-events: none;
    }

    .dhdk-stage-stack {
        overflow: hidden;
    }
}

@media (max-width: 1200px) and (min-width: 981px) {
    .dhdk-stage-col,
    .dhdk-stage-col.dhdk-stage-col-size-fixed {
        align-items: center !important;
    }

    .dhdk-stage-col .dhdk-stage-stack,
    .dhdk-stage-col.dhdk-stage-col-size-fixed .dhdk-stage-stack {
        justify-content: center !important;
        min-height: 0 !important;
    }

    .dhdk-layout--hero .dhdk-canvas-box,
    .dhdk-stage-col.dhdk-stage-col-size-fixed .dhdk-canvas-box {
        flex: 0 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        align-items: center !important;
    }

    .dhdk-layout--hero .dhdk-canvas-stage {
        height: auto !important;
        max-height: none !important;
    }

    .dhdk-layout--hero .dhdk-canvas {
        max-height: none !important;
    }
}
