.checkout-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-form {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.checkout-form h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E0E0E0;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    color: #2c2c2c;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D49B6A;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 13px;
    line-height: 1.5;
    color: #4a4a4a;
    cursor: pointer;
}

.submit-order-btn {
    width: 100%;
    background-color: #D49B6A;
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 24px;
}

.submit-order-btn:hover {
    background-color: #B8864A;
}

.submit-order-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.order-summary {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E0E0E0;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

.order-summary h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
    flex: 1;
    text-align: center;
}

.toggle-items-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #D49B6A;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.toggle-items-btn:hover {
    color: #B8864A;
}

.toggle-items-btn:focus,
.toggle-items-btn:active {
    outline: none;
    border: none;
}

.toggle-items-btn.expanded {
    transform: rotate(180deg);
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.order-items.collapsed {
    max-height: none;
    overflow: hidden;
}

.order-items.collapsed .order-item:not(:first-child) {
    display: none;
}

.order-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 4px;
    line-height: 1.4;
}

.order-item-details {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.order-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #e74c3c;
}

.order-totals {
    padding-top: 16px;
    border-top: 2px solid #E0E0E0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    color: #4a4a4a;
}

.total-row.total-final {
    font-size: 20px;
    font-weight: 700;
    color: #2c2c2c;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid #E0E0E0;
}

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.success-modal.active {
    display: flex;
}

.success-modal .modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
}

.success-modal h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 16px;
}

.success-modal p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.success-modal strong {
    color: #D49B6A;
    font-size: 16px;
}

.success-modal .btn-primary {
    margin-top: 24px;
}

@media (min-width: 768px) {
    .checkout-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .checkout-form {
        flex: 2;
    }

    .order-summary {
        flex: 1;
    }
}

