/* DNN Customer Experience 2.2.2 — cadastro, login, carrinho e checkout responsivos. */
.dnn-register-page,
.dnn-login-page{
  min-height:68vh;
  padding:clamp(28px,6vw,72px) 16px;
  background:linear-gradient(145deg,#f8fbff 0%,#fff 48%,#fff8fc 100%);
  color:#263142;
}

.dnn-register-shell,
.dnn-login-shell{
  width:min(600px,100%);
  margin:0 auto;
}

.dnn-register-card,
.dnn-login-card{
  padding:clamp(24px,5vw,48px);
  border:1px solid #d9ecf8;
  border-radius:24px;
  background:#fff;
  box-shadow:0 22px 60px rgba(15,23,42,.09);
}

.dnn-auth-heading{
  margin:0 0 26px;
  text-align:center;
}

.dnn-auth-kicker{
  display:inline-block;
  margin-bottom:8px;
  color:#1676a3;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.dnn-auth-heading h1{
  margin:0 0 9px;
  color:#172033;
  font-size:clamp(1.8rem,5vw,2.35rem);
  line-height:1.12;
}

.dnn-auth-heading p{
  max-width:470px;
  margin:0 auto;
  color:#64748b;
  line-height:1.6;
}

.dnn-register-progress{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:0 0 30px;
  padding:0;
  list-style:none;
  color:#94a3b8;
  font-size:.82rem;
  font-weight:800;
}

.dnn-register-progress li{
  display:flex;
  align-items:center;
  gap:8px;
  padding-bottom:10px;
  border-bottom:3px solid #e2e8f0;
}

.dnn-register-progress li span{
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  flex:0 0 25px;
  border-radius:999px;
  background:#e2e8f0;
  color:#475569;
}

.dnn-register-progress .is-current,
.dnn-register-progress .is-done{
  border-color:#7dd3fc;
  color:#263142;
}

.dnn-register-progress .is-current span,
.dnn-register-progress .is-done span{
  background:#7dd3fc;
  color:#172033;
}

.dnn-register-form,
.dnn-login-form{
  display:grid;
  gap:17px;
  margin:0;
}

.dnn-register-form label,
.dnn-login-form label,
.dnn-register-resume label{
  display:grid;
  gap:7px;
  color:#263142;
  font-weight:800;
}

.dnn-register-form input:not([type=checkbox]),
.dnn-login-form input:not([type=checkbox]),
.dnn-register-resume input{
  width:100%;
  min-height:52px;
  box-sizing:border-box;
  padding:11px 14px;
  border:1px solid #cbd5e1;
  border-radius:13px;
  background:#fff;
  color:#172033;
  font:inherit;
}

.dnn-register-form input:focus,
.dnn-login-form input:focus,
.dnn-register-resume input:focus{
  border-color:#38bdf8;
  outline:0;
  box-shadow:0 0 0 4px rgba(56,189,248,.15);
}

.dnn-register-form small,
.dnn-code-form + small{
  color:#64748b;
  font-size:.82rem;
  font-weight:500;
}

.dnn-register-consent{
  display:flex!important;
  align-items:flex-start;
  gap:10px!important;
  font-size:.9rem;
  font-weight:600!important;
  line-height:1.45;
}

.dnn-register-consent input{
  width:17px;
  height:17px;
  flex:0 0 17px;
  margin-top:2px;
}

.dnn-register-consent a,
.dnn-auth-switch a,
.dnn-login-options a,
.dnn-login-new a,
.dnn-register-resume summary{
  color:#1676a3;
  font-weight:850;
}

.dnn-register-submit,
.dnn-login-submit{
  width:100%!important;
  min-height:52px!important;
  border:0!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#7dd3fc,#c4b5fd)!important;
  color:#172033!important;
  font-weight:900!important;
  cursor:pointer;
}

.dnn-register-submit:hover,
.dnn-login-submit:hover{
  filter:brightness(.97);
  transform:translateY(-1px);
}

.dnn-register-message{
  margin-bottom:20px;
  padding:14px 16px;
  border-radius:14px;
  line-height:1.5;
}

.dnn-register-message.success{
  border:1px solid #bbf7d0;
  background:#f0fdf4;
  color:#166534;
}

.dnn-register-message.error{
  border:1px solid #fecaca;
  background:#fff7f7;
  color:#991b1b;
}

.dnn-code-form input[name=verification_code]{
  min-height:62px;
  text-align:center;
  font-size:1.8rem;
  font-weight:900;
  letter-spacing:.34em;
}

.dnn-code-actions{
  display:flex;
  justify-content:center;
  gap:20px;
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid #e2e8f0;
}

.dnn-code-actions form{margin:0}

.dnn-link-button{
  appearance:none;
  padding:3px;
  border:0;
  background:transparent;
  color:#1676a3;
  font:inherit;
  font-size:.9rem;
  font-weight:850;
  text-decoration:underline;
  cursor:pointer;
}

.dnn-auth-switch{
  margin:24px 0 0;
  text-align:center;
  color:#64748b;
}

.dnn-register-resume{
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid #e2e8f0;
}

.dnn-register-resume summary{
  cursor:pointer;
  text-align:center;
}

.dnn-register-resume form{
  display:grid;
  gap:12px;
  margin-top:16px;
}

.dnn-register-resume .button{
  min-height:46px;
  border:1px solid #bae6fd;
  border-radius:999px;
  background:#f0f9ff;
  color:#172033;
  font-weight:850;
}

.dnn-login-options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.dnn-login-options label{
  display:flex!important;
  align-items:center;
  gap:7px;
  font-size:.9rem;
  font-weight:650;
}

.dnn-login-options a{font-size:.9rem}

.dnn-login-new{
  display:flex;
  justify-content:center;
  gap:7px;
  margin-top:25px;
  padding-top:22px;
  border-top:1px solid #e2e8f0;
  color:#64748b;
  text-align:center;
}

/* Carrinho clássico e em blocos: miniatura controlada sem forçar duplicação no mobile. */
.woocommerce-cart table.cart .product-thumbnail{width:100px}

.woocommerce-cart table.cart .product-thumbnail img,
.woocommerce-cart .wc-block-cart-item__image img{
  display:block;
  width:84px!important;
  height:84px!important;
  max-width:84px!important;
  max-height:84px!important;
  margin:auto;
  border-radius:14px;
  object-fit:cover;
  object-position:center;
}

.woocommerce-cart .wc-block-cart-items{
  overflow:hidden;
  border-radius:20px;
}

.woocommerce-cart .cart_totals,
.woocommerce-cart .wc-block-cart__sidebar{
  padding:20px;
  border:1px solid #d9ecf8;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 34px rgba(15,23,42,.07);
}

@media(max-width:760px){
  .dnn-register-page,
  .dnn-login-page{padding:24px 12px}

  .dnn-register-card,
  .dnn-login-card{padding:24px 20px;border-radius:20px}

  .dnn-code-actions{flex-direction:column;gap:9px}
  .dnn-login-options{align-items:flex-start;flex-direction:column}
  .dnn-login-new{flex-direction:column}

  /* O WooCommerce já oculta a célula clássica no layout responsivo.
     Não a reexibimos, pois isso criava a segunda foto pequena. */
  .woocommerce-cart table.shop_table_responsive tr td.product-thumbnail{
    display:none!important;
  }

  .woocommerce-cart .wc-block-cart-item__image img{
    width:96px!important;
    height:96px!important;
    max-width:96px!important;
    max-height:96px!important;
  }
}

/* Evita largura virtual maior que a tela sem retirar o zoom de acessibilidade. */
html{
  max-width:100%;
  overflow-x:clip;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body,
main,
.site-main,
.woocommerce{
  max-width:100%;
  min-width:0;
}

img,
video,
iframe{
  max-width:100%;
}

/* Carrinho clássico: controla a foto adicional criada pelo módulo de checkout. */
.woocommerce-cart .dnn-cart-thumb-mobile{
  max-width:100%;
  overflow:hidden;
}

.woocommerce-cart .dnn-cart-thumb-mobile img{
  display:block;
  max-width:100%!important;
  height:auto!important;
  margin:0 auto!important;
  object-fit:cover;
  object-position:center;
}

/* Fluid Checkout: o conteúdo rola, mas a ação Continuar permanece alcançável. */
@media(max-width:767.98px){
  body.woocommerce-cart,
  body.woocommerce-checkout{
    overflow-x:clip;
  }

  body.woocommerce-cart input,
  body.woocommerce-cart select,
  body.woocommerce-cart textarea,
  body.woocommerce-checkout input,
  body.woocommerce-checkout select,
  body.woocommerce-checkout textarea{
    font-size:16px!important;
  }

  .woocommerce-cart .woocommerce-cart-form,
  .woocommerce-cart .woocommerce-cart-form__contents,
  .woocommerce-cart .cart-collaterals,
  .woocommerce-cart .cart_totals{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:hidden;
    box-sizing:border-box;
  }

  .woocommerce-cart table.shop_table_responsive tr td{
    max-width:100%;
    min-width:0;
    overflow-wrap:anywhere;
    box-sizing:border-box;
  }

  .woocommerce-cart table.shop_table_responsive tr td.product-name{
    text-align:left!important;
  }

  .woocommerce-cart table.shop_table_responsive tr td.product-name::before{
    display:block;
    float:none;
    margin:0 0 8px;
    text-align:left;
  }

  .woocommerce-cart .dnn-cart-thumb-mobile,
  .woocommerce-cart .dnn-cart-thumb-mobile.dnn-full{
    display:block!important;
    width:min(148px,42vw)!important;
    max-width:148px!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:1/1;
    margin:8px auto 14px!important;
    padding:0!important;
    border:0!important;
    border-radius:16px!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  .woocommerce-cart .dnn-cart-thumb-mobile img{
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    aspect-ratio:1/1;
    border-radius:inherit!important;
  }

  .woocommerce-cart .dnn-cart-head-meta{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    text-align:center;
  }

  .woocommerce-cart .dnn-cart-head-meta .dnn-name{
    display:block;
    overflow-wrap:anywhere;
  }

  .woocommerce-cart .cart_totals{
    padding:18px 14px;
  }

  .woocommerce-cart .wc-proceed-to-checkout .checkout-button{
    width:100%;
    max-width:100%;
    min-height:54px;
    white-space:normal;
    line-height:1.3;
    box-sizing:border-box;
  }

  .fc-checkout__cart-link{
    display:inline-flex!important;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    min-height:44px;
    cursor:pointer;
  }

  .fc-checkout__cart-link::after{
    display:inline-block;
    width:9px;
    height:9px;
    margin-left:3px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    content:"";
    transform:rotate(45deg) translateY(-2px);
    transform-origin:center;
    transition:transform .18s ease;
  }

  .fc-checkout__cart-link[aria-expanded=true]::after{
    transform:rotate(225deg) translate(-1px,-1px);
  }

  body.woocommerce-checkout .fc-checkout-order-review[data-flyout]{
    position:fixed!important;
    inset:0!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:100vh!important;
    height:100dvh!important;
    max-height:100vh!important;
    max-height:100dvh!important;
    padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    overscroll-behavior:contain;
  }

  body.woocommerce-checkout .fc-checkout-order-review__inner{
    display:flex!important;
    flex-direction:column;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:100%!important;
    max-height:100%!important;
    min-height:0!important;
    padding:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    background:#fff;
  }

  body.woocommerce-checkout .fc-checkout-order-review__head{
    position:relative;
    z-index:2;
    flex:0 0 auto;
    min-height:58px;
    margin:0!important;
    padding:15px 16px 12px!important;
    border-bottom:1px solid #e2e8f0;
    background:#fff;
  }

  body.woocommerce-checkout .fc-checkout-order-review #order_review{
    flex:1 1 auto;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:12px 14px 20px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    box-sizing:border-box!important;
  }

  body.woocommerce-checkout .fc-checkout-order-review table,
  body.woocommerce-checkout .fc-checkout-order-review tbody,
  body.woocommerce-checkout .fc-checkout-order-review tfoot{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box;
  }

  body.woocommerce-checkout .fc-checkout-order-review .product-name{
    min-width:0!important;
  }

  body.woocommerce-checkout .fc-checkout-order-review .product-name img{
    width:72px!important;
    height:72px!important;
    max-width:72px!important;
    max-height:72px!important;
    border-radius:12px;
    object-fit:cover;
  }

  body.woocommerce-checkout .fc-checkout-order-review__actions-mobile{
    position:relative!important;
    z-index:3;
    display:grid!important;
    grid-template-columns:auto minmax(140px,1fr);
    align-items:center;
    gap:10px;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:76px;
    margin:0!important;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px))!important;
    border-top:1px solid #d9ecf8;
    background:#fff;
    box-shadow:0 -10px 28px rgba(15,23,42,.1);
    box-sizing:border-box!important;
  }

  body.woocommerce-checkout .fc-checkout-order-review__close-order-summary{
    width:100%!important;
    max-width:100%!important;
    min-height:50px!important;
    margin:0!important;
    white-space:normal;
    box-sizing:border-box!important;
  }
}

