/* InovHost - página "Configurar" (confproduct): ficha do plano, ciclos e resumo detalhado */
#order-standard_cart {
    --ihc-blue: #1699e5; --ihc-blue-d: #0d6fb0; --ihc-ink: #2f373d; --ihc-muted: #6b7680;
    --ihc-line: #e2ecf5; --ihc-soft: #f4f9fd; --ihc-green: #1e7b34; --ihc-green-bg: #e6f6ea;
}

/* ---------- ficha do plano ---------- */
#order-standard_cart .product-info {
    background: #fff; border: 1px solid var(--ihc-line); border-radius: 14px;
    padding: 16px 18px; margin: 6px 0 20px; box-shadow: 0 1px 2px rgba(20,60,100,.05);
}
#order-standard_cart .product-info .product-title {
    display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 20px; font-weight: 700; color: var(--ihc-ink); line-height: 1.2;
}
#order-standard_cart .ih-plan-icon {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e6f3fc, #d4ebfb); color: var(--ihc-blue-d); font-size: 18px;
}
#order-standard_cart .ih-plan-group { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--ihc-muted); letter-spacing: .02em; text-transform: uppercase; }
#order-standard_cart .ih-plan-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#order-standard_cart .ih-plan-specs li {
    display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
    padding: 9px 12px; background: var(--ihc-soft); border-radius: 10px; margin: 0;
}
#order-standard_cart .ih-plan-specs li i { grid-row: 1 / span 2; color: var(--ihc-blue); font-size: 15px; text-align: center; }
#order-standard_cart .ih-plan-specs li .k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ihc-muted); line-height: 1.2; display: block; }
#order-standard_cart .ih-plan-specs li strong { font-size: 15px; color: var(--ihc-ink); line-height: 1.25; display: block; }
#order-standard_cart .ih-plan-note { margin: 10px 0 0; font-size: 12px; color: var(--ihc-muted); }

/* ---------- ciclos de pagamento (mesmo visual da página /vps do site) ---------- */
#order-standard_cart .ih-cyc-title { display: block; font-size: 15px; font-weight: 700; color: var(--ihc-ink); margin: 0 0 12px; }
#order-standard_cart .ih-cyc-grid { display: flex; flex-wrap: wrap; gap: 12px 10px; text-align: left; }
#order-standard_cart .ih-cyc-grid .billing-cycle-option.ih-cyc {
    position: relative; display: flex; flex: 1 1 calc(33.333% - 10px); min-width: 150px; padding: 0; border: 0; background: none; text-align: left; transition: none;
}
#order-standard_cart .ih-cyc-grid .billing-cycle-option.ih-cyc input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
#order-standard_cart .ih-cyc-grid .billing-cycle-option.ih-cyc label {
    display: flex !important; flex-direction: column; align-items: flex-start; gap: 3px; flex: 1 1 auto; width: 100%; margin: 0; padding: 14px 12px 10px;
    background: #fff !important; border: 2px solid #e2ecf5; border-radius: 10px; cursor: pointer; font-weight: 400;
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}
#order-standard_cart .ih-cyc-grid .billing-cycle-option.ih-cyc label:hover { border-color: #90cdf4; }
#order-standard_cart .ih-cyc-grid .billing-cycle-option.ih-cyc.ih-selected label,
#order-standard_cart .ih-cyc-grid .billing-cycle-option.ih-cyc:has(input:checked) label { border-color: #1699e5; background: #f4faff !important; box-shadow: 0 6px 16px rgba(22,153,229,.2); }
#order-standard_cart .ih-cyc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
#order-standard_cart .ih-cyc-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #2f373d; }
#order-standard_cart .ih-cyc-price { display: block; }
#order-standard_cart .ih-cyc-price strong { font-size: 18px; font-weight: 700; color: #1699e5; }
#order-standard_cart .ih-cyc-price small { font-size: 12px; color: #666; margin-left: 2px; }
#order-standard_cart .ih-cyc-total { display: block; font-size: 12px; color: #7a828a; line-height: 16px; }
#order-standard_cart .ih-cyc-badges { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
#order-standard_cart .ih-b { font-style: normal; font-size: 11px; font-weight: 700; line-height: 16px; padding: 2px 7px; border-radius: 20px; }
#order-standard_cart .ih-b-off { background: #e1f5e8; color: #1a7f45; }
#order-standard_cart .ih-b-cpn { background: #fff0d6; color: #9a5a00; }
#order-standard_cart .ih-cyc-tag {
    position: absolute; top: -10px; right: 10px; z-index: 1; background: #1699e5; color: #fff; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; line-height: 16px; padding: 1px 8px; border-radius: 20px;
}
#order-standard_cart .ih-cyc-hint { font-size: 13px; line-height: 19px; color: #4a5560; margin: 14px 0 0; padding: 10px 12px; background: #eaf5fd; border: 1px solid #cfe7f8; border-radius: 8px; }

