
/* ==========================================
   MADBOYZ CHECKOUT 2.0
   Alpha Theme Ultra / Loja Integrada
   Visual editorial, moderno e confiavel
   ========================================== */

/* BASE */
body.carrinho-checkout {
    background: #f7f7f7;
    color: #171717;
    font-family: 'Inter', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.carrinho-checkout .conteiner-principal,
body.carrinho-checkout #corpo {
    background: transparent;
    background-image: none;
}

/* CONTAINER */
body.carrinho-checkout #corpo > .conteiner {
    max-width: 1240px;
    box-sizing: border-box;
    padding: 30px 24px;
    background: transparent;
    box-shadow: none;
}

/* CARDS */
body.carrinho-checkout #corpo .caixa-sombreada {
    background: #ffffff;
    color: #171717;
    border: 1px solid #eaeaea;
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(0,0,0,.035);
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow .25s ease;
}

/* TITULOS */
body.carrinho-checkout #formularioCheckout legend {
    color: #111111;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.4;
    border: 0;
    margin-bottom: 20px;
}

body.carrinho-checkout #formularioCheckout legend i {
    color: #111111;
    margin-right: 9px;
}

/* LABELS */
body.carrinho-checkout #formularioCheckout .control-label {
    color: #333333;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

body.carrinho-checkout #formularioCheckout .control-group {
    margin-bottom: 18px;
}

/* INPUTS */
body.carrinho-checkout #formularioCheckout input[type="text"],
body.carrinho-checkout #formularioCheckout input[type="email"],
body.carrinho-checkout #formularioCheckout input[type="tel"],
body.carrinho-checkout #formularioCheckout input[type="password"],
body.carrinho-checkout #formularioCheckout input[type="number"],
body.carrinho-checkout #formularioCheckout select,
body.carrinho-checkout #formularioCheckout textarea,
body.carrinho-checkout #login-content input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    padding: 12px 14px;
    background: #ffffff;
    color: #171717;
    border: 1px solid #dedede;
    border-radius: 9px;
    box-shadow: none;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* FOCO */
body.carrinho-checkout #formularioCheckout input:focus,
body.carrinho-checkout #formularioCheckout select:focus,
body.carrinho-checkout #formularioCheckout textarea:focus,
body.carrinho-checkout #login-content input:focus {
    border-color: #111111;
    outline: none;
    box-shadow: 0 0 0 3px rgba(234,255,0,.35);
}

/* TIPO DE CADASTRO */
body.carrinho-checkout #tipoCadastro {
    border-color: #eeeeee;
    padding: 14px 0;
    margin-bottom: 20px;
}

body.carrinho-checkout #tipoCadastro a {
    color: #333333;
    font-weight: 600;
    font-size: 13px;
}

body.carrinho-checkout #tipoCadastro .active a {
    color: #111111;
}

/* AJUDA E INFORMAÇÕES */
body.carrinho-checkout #formularioCheckout .help-block,
body.carrinho-checkout #corpo .muted,
body.carrinho-checkout #formularioCheckout .warning-text {
    color: #777777;
    line-height: 1.5;
    font-size: 12px;
}

/* LINKS */
body.carrinho-checkout #corpo a {
    color: #333333;
}

/* RESUMO DA COMPRA */
body.carrinho-checkout .resumo-compra .tabela-carrinho {
    margin: 0;
    border: 0;
}

body.carrinho-checkout .resumo-compra .tabela-carrinho td,
body.carrinho-checkout .resumo-compra .tabela-carrinho th {
    border-color: #eeeeee;
    color: #171717;
    padding-top: 12px;
    padding-bottom: 12px;
}

body.carrinho-checkout .resumo-compra .produto-info {
    color: #171717;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.carrinho-checkout .resumo-compra .produto-info ul {
    color: #777777;
    font-weight: 400;
}

body.carrinho-checkout .resumo-compra .preco-carrinho-total {
    display: block;
    max-width: 100%;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 800;
    color: #111111;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

/* PAGAMENTO */
body.carrinho-checkout #formas-pagamento-wrapper {
    background: #ffffff;
    color: #171717;
    border: 1px solid #eaeaea;
    border-radius: 15px;
}

