/* Shared checkout layout */
body {
    margin: 0;
    background: #f8f8f8;
    color: #121212;
}

.checkout-top {
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.checkout-top-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 20px;
}

.checkout-logo {
    width: 180px;
    max-width: 100%;
}

.checkout-main {
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.checkout-main--index {
    max-width: 1120px;
    padding-top: 26px;
    padding-bottom: 40px;
}

.checkout-main--thank-you {
    max-width: 860px;
    padding-top: 32px;
    padding-bottom: 48px;
}

.checkout-main--status {
    max-width: 780px;
    padding-top: 32px;
    padding-bottom: 40px;
}

.checkout-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.checkout-card--form {
    padding: 20px;
}

.checkout-card--centered {
    padding: 26px;
    text-align: center;
}

.checkout-card--thank-you {
    padding: 28px;
}

/* Index page */
.checkout-title {
    margin: 0 0 22px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 26px;
    align-items: flex-start;
}

.checkout-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.bag-image {
    width: 100%;
    border-radius: 12px;
    display: block;
    margin-bottom: 14px;
    object-fit: cover;
}

.bag-name {
    margin: 8px 0 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
}

.bag-price {
    margin-top: 14px;
    font-size: 24px;
    font-weight: 700;
}

.field {
    margin-bottom: 13px;
}

.field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.field input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
}

.field input:focus {
    border-color: #121212;
    outline: 0;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
}

.error {
    color: #b00020;
    font-size: 13px;
    margin-top: 4px;
}

.flash-error {
    margin: 0 0 14px;
    color: #b00020;
    font-weight: 600;
}

.checkout-btn {
    margin-top: 10px;
    width: 100%;
    border: 0;
    border-radius: 999px;
    color: #fff;
    padding: 0 18px;
    min-height: 52px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    opacity: .9;
}

.checkout-btn-mercadopago {
    background: #ffe600;
    color: #0a0080;
    border: 1px solid #e6d000;
}

.checkout-btn-paypal {
    background: #ffc439;
    color: #253b80;
    border: 1px solid #e6b233;
    margin-top: 8px;
}

.checkout-btn-icon {
    flex-shrink: 0;
    display: block;
    width: auto;
}

.checkout-btn-icon-mercadopago,
.checkout-btn-icon-paypal {
    height: 24px;
}

/* Thank you page */
.success-icon {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: #121212;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 14px;
}

.checkout-card--thank-you h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.15;
}

.checkout-card--centered p {
    margin: 8px 0;
    color: #535353;
    font-size: 16px;
}

.checkout-card--thank-you p {
    font-size: 17px;
}

.bag-line {
    margin-top: 14px;
    font-weight: 600;
    color: #121212;
}

.btn-home {
    display: inline-block;
    margin-top: 20px;
    border: 0;
    border-radius: 999px;
    background: #121212;
    color: #fff;
    text-decoration: none;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 600;
}

.btn-home:hover {
    opacity: .9;
}

/* Payment failed page */
.failure-icon {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: #b42318;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 14px;
    line-height: 1;
}

.checkout-card--payment-failed h1 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.2;
}

.purchase-id {
    margin-top: 16px;
    font-weight: 600;
    color: #121212;
}

.btn-retry {
    display: inline-block;
    margin-top: 22px;
    margin-right: 10px;
    border: 0;
    border-radius: 999px;
    background: #121212;
    color: #fff;
    text-decoration: none;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 600;
}

.btn-retry:hover {
    opacity: .9;
}

.btn-secondary {
    display: inline-block;
    margin-top: 22px;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: #fff;
    color: #121212;
    text-decoration: none;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

/* Processing page */
.checkout-card--processing h1 {
    margin: 0 0 12px;
    font-size: 32px;
}

.loader {
    width: 42px;
    height: 42px;
    border: 3px solid #e5e5e5;
    border-top: 3px solid #121212;
    border-radius: 999px;
    margin: 0 auto 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .form-columns {
        grid-template-columns: 1fr;
    }

    .checkout-title {
        font-size: 28px;
    }

    .checkout-card--thank-you h1 {
        font-size: 28px;
    }

    .checkout-card--payment-failed h1 {
        font-size: 26px;
    }

    .checkout-card--processing h1 {
        font-size: 28px;
    }
}
