/* ────────────────────────────────────────────────────────────────────────────
   PSB Checkout — Dark Theme LabCid
   ──────────────────────────────────────────────────────────────────────────── */

.psb-checkout-app {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.psb-checkout-app .psb-neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* ─── Main wrapper ─── */
.psb-checkout-wrapper {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 2rem auto;
    padding: 2rem;
}

/* ─── Section title ─── */
.psb-checkout-title {
    color: #5ce1e6;
    font-family: "Orbitron", "Sora", monospace;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(92, 225, 230, 0.2);
    padding-bottom: 0.75rem;
}

.psb-section-title {
    color: #5ce1e6;
    font-family: "Orbitron", "Sora", monospace;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(92, 225, 230, 0.15);
}

/* ─── Cart items ─── */
.psb-checkout-items {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(92, 225, 230, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.psb-checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(92, 225, 230, 0.08);
}

.psb-checkout-item:last-child {
    border-bottom: none;
}

.psb-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.psb-item-name {
    color: #e5e7eb;
    font-family: "Sora", system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.psb-item-detail {
    color: #94a3b8;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 0.85rem;
}

.psb-item-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.psb-item-price {
    color: #5ce1e6;
    font-family: "Sora", system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.psb-item-remove {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.psb-item-remove:hover {
    background: rgba(248, 113, 113, 0.3);
    transform: scale(1.1);
}

.psb-item-remove:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ─── Form ─── */
.psb-checkout-form {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(92, 225, 230, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.psb-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.psb-form-row-2col .psb-form-group {
    flex: 1;
}

.psb-form-group {
    margin-bottom: 1rem;
}

.psb-form-group label {
    display: block;
    color: #94a3b8;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.psb-required {
    color: #f87171;
}

.psb-form-group input {
    width: 100%;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(92, 225, 230, 0.25);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #e5e7eb;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.psb-form-group input::placeholder {
    color: #4b5563;
}

.psb-form-group input:focus {
    outline: none;
    border-color: #5ce1e6;
    box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.15);
}

.psb-form-group input.psb-error {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

/* ─── Error messages ─── */
.psb-checkout-errors {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #f87171;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 0.85rem;
}

.psb-checkout-errors:empty {
    display: none !important;
}

.psb-checkout-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.psb-checkout-errors li {
    padding: 0.25rem 0;
}

.psb-checkout-errors li::before {
    content: "⚠ ";
}

/* ─── Buttons ─── */
.psb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0B44C0 0%, #5ce1e6 100%);
    color: #fff;
    font-family: "Orbitron", "Sora", monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.psb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 68, 192, 0.4);
}

.psb-btn:active {
    transform: translateY(0);
}

.psb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.psb-btn-full {
    width: 100%;
}

/* ─── Total ─── */
.psb-checkout-total {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(92, 225, 230, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.psb-total-label {
    color: #94a3b8;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.psb-total-value {
    color: #5ce1e6;
    font-family: "Orbitron", "Sora", monospace;
    font-weight: 700;
    font-size: 1.5rem;
}

/* ─── Empty cart ─── */
.psb-checkout-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #e5e7eb;
    font-family: "Sora", system-ui, sans-serif;
}

.psb-checkout-empty p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ─── Spinner ─── */
.psb-checkout-form .psb-btn .psb-spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: psb-spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

@keyframes psb-spin {
    to { transform: rotate(360deg); }
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .psb-checkout-wrapper {
        padding: 1rem;
        margin: 1rem;
    }

    .psb-form-row-2col {
        flex-direction: column;
        gap: 0;
    }

    .psb-checkout-title {
        font-size: 1.2rem;
    }
}

/* ────────────────────────────────────────────────────────────────────────────
   Thank You Page
   ──────────────────────────────────────────────────────────────────────────── */

.psb-thankyou-wrapper {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.psb-thankyou-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.psb-thankyou-title {
    color: #5ce1e6;
    font-family: "Orbitron", "Sora", monospace;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    animation: psb-pulse-success 2s ease infinite;
}

.psb-thankyou-subtitle {
    color: #94a3b8;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.psb-thankyou-details {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(92, 225, 230, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.psb-thankyou-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(92, 225, 230, 0.08);
}

.psb-thankyou-row:last-child {
    border-bottom: none;
}

.psb-thankyou-label {
    color: #5ce1e6;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.psb-thankyou-value {
    color: #e5e7eb;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.psb-thankyou-total {
    color: #5ce1e6 !important;
    font-size: 1.1rem !important;
}

@keyframes psb-pulse-success {
    0% { box-shadow: 0 0 0 0 rgba(92, 225, 230, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(92, 225, 230, 0); }
    100% { box-shadow: 0 0 0 0 rgba(92, 225, 230, 0); }
}

/* ─── Item removed animation ─── */
.psb-checkout-item.psb-removing {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}