body.carrinho-checkout #formas-pagamento-wrapper > fieldset > legend,
body.carrinho-checkout #formas-pagamento-wrapper > fieldset > legend i,
body.carrinho-checkout #formas-pagamento-wrapper .politica-privacidade,
body.carrinho-checkout #formas-pagamento-wrapper > fieldset > .control-group,
body.carrinho-checkout #formas-pagamento-wrapper > fieldset > .control-group label,
body.carrinho-checkout #formas-pagamento-wrapper > fieldset > fieldset label {
    color: #171717;
}

body.carrinho-checkout #formasPagamento {
    border: 0;
}

body.carrinho-checkout #formasPagamento .accordion-group {
    background: #ffffff;
    color: #171717;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .2s ease;
}

body.carrinho-checkout #formasPagamento .accordion-group:hover {
    border-color: #bdbdbd;
}

body.carrinho-checkout #formasPagamento .accordion-heading {
    background: #ffffff;
    color: #171717;
    border-radius: 10px;
}

body.carrinho-checkout #formasPagamento .accordion-inner {
    border-color: #eeeeee;
    background: #ffffff;
    color: #171717;
    padding: 18px;
}

body.carrinho-checkout #formasPagamento .cor-principal,
body.carrinho-checkout #formasPagamento .cor-secundaria,
body.carrinho-checkout #formasPagamento .control-label,
body.carrinho-checkout #formasPagamento label,
body.carrinho-checkout #formasPagamento .forma-conteiner,
body.carrinho-checkout #formasPagamento .bandeiras-pagamento,
body.carrinho-checkout #formasPagamento .accordion-inner p,
body.carrinho-checkout #formasPagamento .accordion-inner span {
    color: #171717;
}

body.carrinho-checkout #formasPagamento .help-block,
body.carrinho-checkout #formasPagamento .info-pagamento,
body.carrinho-checkout #formasPagamento .pagamento-boleto-info {
    color: #777777;
}

body.carrinho-checkout #formasPagamento input[type="radio"] {
    accent-color: #111111;
}

/* BOTAO FINALIZAR */
body.carrinho-checkout #finalizarCompra,
body.carrinho-checkout #login-content .submit-email {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    min-height: 54px;
    padding: 15px 20px;
    background: #111111;
    background-image: none;
    color: #ffffff;
    border: 1px solid #111111;
    border-radius: 9px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-shadow: none;
    box-shadow: none;
    transition: all .25s ease;
}

body.carrinho-checkout #finalizarCompra:hover,
body.carrinho-checkout #login-content .submit-email:hover {
    background: #EAFF00;
    color: #111111;
    border-color: #EAFF00;
}

body.carrinho-checkout #finalizarCompra.disabled,
body.carrinho-checkout #finalizarCompra:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* LOGIN */
body.carrinho-checkout #login-content .identificacao {
    background: #ffffff;
    color: #171717;
    border: 1px solid #eaeaea;
    border-radius: 15px;
    padding: 24px;
    box-sizing: border-box;
}

body.carrinho-checkout #login-content .identificacao-title {
    color: #111111;
    font-weight: 700;
}

/* SEGURANCA */
body.carrinho-checkout .checkout-alerta-seguro {
    color: #315b42;
    background: #f0f7f1;
    border: 1px solid #dcebdd;
    border-radius: 9px;
    padding: 13px 16px;
    line-height: 1.5;
}

/* ERROS */
body.carrinho-checkout #formularioCheckout .error input,
body.carrinho-checkout #formularioCheckout .erro input,
body.carrinho-checkout #formularioCheckout input[aria-invalid="true"] {
    border-color: #b42318;
    box-shadow: 0 0 0 2px rgba(180,35,24,.08);
}

body.carrinho-checkout #formularioCheckout .error .help-block,
body.carrinho-checkout #formularioCheckout .erro .help-block {
    color: #b42318;
}

/* IMAGENS DOS PRODUTOS */
body.carrinho-checkout .checkout-item-imagem {
    float: left;
    width: 48px;
    margin-right: 12px;
}

body.carrinho-checkout .checkout-item-imagem img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f5f5;
}

body.carrinho-checkout #corpo .checkout-item-imagem + .produto-info {
    margin-left: 60px;
    min-height: 48px;
    width: auto;
}

