/* Thank You Page Styles */

.thank-you-section {
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.thank-you-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    padding: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thank-you-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Success Icon Styles */
.success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.success-icon-circle {
    width: 120px;
    height: 120px;
    background-color: #ffebee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(140, 9, 31, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(140, 9, 31, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(140, 9, 31, 0);
    }
}

.success-icon-circle i {
    color: var(--primary-color);
    font-size: 60px;
    animation: checkmark 0.8s ease-in-out 0.4s forwards;
    opacity: 0;
    transform: scale(0);
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Thank You Content Styles */
.thank-you-title {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-in-out 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.thank-you-message {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-in-out 0.8s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Order Details Styles */
.order-details {
    animation: fadeIn 1s ease-in-out 1s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.order-details-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.order-details-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.order-info-card {
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.order-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.order-info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-weight: 600;
}

/* Product Summary Styles */
.product-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 20px;
}

.product-price {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.product-status {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Two-column layout for product and delivery info */
.order-summary-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.product-summary-box, .delivery-info-box {
    flex: 1 1 calc(50% - 10px);
    min-width: 250px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-summary-box:hover, .delivery-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.box-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.box-header i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 10px;
}

.box-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Product Card Compact Styles */
.product-card-compact {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.product-image-compact {
    width: 80px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-compact {
    flex: 1;
    padding-left: 15px;
    text-align: left;
}

.product-title-compact {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.product-details-compact {
    font-size: 14px;
    color: #666;
    margin-bottom: 3px;
}

.product-status-compact {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.product-status-compact .status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background-color: #e9f7ef;
    color: #28a745;
}

/* Delivery Info Compact Styles */
.delivery-address-compact {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.delivery-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e9ecef;
}

.delivery-meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.delivery-meta-item i {
    width: 20px;
    color: var(--primary-color);
    margin-right: 8px;
}

.delivery-meta-label {
    font-weight: 500;
    color: #333;
    margin-right: 5px;
}

/* Action Buttons Styles */
.action-buttons {
    animation: fadeInUp 0.8s ease-in-out 1.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #6b071a);
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(140, 9, 31, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6b071a, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(140, 9, 31, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: rgba(140, 9, 31, 0.05);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .thank-you-card {
        padding: 30px 20px;
    }

    .thank-you-title {
        font-size: 2.5rem;
    }

    .success-icon-circle {
        width: 100px;
        height: 100px;
    }

    .success-icon-circle i {
        font-size: 50px;
    }

    .product-summary-box, .delivery-info-box {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }

    .order-summary-container {
        gap: 0;
    }

    .action-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .action-buttons .btn.ms-3 {
        margin-left: 0 !important;
    }
}