/* "Alterar ciclo" quando o cliente veio do site já com o ciclo escolhido */
#order-standard_cart .ih-cycle-change { display: none; margin-top: 8px; font-size: 13px; }
#order-standard_cart .ih-cycle-collapsed .billing-cycle-option.ih-cyc:not(.ih-selected) { display: none; }
#order-standard_cart .ih-cycle-collapsed .ih-cycle-change { display: inline-block; }

/* ---------- resumo do pedido ---------- */
#producttotal.ih-js-sum .ih-legacy-disc, #producttotal.ih-js-sum .ih-legacy-line { display: none !important; }
#producttotal .ih-sumjs { margin: 10px 0 6px; font-size: 13px; color: var(--ihc-ink, #2f373d); }
#producttotal .ih-sum-cycle { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 9px; background: #eef6fc; margin-bottom: 8px; line-height: 1.3; }
#producttotal .ih-sum-cycle i { color: #1699e5; }
#producttotal .ih-sum-cycle span { margin-left: auto; color: #6b7680; font-size: 12px; text-align: right; }
#producttotal .ih-sum-rows .r { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 0; line-height: 1.3; }
#producttotal .ih-sum-rows .r span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
#producttotal .ih-sum-rows .muted { color: #7a828a; }
#producttotal .ih-sum-rows .save { color: #1e7b34; }
#producttotal .ih-sum-rows .strong { margin-top: 3px; padding-top: 7px; border-top: 1px solid #e2ecf5; font-weight: 700; }
#producttotal .ih-sum-rows .code { padding: 1px 7px; border-radius: 6px; background: #e6f6ea; font-size: 12px; letter-spacing: .03em; }
#producttotal .ih-sum-saved { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; padding: 9px 11px; border-radius: 10px; background: #e6f6ea; color: #1e7b34; }
#producttotal .ih-sum-saved i { font-size: 18px; }
#producttotal .ih-sum-saved b { display: block; font-size: 14px; }
#producttotal .ih-sum-saved span { font-size: 12px; opacity: .9; }
#producttotal .ih-sum-eq { margin: 6px 2px 2px; color: #6b7680; font-size: 12.5px; }
#producttotal .ih-sum-eq b { color: #2f373d; }
#producttotal .ih-sum-renew { display: flex; gap: 8px; margin: 8px 0 2px; padding-top: 8px; border-top: 1px dashed #dbe6f0; color: #6b7680; font-size: 12px; line-height: 1.4; }
#producttotal .ih-sum-renew i { margin-top: 2px; color: #98a3ad; }
#producttotal .ih-sum-renew b { color: #2f373d; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
    #order-standard_cart .ih-cyc-grid .billing-cycle-option.ih-cyc { flex-basis: calc(50% - 10px); }
    #order-standard_cart .ih-plan-specs { grid-template-columns: 1fr 1fr; }
}

