/* ==========================================================================
   Vendex AOV — Free-shipping progress bar + reorder UI
   ========================================================================== */

.vx-fsb {
    background: #FDFBF8;
    border: 1px solid #F0E9DF;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 16px;
    box-shadow: 0 1px 3px rgba(0, 24, 74, 0.04);
}

.vx-fsb-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #00184a;
    margin-bottom: 9px;
    line-height: 1.45;
}

.vx-fsb-msg strong { color: #FF6B00; font-weight: 800; }

.vx-fsb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #FF6B00;
}
.vx-fsb-icon svg { width: 20px; height: 20px; }

.vx-fsb-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #EDE6DB;
    overflow: hidden;
}

.vx-fsb-fill {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #FF8C00, #FF6B00);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.vx-fsb-note {
    margin-top: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: #15803D;
    opacity: 0.85;
    line-height: 1.4;
}

/* Qualified state */
.vx-fsb.is-qualified {
    background: #ECFDF3;
    border-color: #BBF7D0;
}
.vx-fsb.is-qualified .vx-fsb-icon { color: #16A34A; }
.vx-fsb.is-qualified .vx-fsb-msg { color: #15803D; }
.vx-fsb.is-qualified .vx-fsb-fill { background: linear-gradient(90deg, #22C55E, #16A34A); }

/* Context tweaks */
.vx-fsb--thankyou { margin: 0 auto 22px; max-width: 560px; }
.vx-fsb--product  { margin-top: 14px; }
.vx-fsb--minicart { margin: 0 0 12px; }

@media (max-width: 560px) {
    .vx-fsb { padding: 11px 12px; }
    .vx-fsb-msg { font-size: 12.5px; }
}

/* ==========================================================================
   One-click reorder banner
   ========================================================================== */

.vx-reorder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #FFF4E8, #FFFBF6);
    border: 1px solid #FFD9AE;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0 0 16px;
}

.vx-reorder-head { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 220px; }

.vx-reorder-icon {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
    background: #FF6B00; color: #fff;
}
.vx-reorder-icon svg { width: 20px; height: 20px; }

.vx-reorder-copy { display: flex; flex-direction: column; gap: 2px; }
.vx-reorder-title { font-size: 14px; font-weight: 800; color: #00184a; }
.vx-reorder-desc  { font-size: 12.5px; color: #6B5B47; line-height: 1.4; }

.vx-reorder-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF8C00, #FF6B00);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.vx-reorder-btn:hover  { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(255, 107, 0, 0.45); }
.vx-reorder-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

@media (max-width: 560px) {
    .vx-reorder { padding: 12px 13px; }
    .vx-reorder-btn { width: 100%; }
}

/* Confirm modal */
.vx-reorder-modal {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 24, 74, 0.55);
    padding: 20px;
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease;
}
.vx-reorder-modal.is-open { opacity: 1; visibility: visible; }

.vx-reorder-dialog {
    background: #fff; border-radius: 16px; max-width: 380px; width: 100%;
    padding: 24px; text-align: center;
    box-shadow: 0 20px 60px rgba(0, 24, 74, 0.3);
    transform: translateY(12px); transition: transform 0.2s ease;
}
.vx-reorder-modal.is-open .vx-reorder-dialog { transform: translateY(0); }

.vx-reorder-dialog h3 { font-size: 17px; font-weight: 800; color: #00184a; margin: 0 0 8px; }
.vx-reorder-dialog p  { font-size: 13.5px; color: #555; line-height: 1.55; margin: 0 0 18px; }

.vx-reorder-actions { display: flex; gap: 10px; }
.vx-reorder-actions button { flex: 1; border-radius: 10px; padding: 11px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; border: none; }
.vx-reorder-yes { background: linear-gradient(135deg, #FF8C00, #FF6B00); color: #fff; }
.vx-reorder-no  { background: #F1EEE8; color: #444; }

.vx-reorder-toast {
    position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
    background: #16A34A; color: #fff; font-weight: 700; font-size: 13.5px;
    padding: 13px 20px; border-radius: 12px; z-index: 100000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease; max-width: 90vw; text-align: center;
}
.vx-reorder-toast.is-error { background: #DC2626; }
.vx-reorder-toast.is-show  { opacity: 1; transform: translateX(-50%) translateY(0); }

.vx-reorder.is-hidden { display: none; }

/* ==========================================================================
   Thank-you: progress-bar CTA + "add to your order" grid
   ========================================================================== */

.vx-ty-fsb-wrap { max-width: 560px; margin: 0 auto 22px; }
.vx-ty-fsb-wrap .vx-fsb { margin-bottom: 10px; }

.vx-ty-fsb-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #FF8C00, #FF6B00);
    color: #fff; border: none; border-radius: 12px;
    padding: 13px 18px; font-size: 14px; font-weight: 800; cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.vx-ty-fsb-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 107, 0, 0.45); }
.vx-ty-fsb-cta svg { width: 18px; height: 18px; }

.vx-ty-addorder {
    background: #fff; border: 1px solid #F0E9DF; border-radius: 16px;
    padding: 22px; margin: 0 0 24px;
    box-shadow: 0 2px 10px rgba(0, 24, 74, 0.05);
}
.vx-ty-addorder-title { font-size: 18px; font-weight: 800; color: #00184a; margin: 0 0 4px; }
.vx-ty-addorder-sub   { font-size: 13.5px; color: #6B5B47; margin: 0 0 18px; line-height: 1.5; }

.vx-ty-addorder-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 768px) { .vx-ty-addorder-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .vx-ty-addorder-grid { grid-template-columns: 1fr; } }

.vx-ty-ao-card {
    display: flex; flex-direction: column; gap: 10px;
    border: 1px solid #F0E9DF; border-radius: 12px; padding: 12px;
    background: #FDFBF8;
}
.vx-ty-ao-img { display: block; text-align: center; }
.vx-ty-ao-img img { width: 100%; max-width: 120px; height: auto; border-radius: 8px; object-fit: cover; }
.vx-ty-ao-info { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.vx-ty-ao-name { font-size: 13px; font-weight: 600; color: #00184a; line-height: 1.35; }
.vx-ty-ao-price { font-size: 14px; font-weight: 800; color: #FF6B00; }

.vx-ty-ao-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: #00184a; color: #fff; border: none; border-radius: 9px;
    padding: 9px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer;
    transition: background 0.18s ease, opacity 0.18s ease;
}
.vx-ty-ao-btn:hover { background: #002a73; }
.vx-ty-ao-btn svg { width: 15px; height: 15px; }
.vx-ty-ao-btn.is-loading { opacity: 0.6; cursor: default; }
.vx-ty-ao-btn.is-added { background: #16A34A; cursor: default; }
