﻿/*==================================================
ORDER SUCCESS PAGE
==================================================*/

.order-success-page {
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
}

.success-card {
    width: 100%;
    max-width: 560px;
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient( 135deg, #ff9800, #ff7b00, #ff5a00 );
    color: #fff;
    text-align: center;
    box-shadow: 0 20px 55px rgba(0,0,0,.25);
    animation: popSuccess .5s ease;
}

    .success-card::before {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(255,255,255,.12);
        top: -90px;
        right: -90px;
    }

    .success-card::after {
        content: "";
        position: absolute;
        width: 170px;
        height: 170px;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
        left: -70px;
        bottom: -70px;
    }

    .success-card > * {
        position: relative;
        z-index: 2;
    }

/*============================*/

.success-icon {
    width: 84px;
    height: 84px;
    margin: auto;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

/*============================*/

.success-title {
    font-size: 31px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
}

.success-subtitle {
    font-size: 16px;
    line-height: 1.6;
    opacity: .96;
    margin-bottom: 22px;
}

/*============================*/

.order-details {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    margin-bottom: 10px;
}

    .detail-row:last-child {
        margin-bottom: 0;
    }

.status-success {
    color: #d7ffe0;
    font-weight: 800;
}

/*============================*/

.status-box {
    background: rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.status-icon {
    font-size: 18px;
}

.status-line {
    width: 2px;
    height: 16px;
    margin: 8px auto;
    background: rgba(255,255,255,.45);
}

/*============================*/

.diwali-box {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 24px;
}

/*============================*/

.continue-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 260px;
    height: 52px;
    border-radius: 16px;
    background: #fff;
    color: #ff6500;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    transition: .3s;
}

    .continue-btn:hover {
        color: #ff6500;
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(0,0,0,.22);
    }

/*============================*/

@keyframes popSuccess {

    from {
        opacity: 0;
        transform: scale(.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/*============================*/

@media(max-width:768px) {

    .order-success-page {
        padding: 12px;
    }

    .success-card {
        padding: 20px 18px;
        border-radius: 24px;
    }

    .success-icon {
        width: 72px;
        height: 72px;
        font-size: 36px;
        margin-bottom: 14px;
    }

    .success-title {
        font-size: 24px;
    }

    .success-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .order-details {
        padding: 14px;
    }

    .detail-row {
        font-size: 14px;
    }

    .status-box {
        padding: 14px;
    }

    .status-item {
        font-size: 14px;
    }

    .diwali-box {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .continue-btn {
        height: 48px;
        font-size: 16px;
        max-width: 230px;
    }
}
