.xp-product-tile {
    position: relative;
    isolation: isolate;
    cursor: pointer;
    border-radius: 20px;
}
.xp-product-tile > .xp-card-open {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}
.xp-product-tile > .kt-inside-inner-col {
    /* Kadence's z-index:1 would trap all controls below the full-card link. */
    z-index: auto;
}
.xp-product-tile .wp-block-columns { margin-bottom: 0 !important; }
.xp-product-tile .kwt-add-to-cart-loop a.button::before {
    /* The legacy cart font glyph would overlap the native SVG. */
    content: none !important;
    display: none !important;
}
.xp-symbol-image { position: relative; }
.xp-image-caption {
    position: absolute;
    right: 3px;
    bottom: 3px;
    z-index: 1;
    padding: 1px 4px;
    border-radius: 3px;
    background: #ffffffe6;
    color: #4b4640;
    font: 9px/1.3 sans-serif;
    pointer-events: none;
}
.xp-product-tile .productPrice { margin-bottom: 0 !important; padding-bottom: 10px; display: inline-block; }
.xp-product-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 100ms ease;
}
.xp-product-tile:focus-within::after { opacity: .06; }
@media (hover: hover) {
    .xp-product-tile:hover::after { opacity: .08; }
}
.xp-product-tile:active::after,
.xp-product-tile.xp-tile-opening::after { opacity: .16; }
.xp-product-tile > .xp-card-open:focus-visible {
    outline: 3px solid #275f98;
    outline-offset: 3px;
}
/* These controls remain separate actions above the stretched product link. */
.xp-product-tile .kwt-add-to-cart-wrap,
.xp-product-tile .xp-card-choice {
    position: relative;
    z-index: 3;
    cursor: auto;
}
#kt-scroll-up {
    bottom: calc(94px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
    background: #fff !important;
    color: #263549 !important;
    border: 1px solid #9dabc2;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px #0002;
    z-index: 900;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
#kt-scroll-up > .kadence-svg-iconset {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    width: 24px;
    height: 24px;
}
#kt-scroll-up svg {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 !important;
}
.mg-delivery-selector { width: 100%; min-width: 0; }
#mg-postcode-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 16px;
    padding: 10px 32px 10px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xp-delivery-choice {
    position: relative;
    border: 1px solid #9dabc2;
    border-radius: 6px;
    background: #fff;
    width: 100%;
}
.xp-delivery-choice:focus-within { outline: 2px solid #275f98; outline-offset: 2px; }
.xp-delivery-choice #mg-postcode-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    z-index: 1;
    cursor: pointer;
}
.xp-delivery-value {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr);
    align-items: center;
    gap: 8px;
    padding: 10px 30px 10px 10px;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.3;
    color: #263549;
    text-align: left;
    pointer-events: none;
}
.xp-delivery-postcode { white-space: nowrap; font-variant-numeric: tabular-nums; }
.xp-delivery-district { min-width: 0; overflow-wrap: break-word; word-break: normal; font-size: 15px; text-align: left; }
.xp-delivery-choice.is-empty .xp-delivery-value { grid-template-columns: minmax(0,1fr); }
.xp-delivery-choice.is-empty .xp-delivery-postcode { display: none; }
.xp-delivery-arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
#mg-zone-result { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
#mg-zone-min { font-weight: 700; color: #263549; }
#mg-apply-zone { margin-top: 12px; min-height: 44px; }
@media (prefers-reduced-motion: reduce) {
    .xp-product-tile::after { transition: none; }
}
@media (max-width: 767px) {
    #mg-modal .kt-modal-container {
        width: calc(100% - 32px) !important;
        margin: 16px !important;
        padding: 24px 16px 20px !important;
        box-sizing: border-box;
    }
    #customid fieldset.kad_radio_variations[data-attribute_name="attribute_pa_scharfe"] {
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: 4px;
    }
    #customid fieldset[data-attribute_name="attribute_pa_scharfe"] label {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        width: auto !important;
        min-width: 0;
        min-height: 60px;
        margin: 0;
        padding: 4px !important;
    }
    #customid fieldset[data-attribute_name="attribute_pa_scharfe"] .label_text {
        font-size: 11px;
        line-height: 13px;
        white-space: normal;
        text-align: center;
    }
    #customid fieldset[data-attribute_name="attribute_pa_scharfe"] .kt_color_sw_span {
        width: 16px !important;
        height: 16px !important;
        margin: 4px auto 0;
    }
    .xp-simple-product > .kt-inside-inner-col { min-height: 116px; }
    .xp-simple-product .kwt-add-to-cart-loop {
        position: absolute !important;
        right: 10px;
        bottom: 8px;
        width: 44px;
        height: 44px;
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .xp-simple-product .kwt-add-to-cart-loop a.button {
        width: 44px;
        min-height: 44px;
        padding: 0 !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}