@supports not (overflow:clip){
  html,
  body.woocommerce-cart,
  body.woocommerce-checkout{
    overflow-x:hidden;
  }
}

@media(prefers-reduced-motion:reduce){
  .fc-checkout__cart-link::after{transition:none}
}

/* =========================================================
   DNN COMPANY — MOSTRAR / OCULTAR SENHA
   ========================================================= */

.dnn-auth-field{
  display:grid;
  gap:7px;
}

.dnn-auth-field > label{
  color:#263142;
  font-weight:800;
}

.dnn-password-wrap{
  position:relative;
  display:block;
  width:100%;
}

/* Espaço para o ícone não ficar sobre o texto da senha */
.dnn-login-form .dnn-password-wrap input{
  padding-right:58px;
}

/* Botão do olho */
.dnn-password-toggle{
  position:absolute;
  top:50%;
  right:7px;
  transform:translateY(-50%);

  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:42px;
  height:42px;

  padding:0;
  border:0;
  border-radius:10px;

  background:transparent;
  color:#64748b;

  cursor:pointer;
  z-index:2;

  transition:
    background-color .18s ease,
    color .18s ease;
}

.dnn-password-toggle:hover{
  background:#f1f5f9;
  color:#172033;
}

.dnn-password-toggle:focus-visible{
  outline:3px solid rgba(56,189,248,.35);
  outline-offset:1px;
}

.dnn-password-toggle svg{
  pointer-events:none;
}

/* Inicialmente mostra olho aberto */
.dnn-password-toggle .dnn-eye-off{
  display:none;
}

/* Quando a senha estiver visível */
.dnn-password-toggle.is-visible .dnn-eye-open{
  display:none;
}

.dnn-password-toggle.is-visible .dnn-eye-off{
  display:block;
}
