.checkout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid #bbbbbb;
    border-radius: .25rem !important;
    font-family: "Open Sans", sans-serif;
    color: #32363b;
}

.checkout-options {
    display: flex;
    gap: 10px;
}

.checkout-option-box {
    flex: 1;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #bbbbbb;
    border-radius: .25rem !important;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.checkout-option-box.active {
    border-color: #355cc0;
    background: #eef6fc;
}

.option-title {
    font-weight: 500;
    font-size: 12px;
}

.option-value {
    margin-top: 5px;
    font-weight: 700;
    font-size: 20px;
    color: #1e9e4a;
}

.option-subvalue {
    font-size: 15px;
}

.checkout-product-box {
    border: 2px solid #ffffff;
    background: #ffffff;
    border-radius: .25rem !important;
    display: flex;
    gap: 10px;
}

.checkout-product-box .checkout-produto-image img {
    border-radius: .25rem !important;
}

.checkout-product-box h2.checkout-product-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.checkout-product-box .autor,
.upsell-info .autor {
    font-size: 12px;
    font-weight: 400;
    margin-top: 5px;
}

.checkout-product-box .checkout-product-description {
    font-size: 12px;
    font-weight: 400;
    margin-top: 5px;
}

.checkout-wrapper hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    border-radius: 0;
}

.checkout-section-title {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.checkout-ciclos .checkout-options {
    flex-direction: column;
}

.checkout-ciclos .checkout-option-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.checkout-ciclos .option-value {
    margin: 0;
}


.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group {
    width: 100%;
}

.form-group label {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 5px;
}

.checkout-input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border-radius: .25rem !important;
    border: 1px solid #bbbbbb;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s ease;
    background: #fff;
}

.checkout-input:focus {
    border-color: #355cc0;
    box-shadow: 0 0 0 2px rgba(29, 111, 220, 0.15);
    outline: none;
}

.checkout-input::placeholder {
    color: #999;
}

.switch-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0 5px;
}

.switch-label {
    font-size: 12px;
    font-weight: normal;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .3s;
}


.switch input:checked+.slider {
    background-color: #355cc0;
}

.switch input:checked+.slider:before {
    transform: translateX(18px);
}

.checkout-options.pagamento-options {
    margin-top: 15px;
}

h3.checkout-section-title.checkout-card-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.form-row.validade-cod {
    display: flex;
    gap: 10px;
}

.checkout-upsell-card {
    border-radius: 5px;
    padding: 20px;
    border: 1px solid #bbbbbb;
    margin-top: 15px;
    cursor: pointer;
}

.upsell-top {
    display: flex;
    gap: 15px;
}

.upsell-image img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: .25rem !important;
}

.upsell-title {
    font-weight: 500;
    font-size: 14px;
}

.upsell-pricing {
    margin: 10px 0;
}

.upsell-old-price-container {
    display: flex;
}

.upsell-old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
    font-size: 12px;
}

.upsell-badge {
    background: #27ae60;
    color: #fff;
    padding: 3px 6px 0;
    font-size: 12px;
    border-radius: .25rem !important;
}

.upsell-parcelado {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
}

.compara-upsell-a-vista {
    font-size: 12px;
    font-weight: 400;
    margin-top: 1px;
}

.upsell-add {
    background: #dff3e3;
    padding: 10px 10px 15px;
    border-radius: .25rem !important;
    margin-top: 12px;
}

.upsell-add label {
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}


.checkout-upsell-card.is-selected {
    border-color: #27ae60;
    /* mesma cor da badge */
    background: #f4fbf6;
}

.checkout-upsell-card .checkout-upsell-parcelas {
    cursor: default;
}


.checkout-benefits {
    margin-top: 10px;
}

.checkout-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.benefit-card {
    border: 1px solid #00a650;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    background: #f4fbf6;
}


.benefit-icon {
    margin-bottom: 0;
}

.benefit-title {
    font-weight: 700;
    font-size: 12px;
    color: #00a650;
    margin-bottom: 6px;
}

.benefit-text {
    font-size: 12px;
    line-height: 1.5em;
}

/* Responsivo */
@media (max-width: 600px) {
    .checkout-benefits-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-resumo {
    margin-top: 10px;
}

.checkout-resumo-box {
    background: #ffffff;
    border-radius: 14px;
}

.checkout-resumo-itens {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
}


.resumo-item {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    padding: 10px;
    align-items: center;
    justify-content: space-between;
    border-radius: .25rem !important;
}

.resumo-item-nome {
    font-weight: 600;
    font-size: 13px;
}

.resumo-item-valor,
.resumo-item-valor-assinatura {
    font-size: 13px;
    font-weight: 400;
}

.resumo-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 18px 0;
}

.resumo-total {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
}

.resumo-aviso-juros {
    margin-top: 10px;
    font-size: 12px;
    color: #777;
}

.resumo-aviso-multiplos {
    font-size: 12px;
    font-weight: 400;
    background: #eeeeee;
    padding: 10px;
    margin: 15px 0 0;
    border-radius: .25rem !important;
}

.checkout-btn-finalizar {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: .25rem !important;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout-btn-finalizar svg {
    width: 20px;
    height: 20px;
}

.checkout-btn-finalizar.cartao {
    background: #12a44d;
    color: #fff;
}

.checkout-btn-finalizar.pix {
    background: #12a44d;
    color: #fff;
}

.pix-wrapper,
.cartao-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 18px;
}

.pix-wrapper h2,
.cartao-wrapper h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3em;
    text-align: center;
}

.pix-wrapper h3,
.cartao-wrapper h3 {
    margin: 0;
}

.pix-wrapper p,
.cartao-wrapper p {
    margin: 10px;
}

.pix-wrapper .pix-qrcode {
    max-width: 300px;
}

.pix-wrapper .pix-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
}

.pix-wrapper .pix-copy button {
    background: #12a44d;
    color: #ffffff;
    height: 40px;
    border: none;
    cursor: pointer;
}

#checkout-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.checkout-loader-box {
    text-align: center;
    font-family: Arial, sans-serif;
}

.checkout-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e5e5;
    border-top: 4px solid #2c7be5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.price-parcelado,
.price-assinatura {
    font-size: 18px;
    font-weight: 700;
    color: #355cc0;
}

.compara-price-a-vista {
    font-size: 12px;
    font-weight: 400;
    color: #355cc0;
}

.checkout-error {
    border-color: #ff0000;
}

.pagamento-pix .codigo-pix {
    font-size:14px;
}

.pagamento-pix .item-resumo {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.checkout-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.checkout-modal{
    background:#fff;
    padding:30px;
    border-radius:8px;
    max-width:420px;
    width:90%;
    text-align:center;
}

.checkout-modal h3{
    margin-top:0;
    color:#d93025;
}

.checkout-modal button{
    margin-top:15px;
    padding:10px 20px;
    background:#0073aa;
    color:#fff;
    border:0;
    border-radius:5px;
    cursor:pointer;
}