/* shop/public/css/checkout.css */
.checkout-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.checkout-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    color: #777;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.step-label {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
}

.checkout-progress-step.active .step-number {
    background: #333;
    color: #fff;
}

.checkout-progress-step.active .step-label {
    color: #333;
    font-weight: 600;
}

.checkout-progress-step.done .step-number {
    background: #4caf50;
    color: #fff;
}

.checkout-progress-divider {
    flex: 1;
    height: 2px;
    background: #ddd;
    min-width: 40px;
    max-width: 80px;
}

.checkout-main {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
}

.checkout-step h2 {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
}

.form-group label {
    font-size: 0.83rem;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 0.5rem 0.7rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.shipping-methods-list,
.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}

.shipping-method-card,
.payment-method-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s;
}

.shipping-method-card:has(input:checked),
.payment-method-card:has(input:checked) {
    border-color: #333;
}

.shipping-method-info,
.payment-method-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: 1;
}

.shipping-logo {
    height: 32px;
    object-fit: contain;
}

.shipping-free-note {
    font-size: 0.8rem;
    color: #4caf50;
}

.shipping-price {
    margin-left: auto;
    font-weight: 600;
}

.payment-details {
    font-size: 0.82rem;
    color: #777;
}

.checkout-btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.btn-checkout-next,
.btn-order {
    min-width: 200px;
}

.btn-order {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
}

.btn-order:hover {
    background: #1b5e20;
}

.checkout-error {
    color: #c62828;
    background: #fdecea;
    border-radius: 5px;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.checkout-legal {
    font-size: 0.82rem;
    color: #777;
    margin: 1rem 0 0.5rem;
}

.checkout-cart-summary {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem;
    position: sticky;
    top: 1rem;
}

.checkout-cart-summary h3 {
    margin-top: 0;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.checkout-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.88rem;
    border-bottom: 1px solid #eee;
}

.checkout-item-name small {
    color: #888;
}

.checkout-item-price {
    font-weight: 600;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.checkout-totals {
    margin-top: 0.8rem;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.checkout-total-row.total {
    font-size: 1rem;
}

.checkout-total-divider {
    height: 1px;
    background: #333;
    margin: 0.4rem 0;
}

.checkout-vat-note {
    color: #888;
    font-size: 0.78rem;
}

.vat-row {
    font-size: 0.84rem;
    color: #666;
}

.summary-block {
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
}

.summary-block h4 {
    font-size: 0.82rem;
    color: #777;
    margin: 0 0 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-block p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        order: -1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Checkout Guest */
.checkout-guest-choice {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.checkout-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.checkout-choice-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.checkout-choice-card h2 {
    margin: 0 0 .6rem;
    font-size: 1.1rem;
}

.checkout-choice-card p {
    font-size: .9rem;
    color: #555;
    margin-bottom: 1rem;
}

.btn-block {
    display: block;
    text-align: center;
    padding: .7rem;
}