/* Checkout Page */

#checkout-page {
    background-color: #F9FAFB;
    min-height: calc(100vh - 80px);
    padding-bottom: 60px;
    margin-top: 80px;
}

.checkout-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;
}

.checkout-left {
    flex: 1 1 540px;
    min-width: 0;
}

.checkout-container {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
    min-height: 500px;
}

.checkout-vat-note {
    font-size: 13px;
    color: #6b7280;
    margin: 10px 0;
    padding: 8px 12px 8px 28px;
    background: #f0f9ff;
    border-left: 3px solid #60a5fa;
    border-radius: 4px;
    list-style: disc;
}

.checkout-vat-note li + li {
    margin-top: 4px;
}

.checkout-error {
    color: #D92D20;
    font-size: 14px;
    padding: 16px 0;
}

.checkout-right {
    flex: 0 0 420px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-card {
    border-radius: 16px;
    border: 1px solid #EAECF0;
    background: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.checkout-guarantee {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 16px;
    border-radius: 12px;
    background: rgba(224, 243, 239, 0.71);
    position: relative;
    overflow: hidden;
}

.guarantee-text {
    display: flex;
    flex-direction: column;
    gap: 7px;
    z-index: 1;
}

.guarantee-title {
    font-size: 16px;
    font-weight: 600;
    color: #14151A;
}

.guarantee-subtitle {
    font-size: 14px;
    color: #14151A;
}

.checkout-guarantee .guarantee-badge {
    position: absolute;
    right: 0;
    width: 136px;
}

.summary-title {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-row:not(:last-of-type) {
    padding-bottom: 16px;
}

.summary-row span:first-child {
    font-size: 16px;
    color: #2E3A59;
}

.summary-row span:last-child {
    font-size: 18px;
    font-weight: 500;
    color: #475467;
}

.summary-row.summary-discount .discount-value {
    color: #5925DC;
}

.summary-divider {
    border-top: 1px solid #EAECF0;
}

.summary-total {
    padding-top: 16px;
    align-items: flex-start;
}

.summary-total-left {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.summary-total-left > span {
    font-size: 20px;
    font-weight: 600;
    color: #101828;
}

#checkout-total-label {
    font-size: 20px;
    font-weight: 500;
    color: #101828;
}

.checkout-summary:has(.summary-renewal) .summary-total {
    padding-bottom: 5px;
}

.summary-total > #checkout-total {
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

.summary-price-breakdown {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(222, 211, 248, 0.37);
    border-radius: 5px;
    padding: 6px 8px;
    margin-bottom: 16px;
}

.summary-row span.breakdown-monthly {
    font-size: 14px;
    font-weight: 500;
    color: #475467;
    line-height: 1.2;
}

.summary-row span.breakdown-separator {
    font-size: 14px;
    font-weight: 500;
    color: #475467;
    line-height: 1.2;
}

.summary-row span.breakdown-daily {
    font-size: 12px;
    font-weight: 400;
    color: #475467;
    line-height: 1.2;
}

.summary-row span .summary-price-period {
    font-size: 14px;
    font-weight: 500;
    color: #2E3A59;
}

.summary-renewal {
    font-size: 12px;
    color: #475467;
}

.summary-urgency {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #7B2FE0;
    font-size: 12px;
    padding-bottom: 20px;
}

.checkout-trust {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 12px;
}

.trust-text {
    font-size: 13px;
    color: black;
    opacity: 0.8;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
}

.trust-logos img {
    height: 18px;
    width: auto;
    opacity: 0.7;
    mix-blend-mode: luminosity;
}

.trust-envato {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.trust-envato img {
    mix-blend-mode: luminosity;
    opacity: 0.7;
}

.trust-envato p {
    color: #344054;
}

.trust-envato span {
    color: #98A2B3;
}

.trust-stars {
    display: flex;
    gap: 2px;
}

.trust-stars svg {
    width: 14px;
    height: 14px;

    path {
        fill: #F79009;
    }
}

@media (max-width: 900px) {
    .checkout-wrapper {
        flex-direction: column;
    }

    .checkout-right {
        flex: 1;
        width: 100%;
        order: -1;
        flex-direction: column-reverse;
    }

    .checkout-left {
        width: 100%;
    }

    .checkout-trust {
        padding: 0 12px;
    }

    .trust-logos {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    #cancel-reason-modal {
        padding-inline: 20px;
    }
}

@media (max-width: 576px) {
    .checkout-container {
        padding: 16px;
    }

    .checkout-container iframe.paddle-frame,
    .checkout-container iframe.paddle-frame-inline {
        min-width: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    #cancel-reason-note {
        width: 90%;
    }
}
