/* Checkout page specific styles */

.checkout { padding: var(--sp-8) 0 var(--sp-24); }
.checkout__empty { text-align: center; padding: var(--sp-20) 0; }
.checkout__empty h2 { margin-bottom: var(--sp-3); }
.checkout__empty p { color: var(--color-text-muted); margin-bottom: var(--sp-6); }

.checkout__layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--sp-10);
    align-items: start;
}

/* Checkout sections */
.checkout-section {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    margin-bottom: var(--sp-5);
}
.checkout-section__header {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding-bottom: var(--sp-5);
    margin-bottom: var(--sp-5);
    border-bottom: 1px solid var(--color-border);
}
.checkout-section__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-accent);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-base);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}
.checkout-section__header h3 {
    font-size: var(--fs-xl);
    margin: 0;
}

/* Form errors */
.form-field input.has-error,
.form-field textarea.has-error,
.form-field select.has-error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Radio tiles */
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.radio-tile {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: var(--sp-5);
    background: var(--color-bg-alt);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}
.radio-tile:hover { border-color: var(--color-border-dark); }
.radio-tile input { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--color-accent-dark); flex-shrink: 0; }
.radio-tile input:checked ~ .radio-tile__body strong { color: var(--color-accent-dark); }
.radio-tile:has(input:checked) {
    background: rgba(212, 165, 116, 0.08);
    border-color: var(--color-accent);
}
.radio-tile__body { display: flex; flex-direction: column; }
.radio-tile__body strong { color: var(--color-primary); font-size: var(--fs-base); }
.radio-tile__body em { font-style: normal; font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: 2px; }

/* Upsells */
.upsell {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-5);
    background: var(--color-bg-alt);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: var(--sp-3);
    transition: all var(--transition);
}
.upsell:hover { border-color: var(--color-border-dark); background: #fff; }
.upsell input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--color-accent-dark); flex-shrink: 0; }
.upsell:has(input:checked) {
    background: rgba(212, 165, 116, 0.08);
    border-color: var(--color-accent);
    box-shadow: var(--shadow);
}
.upsell__body { flex: 1; display: flex; justify-content: space-between; gap: var(--sp-4); }
.upsell__main strong { display: block; color: var(--color-primary); margin-bottom: 0.25rem; font-size: var(--fs-base); }
.upsell__main p { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; }
.upsell__price { font-family: var(--font-heading); font-size: var(--fs-xl); font-weight: 700; color: var(--color-accent-dark); white-space: nowrap; }

/* Payment methods */
.payment-methods { display: grid; gap: var(--sp-3); }
.payment-method {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-5);
    background: var(--color-bg-alt);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}
.payment-method:hover { border-color: var(--color-border-dark); }
.payment-method:has(input:checked) {
    background: rgba(212, 165, 116, 0.08);
    border-color: var(--color-accent);
}
.payment-method input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--color-accent-dark); flex-shrink: 0; }
.payment-method__body strong { display: block; color: var(--color-primary); margin-bottom: 0.25rem; }
.payment-method__body p { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; }

/* Checkbox line */
.checkbox-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: var(--sp-4) 0;
    cursor: pointer;
    font-size: var(--fs-sm);
}
.checkbox-line input { width: 20px; height: 20px; accent-color: var(--color-accent-dark); flex-shrink: 0; }
.checkbox-line a { color: var(--color-accent-dark); font-weight: 600; text-decoration: underline; }

/* Order summary */
.checkout__summary { position: sticky; top: 100px; }
.order-summary {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-6);
    box-shadow: var(--shadow-lg);
}
.order-summary__title {
    font-size: var(--fs-xl);
    padding-bottom: var(--sp-4);
    margin-bottom: var(--sp-5);
    border-bottom: 2px solid var(--color-accent);
}

.order-item {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-4);
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    margin-bottom: var(--sp-5);
}
.order-item__thumb {
    width: 64px; height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
}
.order-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-item__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
}
.order-item__body { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.order-item__body strong { color: var(--color-primary); font-size: var(--fs-sm); }
.order-item__body span { font-size: var(--fs-xs); color: var(--color-text-muted); }
.order-item__price { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); }

.order-summary__rows { padding: var(--sp-4) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.order-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: var(--fs-sm);
    color: var(--color-text);
}
.order-summary__row[hidden] { display: none; }

.order-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--sp-4) 0;
    font-size: var(--fs-lg);
}
.order-summary__total strong {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    color: var(--color-primary);
}
.order-summary__vat {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-align: right;
    margin: 0 0 var(--sp-4);
}

.order-summary__trust {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-2);
    padding-top: var(--sp-4);
    margin-top: var(--sp-4);
    border-top: 1px solid var(--color-border);
}
.order-summary__trust-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-text-muted);
    font-size: 11px;
    text-align: center;
}
.order-summary__trust-item svg { width: 20px; height: 20px; color: var(--color-accent-dark); }

@media (max-width: 992px) {
    .checkout__layout { grid-template-columns: 1fr; }
    .checkout__summary { position: static; }
    .radio-group { grid-template-columns: 1fr; }
    .checkout-section { padding: var(--sp-6); }
    .upsell__body { flex-direction: column; }
}
