/* ==========================================================================
   CHECKOUT - Steps indicator, user info, payment options, order summary
   ========================================================================== */

/* Checkout Steps */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    color: #aaa;
    cursor: pointer;
}

.bubble {
    width: 2.25em;
    height: 2.25em;
    border-radius: 50%;
    background-color: #333;
    border: 2px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.25s ease;
}
    .bubble img {
        height: 1.5em;
        padding:0.1em;
        aspect-ratio: 1;
    }

.step-label {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    text-align: center;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #444;
    margin: 0 0.25rem;
    transform: translate(0, -500%);
}

/* Step States */
.completed .bubble, .bubble.completed, .title .bubble {
    background-color: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.step.completed .step-label {
    color: #e0e0e0;
}

.active .bubble, 
.bubble.active {
    background-color: #e74c3c;
    border-color: #ff6666;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 60, 60, 0.4);
}

.step.active .step-label {
    color: #fff;
}

.step:not(.active):not(.completed) .bubble {
    background-color: #222;
    border-color: #555;
}

.step:not(.active):not(.completed) .step-label {
    color: #777;
}


.payment-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.payment-divider {
    border: none;
    height: 1px;
    background-color: #555;
    margin-bottom: 1.5rem;
}

.payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-height: 200rem;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}
    .payment-options.hidden {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: max-height 0.5s ease, opacity 0.5s ease;
    }


.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    border: 1px solid #444;
    background: transparent;
    color: #ccc;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1rem;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.payment-option i {
    font-size: 1.1rem;
    color: #ddd;
}
    .payment-option img {
        height: 1.6rem;
        aspect-ratio: 2/1;
        border-radius:2rem;
        background: white;
        padding: 0.2rem;
    }
.payment-option:hover {
    border-color: #e74c3c;
    color: #fff;
}

.payment-option.selected {
    border-color: #e74c3c;
    background: rgba(255, 50, 50, 0.15);
    box-shadow: 0 0 8px rgba(255, 80, 80, 0.4);
    color: #fff;
}

.payment-option.selected i {
    color: #ff4d4d;
}

/* Order Summary */
.order-summary {
    color: #f5f5f5;
    padding: 2rem;
    display: flex;
    min-width:30rem;
    max-width: 40rem;
    overflow:hidden;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.0rem;
    position: relative;
    background: radial-gradient(circle at 75% 35%, rgba(150, 0, 0, 0.25), rgba(15, 13, 15, 1));
    border: 1px solid #808080;
    border-radius: 8px;
}

.summary-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.summary-divider {
    border: none;
    height: 1px;
    background-color: #555;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    gap:1rem;
    color: #ccc;
}
.summary-price-row .without-vat{
    text-align:right;
}
.price{
    text-wrap:nowrap;
}
.total.without-vat {
    letter-spacing: 0.23rem
}
.summary-row span {
    margin-top: auto;
    margin-bottom: auto;
}
    .order-summary .summary-row span:last-child {
        text-align:right;
    }

.order-summary .summary-row.total {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ff4d4d;
    padding-top: 0.5rem;
    border-top: 2px dotted #555;
}
.order-summary h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-right: auto;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    padding-right: 0.2rem;
    border-bottom: solid 1px #555;
}

/* Coupon */
.summary-coupon {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.coupon-input {
    flex: 1;
    font-size: 1.3rem;
    padding: 0.5em 1em;
    border-radius: 2em;
    border: 1px solid #666;
    background: #1a1a1a11;
    color: #eee;
}

.coupon-apply {
    background: #c0392b;
    font-size: 1.2rem;
    margin-left: 0.5em;
    border: none;
    border-radius: 2em;
    color: white;
    padding: 0.5em 1em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.coupon-apply:hover {
    background: #e74c3c;
}



/* Responsive */
@media (max-width: 1300px){
    .order-summary {
        max-width: unset;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .checkout-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 0.5rem 0.5rem;
        margin-bottom: 1.5rem;
    }

    .step {
        flex: 0 0 auto;
    }

    .step-line {
        display: none;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .tab-bubble {
        font-size: 1rem;
    }


    .payment-options {
        flex-direction: column;
        align-items: stretch;
    }

    .payment-option {
        width: 100%;
        justify-content: center;
    }

    .payment-tab,
    .order-summary {
        padding: 1.5rem;
    }

    .summary-heading,
    .payment-heading {
        font-size: 1.25rem;
    }

    .summary-coupon {
        flex-direction: column;
    }

    .coupon-input {
        font-size: 1.1rem;
    }

    .coupon-apply {
        font-size: 1.1rem;
        margin-left: 0;
        width: 100%;
    }


}

@media (max-width: 480px) {
    .summary-row {
        font-size: 0.9rem;
    }

    .summary-row.total {
        font-size: 1.1rem;
    }

}