.product-gallery__main {
    position: relative;
    overflow: hidden;
}

.product-gallery__main [data-gallery-image] {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #111827;
    font: 700 30px/1 sans-serif;
    place-items: center;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .18);
    transform: translateY(-50%);
    cursor: pointer;
}

.product-gallery__arrow:hover,
.product-gallery__arrow:focus-visible {
    border-color: #f4b400;
    outline: 3px solid rgba(255, 195, 0, .3);
}

.product-gallery__arrow--previous { left: 10px; }
.product-gallery__arrow--next { right: 10px; }

.product-gallery__thumbs [data-gallery-thumb] {
    overflow: hidden;
    cursor: pointer;
}

.product-gallery__thumbs [data-gallery-thumb].is-active,
.product-gallery__thumbs [data-gallery-thumb][aria-current="true"] {
    border-color: #f4b400;
    box-shadow: 0 0 0 2px rgba(255, 195, 0, .25);
}

.delivery-fee-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 4px;
    padding: 11px 12px;
    border-radius: 8px;
    background: #fff8db;
    color: #3f3200;
}

.delivery-fee-preview strong { white-space: nowrap; }

.delivery-pickup-unavailable {
    margin: 8px 0 2px;
    padding: 9px 11px;
    border-left: 3px solid #d99b00;
    border-radius: 4px;
    background: #fff8e1;
    color: #654d00;
    font-size: .82rem;
    line-height: 1.45;
}

.delivery-admin-toggle,
.delivery-admin-cities {
    min-width: 0;
    margin: 8px 0 0;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.delivery-admin-toggle legend,
.delivery-admin-cities legend {
    padding: 0 7px;
    color: #111827;
    font-weight: 800;
}

.delivery-admin-toggle > label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.delivery-admin-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #e6a900;
}

.delivery-admin-toggle span { display: grid; gap: 3px; }
.delivery-admin-toggle small,
.delivery-admin-toggle > p,
.delivery-admin-cities > p { color: #64748b; line-height: 1.45; }
.delivery-admin-toggle > p { margin: 10px 0 0 32px; }
.delivery-admin-cities > p { margin: 0 0 14px; }

.delivery-admin-cities__labels,
.delivery-admin-city-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, .55fr) auto;
    gap: 10px;
    align-items: center;
}

.delivery-admin-cities__labels {
    padding: 0 0 6px;
    color: #475569;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.delivery-admin-city-row { margin-bottom: 10px; }
.delivery-admin-city-row label { min-width: 0; }
.delivery-admin-city-row input { width: 100%; }

.delivery-admin-city-remove,
.delivery-admin-city-add {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-weight: 750;
    cursor: pointer;
}

.delivery-admin-city-remove {
    padding: 8px 12px;
    color: #b42318;
}

.delivery-admin-city-add {
    padding: 9px 14px;
    color: #334155;
}

.delivery-admin-city-remove:disabled,
.delivery-admin-city-add:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .product-gallery__arrow {
        width: 38px;
        height: 38px;
        font-size: 27px;
    }

    .delivery-admin-cities__labels { display: none; }
    .delivery-admin-city-row { grid-template-columns: 1fr; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0; }
    .delivery-admin-city-row label::before { display: block; margin-bottom: 4px; color: #64748b; content: attr(data-mobile-label); font-size: .75rem; font-weight: 800; }
    .delivery-admin-city-remove { justify-self: start; }
}

html.dark .delivery-fee-preview,
html.dark .delivery-pickup-unavailable {
    background: #332b12;
    color: #fde68a;
}

html.dark .delivery-admin-toggle,
html.dark .delivery-admin-cities {
    border-color: #334155;
    background: #172033;
}

html.dark .delivery-admin-toggle legend,
html.dark .delivery-admin-cities legend { color: #f8fafc; }
