/* Estimated Delivery Time — front-end styles
   Palette and shapes mirror the reference design (navy buttons, coral active, rounded card). */

:root {
    --edt-navy:    #232c54;
    --edt-navy-2:  #2c3766;
    --edt-coral:   #fb5b6f;
    --edt-coral-d: #f4364f;
    --edt-surface: #ffffff;
    --edt-tint:    #fdf1f3;
    --edt-on-dark: #ffffff;
    --edt-radius:  18px;
    --edt-shadow:  0 18px 40px rgba(28, 33, 64, .18);
}

/* ---------------- 4-button control block ---------------- */

.edt-control {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 18px;
    background: var(--edt-tint);
    border-radius: 24px;
    font-family: inherit;
    box-sizing: border-box;
}

.edt-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    padding: 18px 20px;
    border-radius: var(--edt-radius);
    background: var(--edt-navy);
    color: var(--edt-on-dark);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(28, 33, 64, .12);
    transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}

.edt-btn:hover  { transform: translateY(-2px); color: var(--edt-on-dark); }
.edt-btn:focus-visible { outline: 3px solid var(--edt-coral); outline-offset: 2px; }

.edt-btn__num   { font-size: 48px; font-weight: 800; line-height: 1; }
.edt-btn__label { font-size: 18px; font-weight: 600; opacity: .95; }

.edt-btn.is-active {
    background: var(--edt-coral);
    box-shadow: 0 10px 24px rgba(251, 91, 111, .45);
}
.edt-btn.is-active:hover { background: var(--edt-coral-d); }

@media (max-width: 680px) {
    .edt-control  { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px; }
    .edt-btn      { min-height: 120px; }
    .edt-btn__num { font-size: 38px; }
}

/* ---------------- Client popup ---------------- */

.edt-popup {
    position: fixed;
    z-index: 99999;
    width: calc(100% - 40px);
    max-width: 360px;
    padding: 22px 24px;
    background: var(--edt-surface);
    border-radius: 20px;
    box-shadow: var(--edt-shadow);
    color: var(--edt-navy);
    font-family: inherit;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.edt-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.edt-popup--bottom-right { right: 20px; bottom: 20px; }
.edt-popup--bottom-left  { left: 20px;  bottom: 20px; }
.edt-popup--top-right    { right: 20px; top: 20px; }
.edt-popup--top-left     { left: 20px;  top: 20px; }
.edt-popup--bottom-center { left: 50%; bottom: 20px; transform: translate(-50%, 12px); }
.edt-popup--bottom-center.is-visible { transform: translate(-50%, 0); }

.edt-popup__header {
    margin: 0 44px 10px 0;
    color: var(--edt-coral);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.edt-popup__text {
    font-size: 18px;
    line-height: 1.45;
    font-weight: 500;
}

.edt-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #6f9bf0;
    border-radius: 10px;
    background: transparent;
    color: var(--edt-coral);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}
.edt-popup__close:hover { background: #eef3ff; }

@media (max-width: 480px) {
    .edt-popup { left: 12px; right: 12px; width: auto; max-width: none; }
    .edt-popup--bottom-center { left: 12px; transform: translateY(12px); }
    .edt-popup--bottom-center.is-visible { transform: translateY(0); }
}
