/* VelveTronic Delivery — front-end order-type popup. Card-style modal: a
   centered dialog with two selectable cards (Delivery / Pickup), each with a
   colored icon badge, name and description. Behavior is unchanged — the JS
   still toggles the [hidden] attribute and reads #vtd-popup / .vtd-popup-btn. */

.vtd-popup,
.vtd-popup * {
    box-sizing: border-box;
}

.vtd-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
}

.vtd-popup[hidden] {
    display: none;
}

.vtd-popup-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 44px 24px 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.vtd-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.vtd-popup-close:hover {
    background: #e5e7eb;
    color: #111;
}

.vtd-popup-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.vtd-popup-subtitle {
    margin: 0 0 20px;
    font-size: 14px;
    color: #6b7280;
}

.vtd-popup-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.vtd-popup-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 14px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.vtd-popup-btn:hover,
.vtd-popup-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.vtd-popup-btn--delivery:hover,
.vtd-popup-btn--delivery:focus,
.vtd-popup-btn--delivery.is-selected {
    border-color: #2196f3;
}

.vtd-popup-btn--pickup:hover,
.vtd-popup-btn--pickup:focus,
.vtd-popup-btn--pickup.is-selected {
    border-color: #4caf50;
}

.vtd-popup-btn--delivery.is-selected {
    background: #f0f8ff;
}

.vtd-popup-btn--pickup.is-selected {
    background: #f1f8f1;
}

.vtd-popup-btn:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

.vtd-popup-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
}

.vtd-popup-icon svg {
    width: 30px;
    height: 30px;
}

.vtd-popup-btn--delivery .vtd-popup-icon {
    background: #2196f3;
}

.vtd-popup-btn--pickup .vtd-popup-icon {
    background: #4caf50;
}

.vtd-popup-btn-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.vtd-popup-btn-desc {
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.45;
}

@media (max-width: 480px) {
    .vtd-popup-buttons {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ *
 * Style variants. Each rule is prefixed with the root modifier class
 * (.vtd-style-sharp / .vtd-style-compact) so it wins on specificity
 * over the base (classic) rules above. The base rules ARE classic —
 * .vtd-style-classic carries no overrides of its own.
 * ------------------------------------------------------------------ */

/* sharp — every corner squared, warm/charcoal palette, alternate icons. */
.vtd-style-sharp .vtd-popup-dialog,
.vtd-style-sharp .vtd-popup-btn,
.vtd-style-sharp .vtd-popup-icon,
.vtd-style-sharp .vtd-popup-close {
    border-radius: 0;
}

.vtd-style-sharp .vtd-popup-btn--delivery .vtd-popup-icon {
    background: #e65100;
}

.vtd-style-sharp .vtd-popup-btn--pickup .vtd-popup-icon {
    background: #263238;
}

.vtd-style-sharp .vtd-popup-btn--delivery:hover,
.vtd-style-sharp .vtd-popup-btn--delivery:focus,
.vtd-style-sharp .vtd-popup-btn--delivery.is-selected {
    border-color: #e65100;
}

.vtd-style-sharp .vtd-popup-btn--pickup:hover,
.vtd-style-sharp .vtd-popup-btn--pickup:focus,
.vtd-style-sharp .vtd-popup-btn--pickup.is-selected {
    border-color: #263238;
}

.vtd-style-sharp .vtd-popup-btn--delivery.is-selected {
    background: #fbe9e7;
}

.vtd-style-sharp .vtd-popup-btn--pickup.is-selected {
    background: #eceff1;
}

/* compact — rounded like classic but tighter, teal/amber, no descriptions. */
.vtd-style-compact .vtd-popup-dialog {
    max-width: 400px;
}

.vtd-style-compact .vtd-popup-btn {
    padding: 16px 12px;
    gap: 8px;
}

.vtd-style-compact .vtd-popup-icon {
    width: 46px;
    height: 46px;
}

.vtd-style-compact .vtd-popup-icon svg {
    width: 24px;
    height: 24px;
}

.vtd-style-compact .vtd-popup-btn--delivery .vtd-popup-icon {
    background: #009688;
}

.vtd-style-compact .vtd-popup-btn--pickup .vtd-popup-icon {
    background: #ff9800;
}

.vtd-style-compact .vtd-popup-btn--delivery:hover,
.vtd-style-compact .vtd-popup-btn--delivery:focus,
.vtd-style-compact .vtd-popup-btn--delivery.is-selected {
    border-color: #009688;
}

.vtd-style-compact .vtd-popup-btn--pickup:hover,
.vtd-style-compact .vtd-popup-btn--pickup:focus,
.vtd-style-compact .vtd-popup-btn--pickup.is-selected {
    border-color: #ff9800;
}

.vtd-style-compact .vtd-popup-btn--delivery.is-selected {
    background: #e0f2f1;
}

.vtd-style-compact .vtd-popup-btn--pickup.is-selected {
    background: #fff3e0;
}