/* esconde o marcador de rádio do tema (iCheck) dentro dos cards: o card já tem o seu próprio check */
#order-standard_cart .ih-cyc > [class*="iradio"], #order-standard_cart .ih-cyc > [class*="icheck"] {
    position: absolute !important; width: 0 !important; height: 0 !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; margin: 0 !important;
}

/* ---------- Rever Pedido (viewcart) ---------- */
#order-standard_cart .ih-item-price .ih-price-old { display: block; font-size: 13px; color: #98a3ad; text-align: right; }
#order-standard_cart .ih-item-price .ih-price-eq { display: block; font-size: 12px; color: #6b7680; text-align: right; }
#order-standard_cart .ih-item-price .ih-price-save { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 20px; background: #e6f6ea; color: #1e7b34; font-size: 12px; font-weight: 700; }

/* cupom aplicado */
#order-standard_cart .ih-cpn-applied { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #e6f6ea; border: 1px solid #b9e3c4; color: #1e7b34; }
#order-standard_cart .ih-cpn-applied > i { font-size: 20px; }
#order-standard_cart .ih-cpn-text { flex: 1 1 auto; line-height: 1.3; }
#order-standard_cart .ih-cpn-text strong { display: block; font-size: 14px; }
#order-standard_cart .ih-cpn-text span { font-size: 12.5px; opacity: .9; }
#order-standard_cart .ih-cpn-remove { flex: 0 0 auto; font-size: 12px; color: #6b7680; text-decoration: underline; }

/* Esvaziar carrinho: link discreto, não botão */
#order-standard_cart .empty-cart { text-align: right; margin: 10px 0 0; }
#order-standard_cart .empty-cart .btn, #order-standard_cart .empty-cart #btnEmptyCart {
    background: none !important; border: 0 !important; box-shadow: none !important; color: #8a949e !important; font-size: 12px; padding: 2px 4px; text-decoration: underline;
}
#order-standard_cart .empty-cart .btn:hover { color: #c0392b !important; }

/* resumo detalhado do carrinho */
#order-standard_cart .ih-vsum { margin: 4px 0 8px; font-size: 13px; color: #2f373d; }
#order-standard_cart .ih-vsum .r { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 0; line-height: 1.3; }
#order-standard_cart .ih-vsum .r span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
#order-standard_cart .ih-vsum .muted { color: #7a828a; }
#order-standard_cart .ih-vsum .save { color: #1e7b34; }
#order-standard_cart .ih-vsum .strong { margin-top: 3px; padding-top: 7px; border-top: 1px solid #e2ecf5; font-weight: 700; }
#order-standard_cart .ih-vsum .code { padding: 1px 7px; border-radius: 6px; background: #e6f6ea; font-size: 12px; letter-spacing: .03em; }
#order-standard_cart .ih-vsum-saved { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; padding: 9px 11px; border-radius: 10px; background: #e6f6ea; color: #1e7b34; }
#order-standard_cart .ih-vsum-saved i { font-size: 18px; }
#order-standard_cart .ih-vsum-saved b { display: block; font-size: 14px; }
#order-standard_cart .ih-vsum-saved span { font-size: 12px; opacity: .9; }
#order-standard_cart .ih-vsum-eq { margin: 6px 2px 2px; color: #6b7680; font-size: 12.5px; }
#order-standard_cart .ih-vsum-eq b { color: #2f373d; }
#order-standard_cart .ih-vsum-renew { display: flex; gap: 8px; margin: 8px 0 2px; padding-top: 8px; border-top: 1px dashed #dbe6f0; color: #6b7680; font-size: 12px; line-height: 1.4; }
#order-standard_cart .ih-vsum-renew i { margin-top: 2px; color: #98a3ad; }
#order-standard_cart .ih-vsum-renew b { color: #2f373d; }

