/* ═══════════════════════════════════════
   PVP Review Order — Styles
   ═══════════════════════════════════════ */

/* Hide theme sidebar on review order page (Divi) */
body:has(.pvp-review-wrapper) #sidebar {
    display: none !important;
}
body:has(.pvp-review-wrapper) #left-area {
    width: 100% !important;
    padding-right: 0 !important;
    float: none !important;
}
/* Remove Divi sidebar divider line */
body:has(.pvp-review-wrapper) #main-content .container::before {
    display: none !important;
}
/* Match site dark theme */
body:has(.pvp-review-wrapper),
body:has(.pvp-review-wrapper) #main-content,
body:has(.pvp-review-wrapper) #main-content .container {
    background-color: #191a21 !important;
}
/* Hide Divi page title */
body:has(.pvp-review-wrapper) .et_pb_title_container,
body:has(.pvp-review-wrapper) .entry-title,
body:has(.pvp-review-wrapper) #main-content > .container > .et_post_meta_wrapper > h1 {
    display: none !important;
}

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.pvp-review-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    color: #e0e6ed;
}

/* ── Error State ── */
.pvp-ro-error {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}
.pvp-ro-error h2 {
    color: #e0e6ed;
    font-size: 24px;
    margin-bottom: 12px;
}
.pvp-ro-error a {
    color: #60a5fa;
    text-decoration: underline;
}

/* ── Header ── */
.pvp-ro-header {
    text-align: center;
    margin-bottom: 48px;
}
.pvp-ro-back {
    display: inline-block;
    color: #60a5fa;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 16px;
    transition: color 0.2s;
}
.pvp-ro-back:hover {
    color: #93c5fd;
}
.pvp-ro-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}
.pvp-ro-subtitle {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
}
.pvp-ro-subtitle strong {
    color: #60a5fa;
}

/* ── Grid ── */
.pvp-ro-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .pvp-ro-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Section Cards ── */
.pvp-ro-section {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
}
.pvp-ro-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
}

/* ── Component Rows ── */
.pvp-ro-comp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.pvp-ro-comp-row:last-child {
    border-bottom: none;
}
.pvp-ro-comp-info {
    flex: 1;
    min-width: 0;
}
.pvp-ro-comp-name {
    display: block;
    font-weight: 600;
    color: #e0e6ed;
    font-size: 15px;
}
.pvp-ro-comp-unit-price {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}
.pvp-ro-comp-controls {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 20px;
}
.pvp-ro-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(30, 41, 59, 0.8);
    color: #e0e6ed;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.pvp-ro-qty-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
}
.pvp-ro-qty-btn:active {
    transform: scale(0.92);
}
.pvp-ro-qty-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 32px;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    text-align: center;
}
.pvp-ro-comp-subtotal {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    min-width: 80px;
    text-align: right;
}

/* ── Features List ── */
.pvp-ro-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pvp-ro-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #94a3b8;
    font-size: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}
.pvp-ro-features li:last-child {
    border-bottom: none;
}
.pvp-ro-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}
.pvp-ro-features li strong {
    color: #e0e6ed;
}

/* ── Option Cards (Install / Payment) ── */
.pvp-ro-install-options,
.pvp-ro-payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pvp-ro-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(15, 23, 42, 0.4);
}
.pvp-ro-option:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(30, 41, 59, 0.6);
}
.pvp-ro-option-active,
.pvp-ro-option-active:hover {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 4px 16px rgba(59, 130, 246, 0.1);
}
.pvp-ro-option input[type="radio"],
.pvp-ro-option input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #3b82f6;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.pvp-ro-option-content {
    flex: 1;
}
.pvp-ro-option-title {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    margin-bottom: 2px;
}
.pvp-ro-option-desc {
    display: block;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}
.pvp-ro-option-price {
    display: block;
    font-weight: 700;
    color: #22c55e;
    font-size: 15px;
    margin-top: 6px;
}

/* ── Installation Date ── */
.pvp-ro-install-date {
    margin-top: 16px;
    padding: 16px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}
.pvp-ro-date-label {
    display: block;
    font-weight: 600;
    color: #e0e6ed;
    margin-bottom: 8px;
    font-size: 14px;
}
.pvp-ro-select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #e0e6ed;
    font-size: 14px;
    font-family: inherit;
    appearance: auto;
}
.pvp-ro-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.pvp-ro-date-note {
    font-size: 12px;
    color: #64748b;
    margin: 8px 0 0;
}

/* ═══════════════════════════════════════
   Sidebar — Order Summary
   ═══════════════════════════════════════ */

.pvp-ro-sidebar {
    position: sticky;
    top: 100px;
}
.pvp-ro-summary-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.pvp-ro-summary-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
}
.pvp-ro-summary-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px;
}

.pvp-ro-summary-lines {
    margin-bottom: 16px;
}
.pvp-ro-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
    padding: 4px 0;
}
.pvp-ro-summary-line-qty {
    color: #64748b;
}

.pvp-ro-summary-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.12);
    margin: 12px 0;
}

.pvp-ro-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #94a3b8;
}
.pvp-ro-summary-total {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    padding: 10px 0;
}
.pvp-ro-summary-due {
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
    padding: 8px 0;
}
.pvp-ro-due-amount {
    color: #22c55e;
}
.pvp-ro-summary-balance {
    font-size: 13px;
    color: #64748b;
}

/* ── Checkout Button ── */
.pvp-ro-checkout-btn {
    width: 100%;
    padding: 16px 24px;
    margin-top: 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}
.pvp-ro-checkout-btn:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.pvp-ro-checkout-btn:active {
    transform: translateY(0);
}
.pvp-ro-checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pvp-ro-trust {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: #475569;
}

/* ── Status Messages ── */
.pvp-ro-status {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}
.pvp-ro-status-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.pvp-ro-status-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* ═══════════════════════════════════════
   Animations
   ═══════════════════════════════════════ */

.pvp-ro-comp-subtotal,
.pvp-ro-summary-row span:last-child {
    transition: color 0.2s;
}
.pvp-ro-price-flash {
    color: #60a5fa !important;
}

/* Subtle entrance animation */
.pvp-ro-section {
    animation: pvpFadeUp 0.4s ease both;
}
.pvp-ro-section:nth-child(2) { animation-delay: 0.08s; }
.pvp-ro-section:nth-child(3) { animation-delay: 0.16s; }
.pvp-ro-section:nth-child(4) { animation-delay: 0.24s; }

@keyframes pvpFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pvp-ro-summary-card {
    animation: pvpFadeUp 0.5s ease 0.2s both;
}

/* ═══════════════════════════════════════
   Mobile Responsive
   ═══════════════════════════════════════ */

@media (max-width: 640px) {
    .pvp-review-wrapper {
        padding: 24px 16px 60px;
    }
    .pvp-ro-title {
        font-size: 26px;
    }
    .pvp-ro-comp-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .pvp-ro-comp-controls {
        margin: 0;
    }
    .pvp-ro-comp-subtotal {
        min-width: 100%;
        text-align: left;
        padding-left: 0;
    }
    .pvp-ro-section {
        padding: 20px 16px;
    }
    .pvp-ro-sidebar {
        position: static;
    }
}
