/* Carrinho e checkout: passos, títulos, confiança e sugestão de pack. */
body.woocommerce-cart main > .section.content > h1,
body.woocommerce-checkout main > .section.content > h1 { font-size: clamp(1.9rem, 3vw, 2.6rem) !important; font-weight: 600; letter-spacing: -.03em; margin: 0 0 1rem !important; }

/* Passos */
.soso-cc-steps { display: flex; align-items: center; gap: 0; list-style: none; margin: 0 0 1.75rem; padding: 0; max-width: 560px; }
.soso-cc-steps li { display: flex; align-items: center; gap: .55rem; flex: 1; font-size: .84rem; font-weight: 600; color: #8a93a0; }
.soso-cc-steps li:not(:last-child)::after { content: ''; flex: 1; height: 1px; background: #e2d6da; margin: 0 .75rem; }
.soso-cc-steps__n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; background: #f1ebed; color: #8a93a0; }
.soso-cc-steps li.is-current { color: #162a45; }
.soso-cc-steps li.is-current .soso-cc-steps__n { background: #183457; color: #fff; }
.soso-cc-steps li.is-done { color: #356458; }
.soso-cc-steps li.is-done .soso-cc-steps__n { background: #edf5f0; color: #356458; }
.soso-cc-steps__label { white-space: nowrap; }

/* Sugestão de pack no carrinho */
.soso-cc-pack { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0 0 1.75rem; padding: 12px 18px 12px 12px; background: #f8f1f3; border: 1px solid #ecd8df; border-radius: 14px; color: #162a45; text-decoration: none; transition: border-color .2s; }
.soso-cc-pack:hover { border-color: #984665; }
.soso-cc-pack[hidden] { display: none; }
.soso-cc-pack__img img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.soso-cc-pack__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.soso-cc-pack__tag { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #984665; }
.soso-cc-pack__title { font-weight: 700; font-size: .95rem; }
.soso-cc-pack__text { font-size: .85rem; color: #3b4a5f; }
.soso-cc-pack__go { font-weight: 700; color: #984665; white-space: nowrap; }

/* Carrinho: linhas de produto */
body.woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__image img { width: 84px; max-width: 84px; height: auto; border-radius: 10px; border: 1px solid #e9dfe1; }
body.woocommerce-cart .wc-block-cart .wc-block-components-product-name { color: #162a45 !important; font-weight: 600; font-size: 1rem; text-decoration: none !important; }
body.woocommerce-cart .wc-block-cart .wc-block-components-product-name:hover { color: #984665 !important; }
body.woocommerce-cart .wc-block-cart .wc-block-components-product-metadata { display: none; }
body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price { font-weight: 700; color: #183457; }
body.woocommerce-cart .wc-block-cart__totals-title { font-family: 'DM Sans', sans-serif !important; text-transform: none !important; font-size: 1.15rem !important; font-weight: 700 !important; letter-spacing: 0 !important; color: #162a45; }
body.woocommerce-cart .wc-block-components-totals-footer-item { font-weight: 700; }

/* Caixa de confiança */
.soso-cc-trust { margin: 0 0 1rem; padding: 14px 16px; background: #fff; border: 1px solid #e9dfe1; border-radius: 12px; }
.soso-cc-trust__title { margin: 0 0 8px; font-weight: 700; font-size: .88rem; color: #162a45; }
.soso-cc-trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.soso-cc-trust li { position: relative; padding-left: 22px; font-size: .82rem; color: #3b4a5f; line-height: 1.4; }
.soso-cc-trust li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #edf5f0; color: #356458; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Checkout: títulos das secções mais leves */
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-title { font-family: 'DM Sans', sans-serif !important; font-size: 1.15rem !important; font-weight: 700 !important; letter-spacing: 0 !important; color: #162a45; }
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-panel__button,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title-text { font-family: 'DM Sans', sans-serif; font-weight: 700; }
body.woocommerce-checkout .wc-block-components-order-summary-item__image img { border-radius: 8px; }
/* Termos dentro da caixa de finalizar (computador): já não ficam tapados por ela. */
.soso-checkout-action .soso-terms-proxy { margin: 0 0 .85rem !important; padding: 0 0 .85rem !important; background: none !important; border: 0 !important; border-bottom: 1px solid #e9dfe1 !important; border-radius: 0 !important; font-size: .78rem; }
.soso-checkout-action p { display: flex; gap: .4rem; align-items: center; }
.soso-checkout-action p::before { content: '🔒'; font-size: .8rem; }

@media (max-width: 780px) {
    .soso-cc-steps { margin-bottom: 1.25rem; }
    .soso-cc-steps li { font-size: .74rem; gap: .35rem; }
    .soso-cc-steps li:not(:last-child)::after { margin: 0 .4rem; }
    .soso-cc-steps__n { width: 22px; height: 22px; font-size: .7rem; }
    .soso-cc-pack { grid-template-columns: 52px minmax(0, 1fr); padding: 12px; }
    .soso-cc-pack__img img { width: 52px; height: 52px; }
    .soso-cc-pack__go { grid-column: 2; font-size: .85rem; }
    body.woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__image img { width: 64px; max-width: 64px; }
}
@media (max-width: 380px) {
    .soso-cc-steps__label { white-space: normal; line-height: 1.2; }
}

/* Computador: resumo + termos + botão num bloco que acompanha o scroll. O botão está sempre visível;
   se o ecrã for baixo, é o resumo que faz scroll por dentro (nada fica tapado). */
@media (min-width: 1000px) {
    body.woocommerce-checkout .wc-block-checkout__sidebar { position: sticky !important; top: 80px; align-self: start !important; display: flex !important; flex-direction: column; max-height: var(--soso-side-max, calc(100vh - 96px)); }
    body.woocommerce-checkout .wc-block-checkout__sidebar > .wp-block-woocommerce-checkout-order-summary-block { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
    body.woocommerce-checkout .soso-checkout-action { flex: 0 0 auto; position: static !important; margin-top: 1rem !important; box-shadow: 0 10px 30px rgba(24, 52, 87, .1) !important; }
}