/* sugestão de ciclo maior */
#order-standard_cart .ih-upsell { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #f6d58f; color: #7a4d00; }
#order-standard_cart .ih-upsell > i { font-size: 20px; color: #f0a000; }
#order-standard_cart .ih-upsell-text { flex: 1 1 auto; line-height: 1.3; }
#order-standard_cart .ih-upsell-text strong { display: block; font-size: 14px; color: #5c3a00; }
#order-standard_cart .ih-upsell-text span { font-size: 12.5px; }
#order-standard_cart .ih-upsell-btn { flex: 0 0 auto; padding: 8px 14px; border-radius: 8px; background: #1699e5; color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
#order-standard_cart .ih-upsell-btn:hover { background: #0d6fb0; }
@media (max-width: 640px) { #order-standard_cart .ih-upsell { flex-wrap: wrap; } #order-standard_cart .ih-upsell-btn { width: 100%; text-align: center; } }

/* selos de confiança */
#order-standard_cart .ih-trust { margin: 14px 0 6px; text-align: center; }
#order-standard_cart .ih-trust-pay { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 24px; color: #8a949e; }
#order-standard_cart .ih-trust-pay .pix { font-size: 12px; font-weight: 800; letter-spacing: .05em; padding: 2px 7px; border: 1.5px solid #8a949e; border-radius: 5px; }
#order-standard_cart .ih-trust-note { margin-top: 6px; font-size: 12.5px; color: #6b7680; }
#order-standard_cart .ih-trust-note i { color: #1e7b34; margin-right: 4px; }

/* Rever Pedido em largura total */
#order-standard_cart.ih-wide .cart-body { width: 100%; float: none; }
@media (min-width: 992px) {
    #order-standard_cart.ih-wide .secondary-cart-body { width: 68%; }
    #order-standard_cart.ih-wide .secondary-cart-sidebar { width: 32%; }
    #order-standard_cart.ih-wide .secondary-cart-sidebar #orderSummary { position: sticky; top: 20px; }
}
#order-standard_cart .ih-help { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #eef6fc; color: #4a5560; font-size: 12.5px; text-align: left; display: flex; gap: 8px; align-items: center; }
#order-standard_cart .ih-help i { color: #1699e5; font-size: 16px; }

/* Configurar em largura total (o painel lateral continua com o comportamento padrão do WHMCS) */
#order-standard_cart.ih-wide-cfg .cart-body { width: 100%; float: none; }
@media (min-width: 992px) {
    #order-standard_cart.ih-wide-cfg .secondary-cart-body { width: 68%; }
    #order-standard_cart.ih-wide-cfg .secondary-cart-sidebar { width: 32%; }
}

/* Rever Pedido: especificações no mesmo visual da página Configurar (quadros com ícone, nome e valor) */
#order-standard_cart .view-cart-items .item.ih-item .ih-item-specs { margin-top: 12px; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0; width: 100%; }
#order-standard_cart .view-cart-items .item.ih-item .ih-item-specs .ih-specs-list.ih-plan-specs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
#order-standard_cart .view-cart-items .item.ih-item .ih-item-specs .ih-specs-list.ih-plan-specs li {
    display: grid !important; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; white-space: normal;
    width: auto !important; margin: 0; padding: 9px 12px !important; background: #f4f9fd; border: 0 !important; border-radius: 10px;
}
#order-standard_cart .view-cart-items .item.ih-item .ih-specs-list.ih-plan-specs li + li { padding-left: 12px !important; border-left: 0 !important; }
#order-standard_cart .view-cart-items .item.ih-item .ih-specs-list.ih-plan-specs li i { grid-row: 1 / span 2; color: #1699e5; font-size: 15px; text-align: center; }
#order-standard_cart .view-cart-items .item.ih-item .ih-specs-list.ih-plan-specs .k { display: block !important; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6b7680; line-height: 1.2; }
#order-standard_cart .view-cart-items .item.ih-item .ih-specs-list.ih-plan-specs strong { display: block; font-size: 15px; font-weight: 700; color: #2f373d; line-height: 1.25; }