/* DESKTOP */
@media (min-width: 1000px) {

    body.carrinho-checkout #formularioCheckout > .row-fluid > .span4 {
        box-sizing: border-box;
        min-width: 0;
    }

    body.carrinho-checkout .campos-pedido > .campos-pedido {
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 0 28px;
        align-items: start;
    }

    body.carrinho-checkout #login-content {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    body.carrinho-checkout .checkout-alerta-seguro {
        grid-column: 2;
        grid-row: 2;
        width: auto;
        max-width: none;
        margin-bottom: 24px;
    }

    body.carrinho-checkout .campos-pedido > .campos-pedido > .row-fluid {
        grid-column: 1;
        grid-row: 1 / 4;
        min-width: 0;
        position: sticky;
        top: 24px;
    }

    body.carrinho-checkout #formularioCheckout {
        grid-column: 2;
        grid-row: 3;
        min-width: 0;
    }

    body.carrinho-checkout #formularioCheckout > .row-fluid > .span4 {
        width: 100%;
        margin-left: 0;
        float: none;
    }
}

/* TABLET */
@media (max-width: 999px) {

    body.carrinho-checkout #corpo > .conteiner {
        padding: 20px;
    }

    body.carrinho-checkout #formularioCheckout > .row-fluid > .span4 {
        float: none;
        width: 100%;
        margin-left: 0;
    }
}

/* CELULAR */
@media (max-width: 767px) {

    body.carrinho-checkout #corpo > .conteiner {
        padding: 12px;
    }

    body.carrinho-checkout #corpo .caixa-sombreada {
        padding: 16px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    body.carrinho-checkout #formularioCheckout legend {
        font-size: 17px;
    }

    body.carrinho-checkout #formularioCheckout input[type="text"],
    body.carrinho-checkout #formularioCheckout input[type="email"],
    body.carrinho-checkout #formularioCheckout input[type="password"],
    body.carrinho-checkout #formularioCheckout input[type="tel"],
    body.carrinho-checkout #formularioCheckout input[type="number"],
    body.carrinho-checkout #formularioCheckout select,
    body.carrinho-checkout #formularioCheckout textarea {
        width: 100%;
        font-size: 16px;
        min-height: 48px;
    }

    body.carrinho-checkout #formularioCheckout .row-fluid > .control-group[class*="span"] {
        width: 100%;
        margin-left: 0;
        float: none;
    }

    body.carrinho-checkout #tipoCadastro {
        display: flex;
        gap: 8px;
    }

    body.carrinho-checkout #tipoCadastro > li {
        box-sizing: border-box;
        flex: 1;
        width: auto;
        float: none;
        margin: 0;
    }

    body.carrinho-checkout #tipoCadastro > li > a {
        display: block;
        min-height: 46px;
        padding: 11px 4px;
        border: 1px solid #dedede;
        border-radius: 8px;
        text-align: center;
        line-height: 22px;
    }

    body.carrinho-checkout #tipoCadastro > li.active > a {
        background: #f0f0f0;
        color: #111111;
        border-color: #111111;
    }

    body.carrinho-checkout .resumo-compra .tabela-carrinho td {
        box-sizing: border-box;
        border: 0;
        height: auto;
        padding: 8px 0;
    }

    body.carrinho-checkout .resumo-compra .tabela-carrinho .produto-info {
        width: auto;
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        overflow-wrap: break-word;
    }

    body.carrinho-checkout .resumo-compra .tabela-carrinho td.phone-pullleft {
        float: none;
        width: 100%;
    }

    body.carrinho-checkout .resumo-compra .tabela-carrinho td.conteiner-qtd {
        float: left;
        width: auto;
    }

    body.carrinho-checkout .resumo-compra .tabela-carrinho td.conteiner-preco {
        float: right;
        width: auto;
    }

    body.carrinho-checkout .resumo-compra .tabela-carrinho .preco-carrinho-total {
        font-size: 22px;
    }

    body.carrinho-checkout #formasPagamento .accordion-inner {
        padding: 13px;
    }

    body.carrinho-checkout #login-content input {
        width: 100%;
        font-size: 16px;
    }

    body.carrinho-checkout #login-content .identificacao-inner {
        padding: 0;
    }

    body.carrinho-checkout #login-content .email-box {
        float: none;
        width: 100%;
        margin: 0 0 12px;
    }

    body.carrinho-checkout #login-content .submit-email {
        width: 100%;
        float: none;
    }

    body.carrinho-checkout #finalizarCompra {
        min-height: 56px;
        font-size: 14px;
    }
}
