/* ==========================================================================
   VincentCruises.com — Sticky Advisor Attribution, Price-Drop Badges,
   Commission-Smart Bonus OBC Badges & Modern Native <dialog> Watchlist UI
   ========================================================================== */

.visually-hidden:where(:not(:focus-within, :active)) {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
}

/* 1. Sticky 30-Day Advisor Attribution Concierge Bar */
.vc-advisor-bar {
    background: linear-gradient(90deg, #081729 0%, #132f52 100%);
    color: #f8fafc;
    border-bottom: 2px solid #cba688;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 13px;
    padding: 7px 14px;
    z-index: 1045;
}
.vc-advisor-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.vc-advisor-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(203, 166, 136, 0.2);
    border: 1px solid #cba688;
    color: #f8e3c8;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 9px;
    border-radius: 999px;
}
.vc-advisor-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.vc-advisor-btn {
    background: #cba688;
    color: #081729;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.vc-advisor-btn:hover {
    background: #dfbe9f;
    color: #081729;
}
.vc-advisor-clear {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11.5px;
    cursor: pointer;
}
.vc-advisor-clear:hover {
    color: #ffffff;
    border-color: #ffffff;
}

/* 2. Price-Drop, Reopened Cabin & Bonus Onboard Credit Badges */
.vc-pricedrop-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #c92a2a;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(201, 42, 42, 0.25);
}
.vc-reopened-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #087f5b;
    color: #ffffff;
    font-weight: 800;
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 6px;
}
.vc-bonus-obc-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(90deg, #fff3bf 0%, #ffe066 100%);
    color: #5c3c00;
    border: 1px solid #f08c00;
    font-weight: 800;
    font-size: 11.5px;
    padding: 3px 9px;
    border-radius: 6px;
}
.vc-was-price {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
    line-height: 1.1;
}
.vc-tier-obc-note {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #087f5b;
    margin-top: 2px;
    line-height: 1.15;
}
.btn-watch-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff9db;
    color: #7c4a03;
    border: 1px solid #f59f00;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.btn-watch-price:hover {
    background: #ffec99;
    color: #5c3600;
}
.btn-watch-price.is-watching {
    background: #e6fcf5;
    color: #087f5b;
    border-color: #20c997;
}

/* 3. Native Modal <dialog> (modern-web-guidance dialog + scroll containment) */
dialog.vc-pw-dialog {
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: calc(100% - 28px);
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 24px 60px rgba(8, 23, 41, 0.38);
    font-family: 'Montserrat', Arial, sans-serif;
}
dialog.vc-pw-dialog:modal {
    overscroll-behavior: contain;
}
dialog.vc-pw-dialog::backdrop {
    background-color: rgba(8, 23, 41, 0.62);
    backdrop-filter: blur(3px);
    overflow: hidden;
    overscroll-behavior: contain;
}
.vc-pw-header {
    background: linear-gradient(135deg, #081729 0%, #0f2540 100%);
    color: #ffffff;
    padding: 18px 22px;
    border-bottom: 2px solid #cba688;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.vc-pw-close-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    min-width: 40px;
    min-height: 40px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.vc-pw-close-btn:hover {
    background: rgba(255, 255, 255, 0.24);
}
.vc-pw-body {
    padding: 20px 22px 22px;
}
.vc-pw-sailing-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13.5px;
}
.vc-pw-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-block-end: 16px;
}
.vc-pw-field label {
    font-weight: 700;
    font-size: 13.5px;
    color: #0f2540;
}
.vc-field-hint {
    display: block;
    color: #475569;
    font-size: 12px;
    margin-bottom: 2px;
}
.vc-pw-input {
    font: inherit;
    font-size: max(1rem, 1em);
    padding: 10px 12px;
    min-height: 48px;
    border: 1.5px solid #767676;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    background: #ffffff;
    color: #0f2540;
}
@media (pointer: coarse) {
    .vc-pw-input {
        min-height: 52px;
    }
}
.vc-pw-input:focus-visible,
.vc-pw-close-btn:focus-visible,
.vc-pw-submit:focus-visible,
.btn-watch-price:focus-visible {
    outline: 3px solid #0b7285;
    outline-offset: 2px;
}

/* Validate After Interaction (:user-invalid + fallback) */
.vc-error-msg {
    display: none;
    color: #c92a2a;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}
.vc-pw-input:is(:user-invalid, .user-invalid-fallback) {
    border-color: #c92a2a;
    background-color: #fff5f5;
}
.vc-pw-input:is(:user-invalid, .user-invalid-fallback) + .vc-error-msg {
    display: block;
}
.vc-pw-input:is(:user-valid, .user-valid-fallback) {
    border-color: #087f5b;
}

/* Radio Fieldset for 2-4 Cabin Choices */
.vc-pw-fieldset {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px 12px;
    margin: 0 0 16px;
}
.vc-pw-fieldset legend {
    font-size: 13px;
    font-weight: 700;
    color: #0f2540;
    padding: 0 6px;
    float: none;
    width: auto;
    margin-bottom: 6px;
}
.vc-pw-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.vc-pw-radio-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    min-height: 44px;
}
.vc-pw-radio-row input[type="radio"] {
    accent-color: #0b7285;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}
.vc-pw-radio-row label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    margin: 0;
    line-height: 1.2;
}
.vc-pw-submit {
    width: 100%;
    min-height: 48px;
    background: #0b7285;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
}
.vc-pw-submit:hover {
    background: #085868;
}
.vc-pw-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}
.vc-pw-status {
    margin-top: 12px;
    font-size: 13.5px;
    font-weight: 600;
}
.vc-pw-status.is-ok {
    color: #087f5b;
    background: #e6fcf5;
    border: 1px solid #96f2d7;
    padding: 10px 12px;
    border-radius: 8px;
}
.vc-pw-status.is-err {
    color: #c92a2a;
    background: #fff5f5;
    border: 1px solid #ffc9c9;
    padding: 10px 12px;
    border-radius: 8px;
}
