/* Cerberus - Formas de Pagamento v1.2.1 | WooCommerce + Elessi */
.cfp-payment-selector {
    margin: 0 0 18px;
    width: 100%;
}
.cfp-payment-selector__label {
    display: block;
    margin: 0 0 8px;
    font-weight: 700;
}
.cfp-payment-dropdown {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 0 42px 0 14px;
    cursor: pointer;
}

.cfp-payment-description {
    display: none;
    margin-top: 14px;
    line-height: 1.5;
}
.cfp-payment-description.is-visible {
    display: block;
}
.cfp-payment-description__text {
    padding: 14px 16px;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    background: #fafafa;
    font-size: 14px;
    line-height: 1.55;
}
.cfp-payment-description__alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #e2b93b;
    border-radius: 6px;
    background: #fff7d6;
    color: #6f5500;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}
.cfp-payment-description__alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: #f2c94c;
    color: #4f3b00;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}
.cfp-payment-description__alert-text {
    display: block;
    padding-top: 1px;
}

/* Os gateways Cerberus continuam no DOM para o WooCommerce processá-los, mas a escolha é feita pelo dropdown. */
.cfp-checkout-enabled #payment .wc_payment_methods > li.cfp-hidden-native-method {
    display: none !important;
}

.cfp-checkout-enabled #place_order.cfp-place-order-disabled,
.cfp-checkout-enabled #place_order:disabled {
    cursor: not-allowed !important;
    opacity: .45 !important;
    pointer-events: none !important;
}

.cfp-order-condition { margin-top: 18px; }

/* v1.3.0 — seletor flutuante global */
.cfp-floating-payment{position:fixed;left:22px;bottom:22px;z-index:99992;font-family:inherit}
.cfp-floating-payment__button{display:flex;align-items:center;gap:11px;min-height:54px;padding:8px 16px 8px 9px;border:0;border-radius:10px;background:#171717;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.22);cursor:pointer;text-align:left;transition:transform .18s ease,box-shadow .18s ease}
.cfp-floating-payment__button:hover{transform:translateY(-2px);box-shadow:0 13px 34px rgba(0,0,0,.28)}
.cfp-floating-payment__icon{display:grid;place-items:center;width:37px;height:37px;border-radius:8px;background:#f5c400;color:#171717;font-size:20px;font-weight:900}
.cfp-floating-payment__button-text{display:flex;flex-direction:column;line-height:1.15}.cfp-floating-payment__button-text small{font-size:9px;letter-spacing:.08em;opacity:.72;margin-bottom:3px}.cfp-floating-payment__button-text strong{font-size:12px;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cfp-floating-payment.has-selection .cfp-floating-payment__icon{background:#ffd84d}
.cfp-floating-payment__panel{position:absolute;left:0;bottom:66px;width:min(390px,calc(100vw - 32px));padding:17px;background:#fff;border:1px solid #e4e4e4;border-radius:12px;box-shadow:0 16px 46px rgba(0,0,0,.2);opacity:0;visibility:hidden;transform:translateY(8px);transition:.18s ease;color:#222}
.cfp-floating-payment.is-open .cfp-floating-payment__panel{opacity:1;visibility:visible;transform:none}
.cfp-floating-payment__head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:11px;border-bottom:1px solid #eee}.cfp-floating-payment__head strong{font-size:13px;letter-spacing:.04em}.cfp-floating-payment__close{border:0;background:transparent;font-size:27px;line-height:1;cursor:pointer;color:#555;padding:0 2px}
.cfp-floating-payment__intro{font-size:12px;line-height:1.5;color:#666;margin:13px 0}
.cfp-floating-payment__select{width:100%!important;min-height:44px!important;padding:0 36px 0 12px!important;border:1px solid #cfcfcf!important;border-radius:7px!important;background-color:#fff!important;font-weight:700!important;font-size:12px!important}
.cfp-floating-payment__status{min-height:18px;margin-top:8px;font-size:11px;color:#6d5c00}.cfp-floating-payment__status.is-loading{font-weight:600}
.cfp-adjusted-price{display:inline-block}.cfp-price-condition{display:block!important;margin-top:4px;font-size:10px!important;line-height:1.3;color:#7a6500!important;font-weight:600!important}
@media(max-width:600px){.cfp-floating-payment{left:12px;bottom:12px}.cfp-floating-payment__button{min-height:50px}.cfp-floating-payment__button-text strong{max-width:145px}.cfp-floating-payment__panel{bottom:61px}}


/* v1.5.1 - botão flutuante refinado, sem qualquer estilo aplicado ao preço dos produtos */
.cfp-floating-payment{
    left:22px!important;
    bottom:22px!important;
}
.cfp-floating-payment__button{
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    min-width:225px!important;
    min-height:62px!important;
    padding:8px 14px 8px 9px!important;
    border:1px solid rgba(255,255,255,.09)!important;
    border-radius:999px!important;
    background:var(--cfp-button-bg,#171717)!important;
    color:var(--cfp-button-text,#fff)!important;
    box-shadow:0 12px 34px rgba(0,0,0,.25)!important;
}
.cfp-floating-payment__button:hover{
    background:var(--cfp-button-bg-hover,#2b2b2b)!important;
    color:var(--cfp-button-text,#fff)!important;
    transform:translateY(-2px)!important;
}
.cfp-floating-payment__icon,
.cfp-floating-payment.has-selection .cfp-floating-payment__icon{
    flex:0 0 44px!important;
    width:44px!important;
    height:44px!important;
    border-radius:50%!important;
    background:var(--cfp-icon-bg,#f5c400)!important;
    color:var(--cfp-icon-text,#171717)!important;
    font-size:13px!important;
}
.cfp-floating-payment__panel{
    bottom:76px!important;
    width:min(400px,calc(100vw - 32px))!important;
    padding:20px!important;
    border-radius:18px!important;
    background:var(--cfp-modal-bg,#fff)!important;
    color:var(--cfp-modal-text,#222)!important;
}
.cfp-floating-payment__close{
    width:32px!important;
    height:32px!important;
    border-radius:50%!important;
    background:var(--cfp-close-bg,#f4f4f4)!important;
    color:var(--cfp-close-text,#555)!important;
}
.cfp-floating-payment__close:hover{
    background:var(--cfp-close-bg-hover,#f5c400)!important;
    color:var(--cfp-close-text-hover,#171717)!important;
}
@media(max-width:600px){
    .cfp-floating-payment{left:12px!important;bottom:12px!important}
    .cfp-floating-payment__button{min-width:0!important;max-width:calc(100vw - 24px)!important;min-height:58px!important}
    .cfp-floating-payment__panel{bottom:70px!important;padding:17px!important;border-radius:16px!important}
}




/* v1.6.1 - descrição curta inserida por hooks do WooCommerce.
   O preço do Elessi não recebe nenhuma regra de estilo do plugin. */
.cfp-short-description{
    display:block!important;
    margin-top:4px!important;
    padding:0!important;
    font-size:12px!important;
    color:#af8a11!important;
    text-align:center!important;
}


/* v1.6.8 - descrição da condição com o mesmo alerta amarelo */
.cfp-payment-description__main{margin-top:0!important;font-weight:400!important;}

/* v1.6.9 - oculta somente a linha SUBTOTAL no resumo do checkout */
body.woocommerce-checkout #order_review .cart-subtotal,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal{
    display:none!important;
}
