/**
 * Success/Order Confirmation Page Styles
 * BEM Naming: success (block)
 */

.success-page {
    padding-bottom: 2rem;
}

.success {
    max-width: 800px;
    margin: 0 auto;
}

/* Success Header */
.success__header {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-gray-light);
    border-radius: 0;
    margin-bottom: 2rem;
}

.success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: #4caf50;
}

.success__header h1 {
    margin: 0 0 1rem 0;
    color: #333;
}

.success__message {
    color: #666;
    font-size: 1.1rem;
}

/* Order Details */
.success__details-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.success__section {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.success__section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Order Info */
.success__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.success__info-row {
    display: flex;
    justify-content: space-between;
}

.success__info-label {
    font-family: "Maax Medium";
    font-weight: 400;
    color: #666;
}

.success__info-value {
    color: #333;
}

/* Order Items */
.success__item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.success__item:last-child {
    border-bottom: none;
}

.success__item-details {
    flex: 1;
}

.success__item-title {
    font-family: "Maax Medium";
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.success__item-meta {
    font-size: 0.9rem;
    color: #666;
}

.success__item-price {
    font-family: "Maax Medium";
    font-weight: 400;
}

/* Order Total */
.success__total-breakdown {
    background: var(--color-gray-light);
    padding: 1.5rem;
    border-radius: 0;
}

.success__total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.success__total-row--total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color-gray-mid);
    font-size: 1.2rem;
}

/* Success Actions */
.success__actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.success__actions .button {
    flex: 1;
}

/* Error Message */
.success__error {
    text-align: center;
    padding: 3rem 2rem;
}

.success__error h2 {
    color: var(--color-red);
    margin-bottom: 1rem;
}

.success__error p {
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .success__actions {
        flex-direction: column;
    }

    .success__info-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .success__item {
        flex-direction: column;
        gap: 0.5rem;
    }
}
