:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .added_to_cart.wc-forward {
    display: none !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .button.add_to_cart_button:not(.dn-tanc-suggested-add-to-cart),
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .button.product_type_simple:not(.dn-tanc-suggested-add-to-cart),
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .button.product_type_variable:not(.dn-tanc-suggested-add-to-cart),
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-add-to-cart {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: auto !important;
    border-radius: 999px !important;
    background: #000 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: nowrap;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .button.add_to_cart_button:not(.dn-tanc-suggested-add-to-cart)::before,
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .button.product_type_simple:not(.dn-tanc-suggested-add-to-cart)::before,
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .button.product_type_variable:not(.dn-tanc-suggested-add-to-cart)::before,
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-add-to-cart::before {
    content: none !important;
    display: none !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .button .dn-tanc-suggested-button-icon,
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-add-to-cart .dn-tanc-suggested-button-icon {
    display: block !important;
    width: 15px !important;
    min-width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
    color: currentColor !important;
    fill: currentColor !important;
    pointer-events: none !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .button .dn-tanc-suggested-button-text,
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-add-to-cart .dn-tanc-suggested-button-text {
    display: inline-block !important;
    min-width: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-mini-form {
    width: 100%;
    max-width: 290px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-config-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-config-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 28px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid #111;
    border-radius: 999px;
    color: #111;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-config-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-config-button::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: 0.85;
    flex: 0 0 auto;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-config-button[aria-expanded="true"],
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-config-button:hover {
    color: #111;
    background: #f7f7f7;
    text-decoration: none;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-config-panels {
    display: none !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-config-panel {
    width: 100%;
    display: grid;
    gap: 9px;
    padding: 10px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-config-panel[hidden],
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-custom-line[hidden],
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-custom-line-row[hidden] {
    display: none !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-field {
    display: grid;
    gap: 5px;
    margin: 0;
    color: #222;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-field select,
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-field input,
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-field textarea {
    width: 100%;
    min-height: 32px;
    border: 1px solid #b8b8b8;
    border-radius: 6px;
    background: #fff;
    padding: 0 9px;
    color: #222;
    font-size: 12px;
    line-height: 1.25;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-custom-line {
    display: grid;
    gap: 9px;
    padding-top: 2px;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-add-to-cart {
    margin-top: 0 !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-add-to-cart.is-loading {
    opacity: 0.72;
    cursor: wait;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-message {
    min-height: 15px;
    color: #14833b;
    font-size: 11px;
    line-height: 1.25;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-message[hidden] {
    display: none !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [class*="ct-suggested-products"] :is(.product, .flexy-item) .dn-tanc-suggested-message[data-error] {
    color: #b42318;
}

body.dn-tanc-checkout-active .ct-order-review-modules [class*="ct-suggested-products"] {
    margin-top: 0;
}

body.dn-tanc-checkout-active .ct-order-review-modules .ct-suggested-products--checkout .flexy-view {
    overflow: hidden;
}

body.dn-tanc-checkout-active .ct-order-review-modules .ct-suggested-products--checkout .flexy-item {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    align-items: center;
    gap: 16px !important;
    padding: 25px;
    background: #fff;
    /* Same slide spacing as the cart drawer: a transparent border carves the gap
       out of the slide without changing its width, so the slider keeps paging
       correctly and the white card simply sits 8px in from each edge. */
    border: 8px solid transparent;
    background-clip: padding-box;
    border-radius: 18px;
}

body.dn-tanc-checkout-active .ct-order-review-modules .ct-suggested-products--checkout .flexy-item .ct-media-container {
    width: 118px !important;
    height: 118px !important;
    flex: 0 0 118px;
    border-radius: 15px;
    overflow: hidden;
}

body.dn-tanc-checkout-active .ct-order-review-modules .ct-suggested-products--checkout .flexy-item .ct-media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.dn-tanc-checkout-active .ct-order-review-modules .ct-suggested-products--checkout .flexy-item section {
    width: auto !important;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body.dn-tanc-checkout-active .ct-order-review-modules .ct-suggested-products--checkout .flexy-item .ct-product-title {
    color: #111;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 500;
}

body.dn-tanc-checkout-active .ct-order-review-modules .ct-suggested-products--checkout .flexy-item .price {
    color: #222;
    font-size: 14px;
    line-height: 1.3;
    margin: 4px 0 8px;
}

#woo-cart-panel [class*="ct-suggested-products"] .dn-tanc-suggested-mini-form,
body.dn-tanc-checkout-active .ct-order-review-modules [class*="ct-suggested-products"] .dn-tanc-suggested-mini-form {
    max-width: 100%;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] {
    width: 100% !important;
    max-width: 290px;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    margin-top: 4px;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-config-actions] {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 6px;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-config-panels {
    display: none !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-config-button {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 28px !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 0 11px !important;
    border: 1px solid #111 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
    overflow: hidden;
    cursor: pointer;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-config-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-config-button::before {
    content: none !important;
    display: none !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-config-button::after {
    content: "" !important;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: 0.85;
    flex: 0 0 auto;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-add-to-cart {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #000 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-add-to-cart::before,
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-add-to-cart::after {
    content: none !important;
    display: none !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-add-to-cart .dn-tanc-suggested-button-icon {
    display: block !important;
    width: 15px !important;
    min-width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
    color: currentColor !important;
    fill: currentColor !important;
    opacity: 1 !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-add-to-cart .dn-tanc-suggested-button-text {
    display: inline-block !important;
    min-width: 0 !important;
    color: inherit !important;
    font-size: 13px !important;
    line-height: 1 !important;
    opacity: 1 !important;
}

#woo-cart-panel [data-dn-tanc-suggested-form],
body.dn-tanc-checkout-active .ct-order-review-modules [data-dn-tanc-suggested-form] {
    max-width: 100%;
}

/* Suggested product card: leave the image alone (its width is set in the theme
   Customizer › Mini Cart › Image Width) and only let the content column
   (title / price / options / add-to-cart) grow into the remaining space. */
#woo-cart-panel [class*="ct-suggested-products"] .flexy-item > section {
    flex: 1 1 auto;
    min-width: 0;
}

.dn-tanc-suggested-modal-backdrop {
    appearance: none !important;
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: block;
    width: 100vw;
    max-width: none !important;
    height: 100vh;
    min-height: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.42);
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    box-shadow: none !important;
    cursor: default;
}

.dn-tanc-suggested-modal-backdrop[hidden] {
    display: none !important;
}

#woo-cart-panel .ct-panel-content.dn-tanc-suggested-modal-host {
    position: relative;
}

#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open {
    position: absolute !important;
    inset: 0 !important;
    z-index: 20 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
    padding: 32px 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open[hidden] {
    display: none !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-config-panel.is-modal-open:not(.dn-tanc-suggested-cart-modal),
body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    z-index: 999999 !important;
    width: min(560px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 72px) !important;
    display: grid !important;
    gap: 14px !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
    padding: 22px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24) !important;
    transform: translate(-50%, -50%) !important;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-config-panel.is-modal-open:not(.dn-tanc-suggested-cart-modal)[hidden],
body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open[hidden] {
    display: none !important;
}

.dn-tanc-suggested-modal-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 2px;
}

.dn-tanc-suggested-modal-header h3 {
    margin: 0;
    color: #111;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

.dn-tanc-suggested-modal-close {
    width: 34px;
    height: 34px;
    min-height: 34px;
    margin-left: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111;
    line-height: 1;
    cursor: pointer;
}

.dn-tanc-suggested-modal-close svg {
    display: block;
    width: 20px;
    height: 20px;
}

.dn-tanc-suggested-modal-close:hover {
    background: #f2f2f2;
}

.dn-tanc-suggested-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.dn-tanc-suggested-modal-price {
    color: #111;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}

button.dn-tanc-suggested-modal-ok,
.dn-tanc-suggested-modal-ok {
    min-width: 96px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

button.dn-tanc-suggested-modal-ok:hover,
.dn-tanc-suggested-modal-ok:hover {
    background: #111;
    color: #fff;
}

/* Dimmed / gated Ok: mirrors the single-product add-to-cart "selection needed"
   state — visible but muted until all required options are chosen. */
button.dn-tanc-suggested-modal-ok:disabled,
button.dn-tanc-suggested-modal-ok.is-disabled,
.dn-tanc-suggested-modal-ok:disabled,
.dn-tanc-suggested-modal-ok.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #000;
    color: #fff;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-config-panel.is-modal-open .dn-tanc-suggested-field,
body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open .dn-tanc-suggested-field,
#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open .dn-tanc-suggested-field {
    gap: 7px;
    font-size: 13px;
}

:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-config-panel.is-modal-open .dn-tanc-suggested-field select,
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-config-panel.is-modal-open .dn-tanc-suggested-field input,
:is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-config-panel.is-modal-open .dn-tanc-suggested-field textarea,
body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open .dn-tanc-suggested-field select,
body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open .dn-tanc-suggested-field input,
body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open .dn-tanc-suggested-field textarea,
#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open .dn-tanc-suggested-field select,
#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open .dn-tanc-suggested-field input,
#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open .dn-tanc-suggested-field textarea {
    min-height: 42px;
    border-radius: 6px;
    font-size: 14px;
}

/* Native-slot inner styling is shared by the drawer cart-modal AND the checkout
   order-review popup (a body-level portal), so the checkout popup shows the same
   Blocksy swatches as the sidebar cart instead of plain <select>s. */
:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) .dn-tanc-suggested-fallback-controls[hidden],
:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) .dn-tanc-suggested-native-slot[hidden] {
    display: none !important;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) .dn-tanc-suggested-native-slot {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    /* Leave head/side room so the native swatch hover tooltip (floats above the
       swatch, centred on it) isn't clipped by this scroll container's edges —
       the top row and the left-most swatch would otherwise be cut off. */
    padding-top: 16px;
    padding-left: 16px;
}

/* Native "Clear" reset link + the ": value" label suffix cloned from the product
   page — style on the native classes so a theme update keeps working. */
:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] .reset_variations {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.2;
    color: #777;
    text-decoration: underline;
    cursor: pointer;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] table.variations .label [data-dn-tanc-variation-value] {
    font-weight: 400;
    color: #555;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) .dn-tanc-suggested-native-loading {
    color: #666;
    font-size: 14px;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] table.variations {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] table.variations tbody,
:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] table.variations tr,
:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] table.variations th,
:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] table.variations td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    /* Reset the browser's default <th> centering so the ".label" heading
       aligns left with its swatches/size pills below it. */
    text-align: left !important;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] table.variations tr + tr {
    margin-top: 18px !important;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] table.variations .label {
    margin: 0 0 8px !important;
    font-weight: 500;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] .ct-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--swatches-gap, 8px);
}

/* Blocksy sizes swatches through `.variations_form.cart [data-swatches-type]`
   (which sets --swatch-size) plus scoped .ct-swatch display rules. We clone only
   table.variations, so that wrapper — and the size — is lost, collapsing the
   swatches to a sliver. Blocksy's colour/border/content rules ARE global and
   still apply, so we only need to restore the size + display here. Values match
   the product page (.variations_form.cart: colour 25, image/button/mixed 35). */
:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] [data-swatches-type="color"] {
    --swatch-size: 25px;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] [data-swatches-type="image"],
:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] [data-swatches-type="button"],
:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] [data-swatches-type="mixed"] {
    --swatch-size: 35px;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] .ct-swatch-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] :is([data-swatches-type="color"], [data-swatches-type="image"]) .ct-swatch {
    display: block;
    width: var(--swatch-size, 25px);
    height: var(--swatch-size, 25px);
    border-radius: 200px;
    cursor: pointer;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] :is([data-swatches-type="color"], [data-swatches-type="image"]) .ct-swatch-content {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] :is([data-swatches-type="button"], [data-swatches-type="mixed"]) .ct-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--swatch-size, 35px);
    height: var(--swatch-size, 35px);
    padding: 2px 12px;
    border: 1px solid var(--theme-palette-color-3, #0f0f0f);
    border-radius: 200px;
    cursor: pointer;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] select:not(.dn-tanc-personalize__custom-line-source) {
    width: 100%;
    min-height: 42px;
    border-radius: 6px;
}

/* Swatch attributes ship a visually-hidden native <select> next to the swatches
   (Blocksy hides it on the product page, but that scoped rule is lost in the
   clone). Hide it so the popup shows only the swatches, not a duplicate dropdown. */
:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] .ct-variation-swatches select {
    display: none;
}

/* The custom-line pill buttons drive a visually-hidden source <select>. Keep it
   removed from layout (Blocksy's clip pattern) so its long option text can't
   force a horizontal scrollbar inside the modal. */
:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] .dn-tanc-personalize__custom-line-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] .dn-tanc-personalize {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] .dn-tanc-personalize__summary,
:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] .single_variation_wrap,
:is(#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open, body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open) [data-dn-tanc-native-slot] .reset_variations_alert {
    display: none !important;
}

#woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open .dn-tanc-suggested-modal-footer {
    margin-top: auto;
}

@media (max-width: 480px) {
    :is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-config-actions] {
        gap: 6px;
    }

    :is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-config-button {
        padding-inline: 8px !important;
        font-size: 11px !important;
    }

    :is(#woo-cart-panel, body.dn-tanc-checkout-active .ct-order-review-modules) [data-dn-tanc-suggested-form] .dn-tanc-suggested-config-panel.is-modal-open:not(.dn-tanc-suggested-cart-modal),
    body > .dn-tanc-suggested-config-panel.dn-tanc-suggested-modal-portal.is-modal-open {
        width: calc(100vw - 22px) !important;
        max-height: calc(100vh - 36px) !important;
        padding: 18px !important;
    }

    #woo-cart-panel .ct-panel-content > .dn-tanc-suggested-config-panel.dn-tanc-suggested-cart-modal.is-modal-open {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        padding: 24px 18px !important;
    }
}
