/** PrestaHeroes Delivery Assurance front-office styles. */
.ph-va-lock { overflow: hidden; }
.ph-va-render { display: inline-flex; align-items: center; gap: 9px; vertical-align: middle; }
.ph-va-render.ph-va-has-bg { background: var(--ph-va-group-bg, transparent); padding: 8px 10px; border-radius: 16px; }
.ph-va-render.ph-va-stealth::before { content: 'STEALTH'; align-self: center; padding: 4px 6px; border-radius: 999px; background: rgba(0,0,0,.16); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.ph-va-render * { box-sizing: border-box; }
.ph-va-render svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.ph-va-delivery,
.ph-va-mini-button {
    border: 1px solid var(--ph-va-pill-border, rgba(20, 20, 20, .14));
    background: var(--ph-va-pill-bg, #fff);
    color: var(--ph-va-pill-text, #151515);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 7px 13px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(0,0,0,.09);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
    font: inherit;
    text-decoration: none;
}
.ph-va-delivery:hover,
.ph-va-mini-button:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,.14); background: var(--ph-va-pill-bg, #fff); color: var(--ph-va-pill-text, #151515); border-color: var(--ph-va-accent, #972d5e); }
.ph-va-delivery:focus,
.ph-va-mini-button:focus,
.ph-va-save:focus,
.ph-va-close:focus,
.ph-va-continue:focus { outline: 2px solid var(--ph-va-accent, #972d5e); outline-offset: 2px; }
.ph-va-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: var(--ph-va-accent, #972d5e); background: var(--ph-va-accent-soft, #f6edf1); font-weight: 700; line-height: 1; flex: 0 0 auto; }
.ph-va-delivery-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.ph-va-kicker { font-size: 9px; text-transform: uppercase; letter-spacing: .11em; color: var(--ph-va-pill-label, #696969); font-weight: 800; }
.ph-va-main { font-size: 13px; font-weight: 900; white-space: nowrap; color: var(--ph-va-pill-text, #111); }
.ph-va-mini { position: relative; display: inline-flex; }
.ph-va-mini-button { min-width: 68px; justify-content: center; }
.ph-va-mini-value { font-size: 13px; font-weight: 900; letter-spacing: .02em; white-space: nowrap; }
.ph-va-mini-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 132px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.1);
    background: var(--ph-va-dropdown-bg, #fff);
    z-index: 10002;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
}
.ph-va-mini.is-open .ph-va-mini-menu { display: grid; gap: 4px; }
.ph-va-mini-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #1b1b1b;
    border-radius: 10px;
    padding: 9px 10px;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
.ph-va-mini-option:hover,
.ph-va-mini-option.is-active { background: var(--ph-va-accent-soft, #f6edf1); color: var(--ph-va-accent, #8f2858); }
.ph-va-mini-option span { font-weight: 900; }
.ph-va-mini-option small { color: #777; font-size: 11px; }

 .ph-va-product-inline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 10px 0;
    padding: 8px 0;
    color: #202020;
}
.ph-va-product-inline .ph-va-product-icon {
    width: 28px;
    height: 28px;
    color: var(--ph-va-accent, #972d5e);
    background: var(--ph-va-accent-soft, #f6edf1);
}
.ph-va-product-copy { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; line-height: 1.25; }
.ph-va-product-copy strong { font-size: 14px; font-weight: 900; }
.ph-va-product-copy small { color: #666; font-size: 12px; }

.ph-va-overlay[hidden] { display: none !important; }
.ph-va-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(10, 11, 12, .64);
    backdrop-filter: blur(3px);
    z-index: 10000;
}
.ph-va-modal {
    position: relative;
    width: min(94vw, 560px);
    max-height: min(92vh, 760px);
    overflow: auto;
    border-radius: 20px;
    background: var(--ph-va-modal-bg, #ffffff);
    color: var(--ph-va-modal-text, #242424);
    box-shadow: 0 28px 90px rgba(0,0,0,.34);
    padding: 32px 34px 28px;
    border: 1px solid rgba(255,255,255,.55);
}
.ph-va-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    color: #2a2a2a;
    font-size: 28px;
    line-height: 33px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.ph-va-modal-head { text-align: center; padding: 4px 20px 21px; }
.ph-va-globe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    border-radius: 50%;
    color: var(--ph-va-accent, #8f2858);
    background: var(--ph-va-accent-soft, #f7edf2);
}
.ph-va-modal-head h2 {
    margin: 0;
    color: var(--ph-va-modal-text, #202020);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.08;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
}
.ph-va-modal-head p {
    max-width: 400px;
    margin: 12px auto 0;
    color: var(--ph-va-modal-text, #666);
    opacity: .72;
    font-size: 15px;
    line-height: 1.45;
}
.ph-va-ready-panel {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 17px 18px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid rgba(151,45,94,.13);
    background: linear-gradient(135deg, #fff6fa, #fff);
}
.ph-va-ready-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--ph-va-accent-soft, #f4e2ea);
    color: var(--ph-va-accent, #972d5e);
}
.ph-va-ready-icon svg { width: 24px; height: 24px; }
.ph-va-ready-panel strong { display: block; font-size: 15px; line-height: 1.25; color: var(--ph-va-modal-text, #232323); }
.ph-va-ready-panel span { display: block; margin-top: 4px; font-size: 13px; color: var(--ph-va-modal-text, #545454); opacity: .78; line-height: 1.35; }

.ph-va-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ph-va-field {
    grid-column: span 1;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
    margin: 0;
}
.ph-va-field-country,
.ph-va-message,
.ph-va-save,
.ph-va-continue { grid-column: 1 / -1; }
.ph-va-field-compact { min-width: 0; }
.ph-va-field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ph-va-accent-soft, #f6edf1);
    color: var(--ph-va-accent, #972d5e);
    font-weight: 900;
    font-size: 18px;
}
.ph-va-field-icon svg { width: 20px; height: 20px; }
.ph-va-field-copy { min-width: 0; display: grid; gap: 4px; }
.ph-va-field-label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ph-va-field select {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ph-va-modal-text, #191919);
    padding: 0 25px 0 0;
    font-size: 20px;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    min-height: 28px;
    line-height: 1.25;
    appearance: auto;
}
.ph-va-field select:focus { outline: none; }
.ph-va-field-compact select { font-size: 18px; }
.ph-va-save {
    width: 100%;
    min-height: 52px;
    margin-top: 10px;
    border: 0;
    border-radius: 10px;
    background: var(--ph-va-button-bg, #972d5e);
    color: var(--ph-va-button-text, #fff);
    cursor: pointer;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(151,45,94,.28);
}
.ph-va-save:hover { filter: brightness(.98); }
.ph-va-save.is-loading { opacity: .78; cursor: wait; }
.ph-va-continue {
    width: max-content;
    justify-self: center;
    border: 0;
    background: transparent;
    color: #707070;
    cursor: pointer;
    text-decoration: underline;
    padding: 6px;
    font-size: 13px;
}
.ph-va-message {
    border-radius: 10px;
    padding: 10px 12px;
    background: #eef7f0;
    color: #1e6a33;
    font-size: 13px;
}
.ph-va-message.is-error { background: #fff0f0; color: #9b2424; }

@media (max-width: 767px) {
    .ph-va-render { gap: 6px; }
    .ph-va-form { grid-template-columns: 1fr; }
    .ph-va-main { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
    .ph-va-delivery, .ph-va-mini-button { padding: 7px 9px; border-radius: 10px; min-height: 40px; }
    .ph-va-kicker { display: none; }
    .ph-va-icon { width: 24px; height: 24px; }
    .ph-va-modal { padding: 28px 18px 22px; border-radius: 18px; }
    .ph-va-modal-head { padding-left: 8px; padding-right: 8px; }
    .ph-va-field { grid-template-columns: 42px minmax(0, 1fr); padding: 12px; }
    .ph-va-field select { font-size: 17px; }
}
