/* FDI Carrinho e Checkout Clássicos - CSS principal organizado */

body.page-id-7,
body.page-id-8 {
  background:
    radial-gradient(circle at 10% 8%, rgba(123,47,190,.09), transparent 25%),
    radial-gradient(circle at 90% 14%, rgba(0,170,255,.06), transparent 24%),
    linear-gradient(180deg, #FCFAFF 0%, #FFFFFF 48%, #F8F3FF 100%) !important;
  overflow-x: hidden !important;
}

body.page-id-7 .entry-hero,
body.page-id-7 .entry-header,
body.page-id-7 .page-header,
body.page-id-7 .entry-title,
body.page-id-7 .kadence-breadcrumbs,
body.page-id-7 .woocommerce-breadcrumb,
body.page-id-8 .entry-hero,
body.page-id-8 .entry-header,
body.page-id-8 .page-header,
body.page-id-8 .entry-title,
body.page-id-8 .kadence-breadcrumbs,
body.page-id-8 .woocommerce-breadcrumb {
  display: none !important;
}

body.page-id-7 .content-area,
body.page-id-7 #primary,
body.page-id-7 .site-main,
body.page-id-7 .entry-content-wrap,
body.page-id-8 .content-area,
body.page-id-8 #primary,
body.page-id-8 .site-main,
body.page-id-8 .entry-content-wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-id-7 .entry-content,
body.page-id-7 .single-content,
body.page-id-8 .entry-content,
body.page-id-8 .single-content {
  width: 100% !important;
  max-width: 100% !important;
}

body.page-id-7 .woocommerce,
body.page-id-8 .woocommerce {
  width: min(1240px, calc(100vw - 32px)) !important;
  max-width: 1240px !important;
  margin: 0 auto 64px !important;
  font-family: 'Nunito', sans-serif !important;
}

body.page-id-7 .woocommerce::before,
body.page-id-8 .woocommerce::before {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 26px 0 24px;
  padding: 30px 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 12%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(135deg, #2E1048 0%, #7B2FBE 100%);
  color: #FFFFFF;
  box-shadow: 0 22px 60px rgba(61,26,110,.14);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: .01em;
}

body.page-id-7 .woocommerce::before { content: 'Seu carrinho'; }
body.page-id-8 .woocommerce::before { content: 'Finalizar compra'; }

body.page-id-7 h2,
body.page-id-7 h3,
body.page-id-8 h2,
body.page-id-8 h3,
body.page-id-8 #order_review_heading {
  color: #3D1A6E !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  line-height: 1.08 !important;
  letter-spacing: .01em !important;
}

/* Campos */
body.page-id-7 input:not([type='radio']):not([type='checkbox']):not([type='hidden']),
body.page-id-7 select,
body.page-id-7 textarea,
body.page-id-8 input:not([type='radio']):not([type='checkbox']):not([type='hidden']),
body.page-id-8 select,
body.page-id-8 textarea {
  min-height: 48px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(123,47,190,.16) !important;
  background: #FFFFFF !important;
  color: #3D1A6E !important;
  box-shadow: none !important;
  padding: 10px 14px !important;
  font-family: 'Nunito', sans-serif !important;
}

body.page-id-7 input:not([type='radio']):not([type='checkbox']):not([type='hidden']):focus,
body.page-id-7 select:focus,
body.page-id-7 textarea:focus,
body.page-id-8 input:not([type='radio']):not([type='checkbox']):not([type='hidden']):focus,
body.page-id-8 select:focus,
body.page-id-8 textarea:focus {
  border-color: rgba(123,47,190,.48) !important;
  outline: 3px solid rgba(123,47,190,.10) !important;
}

body.page-id-7 label,
body.page-id-8 label {
  color: #6C647D !important;
  font-weight: 800 !important;
}

body.page-id-7 .required,
body.page-id-8 .required {
  color: #7B2FBE !important;
}

body.page-id-7 input[type='radio'],
body.page-id-7 input[type='checkbox'],
body.page-id-8 input[type='radio'],
body.page-id-8 input[type='checkbox'] {
  accent-color: #7B2FBE;
}

/* Botões */
body.page-id-7 .button,
body.page-id-7 button.button,
body.page-id-7 .checkout-button,
body.page-id-8 .button,
body.page-id-8 button.button,
body.page-id-8 #place_order {
  min-height: 50px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #7B2FBE 0%, #9C52DE 100%) !important;
  color: #FFFFFF !important;
  border: 0 !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(123,47,190,.24) !important;
  padding: 13px 24px !important;
}

body.page-id-7 .button:hover,
body.page-id-7 button.button:hover,
body.page-id-7 .checkout-button:hover,
body.page-id-8 .button:hover,
body.page-id-8 button.button:hover,
body.page-id-8 #place_order:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(123,47,190,.32) !important;
}

body.page-id-7 .woocommerce-message,
body.page-id-7 .woocommerce-info,
body.page-id-7 .woocommerce-error,
body.page-id-8 .woocommerce-message,
body.page-id-8 .woocommerce-info,
body.page-id-8 .woocommerce-error {
  border-radius: 18px !important;
  border-top-color: #7B2FBE !important;
  background: #FAF7FF !important;
  color: #3D1A6E !important;
  box-shadow: 0 12px 30px rgba(61,26,110,.05) !important;
}

/* Carrinho clássico: mantém float e só alinha topo no desktop */
@media (min-width: 981px) {
  body.page-id-7 .woocommerce::after {
    content: '';
    display: table;
    clear: both;
  }

  body.page-id-7 .woocommerce-cart-form {
    width: calc(100% - 430px) !important;
    float: left !important;
    margin: 0 !important;
    padding: 30px !important;
  }

  body.page-id-7 .cart-collaterals {
    width: 400px !important;
    float: right !important;
    margin: 0 !important;
    padding: 30px !important;
    position: sticky !important;
    top: 96px !important;
  }

  body.page-id-7 .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }
}

body.page-id-7 .woocommerce-cart-form,
body.page-id-7 .cart-collaterals {
  border-radius: 30px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(253,250,255,.96) 100%) !important;
  border: 1px solid rgba(123,47,190,.10) !important;
  box-shadow: 0 18px 48px rgba(61,26,110,.07) !important;
  box-sizing: border-box !important;
}

body.page-id-7 .woocommerce-cart-form::before {
  content: 'Resumo do carrinho';
  display: block;
  margin: 0 0 20px;
  color: #3D1A6E;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 2.7vw, 2.85rem);
  font-weight: 700;
  line-height: 1.05;
}

body.page-id-7 .shop_table.cart {
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
}

body.page-id-7 .shop_table.cart th {
  color: #3D1A6E !important;
  font-weight: 900 !important;
  text-transform: none !important;
  border-bottom: 1px solid rgba(123,47,190,.12) !important;
  padding: 14px 12px !important;
}

body.page-id-7 .shop_table.cart td {
  border-color: rgba(123,47,190,.10) !important;
  vertical-align: middle !important;
  padding: 20px 12px !important;
}

body.page-id-7 .shop_table.cart .product-name a {
  color: #3D1A6E !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

body.page-id-7 .shop_table.cart .product-thumbnail img {
  width: 74px !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(61,26,110,.07) !important;
}

body.page-id-7 .product-remove a.remove {
  color: #C62828 !important;
  background: #FFF5F6 !important;
  border-radius: 999px !important;
  width: 26px !important;
  height: 26px !important;
  line-height: 24px !important;
  text-align: center !important;
}

body.page-id-7 .quantity .qty {
  max-width: 82px !important;
  min-height: 46px !important;
  text-align: center !important;
}

body.page-id-7 .cart_totals h2 {
  color: #3D1A6E !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(2rem, 2.5vw, 2.65rem) !important;
  line-height: 1.05 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  margin: 0 0 22px !important;
}

body.page-id-7 .cart_totals table {
  border: 0 !important;
  margin-bottom: 18px !important;
}

body.page-id-7 .cart_totals table th,
body.page-id-7 .cart_totals table td {
  border-color: rgba(123,47,190,.11) !important;
  color: #514963 !important;
  padding: 16px 0 !important;
  vertical-align: top !important;
}

body.page-id-7 .cart_totals table th {
  color: #3D1A6E !important;
  font-weight: 900 !important;
}

body.page-id-7 .cart_totals .order-total th,
body.page-id-7 .cart_totals .order-total td {
  color: #3D1A6E !important;
  font-size: 1.18rem !important;
  font-weight: 950 !important;
}

body.page-id-7 .wc-proceed-to-checkout a.checkout-button {
  width: 100% !important;
  text-align: center !important;
  margin-bottom: 0 !important;
}

body.page-id-7 .coupon {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

body.page-id-7 .coupon .input-text {
  min-width: 220px !important;
}

/* Cupom do checkout discreto */
body.page-id-8 .woocommerce-form-coupon-toggle {
  width: min(1240px, calc(100vw - 32px)) !important;
  margin: 0 auto 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-id-8 .woocommerce-form-coupon-toggle .woocommerce-info {
  margin: 0 !important;
  padding: 12px 16px !important;
  border-radius: 16px !important;
  font-size: .9rem !important;
  background: rgba(255,255,255,.72) !important;
  border: 1px solid rgba(123,47,190,.10) !important;
  box-shadow: none !important;
}

body.page-id-8 form.checkout_coupon {
  width: min(720px, calc(100vw - 32px)) !important;
  margin: 0 auto 18px !important;
  padding: 16px !important;
  border-radius: 18px !important;
}

/* Checkout: original desejado — esquerda com dados + pagamento, direita com resumo */
@media (min-width: 981px) {
  body.page-id-8 form.checkout.woocommerce-checkout {
    display: block !important;
    width: 100% !important;
  }

  body.page-id-8 #customer_details {
    width: calc(100% - 430px) !important;
    float: left !important;
    margin: 0 !important;
  }

  body.page-id-8 #order_review_heading,
  body.page-id-8 #order_review {
    width: 400px !important;
    float: right !important;
    clear: right !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.page-id-8 #order_review_heading {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 28px 30px 16px !important;
    border-radius: 30px 30px 0 0 !important;
    border-bottom: 0 !important;
  }

  body.page-id-8 #order_review {
    margin-top: 0 !important;
    padding: 10px 30px 30px !important;
    border-radius: 0 0 30px 30px !important;
    border-top: 0 !important;
    position: sticky !important;
    top: 96px !important;
  }

  body.page-id-8 form.checkout.woocommerce-checkout::after {
    content: '';
    display: table;
    clear: both;
  }
}

body.page-id-8 #customer_details,
body.page-id-8 #order_review,
body.page-id-8 #order_review_heading {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(253,250,255,.96) 100%) !important;
  border: 1px solid rgba(123,47,190,.10) !important;
  box-shadow: 0 18px 48px rgba(61,26,110,.07) !important;
  box-sizing: border-box !important;
}

body.page-id-8 #customer_details {
  border-radius: 30px !important;
  padding: 34px !important;
}

body.page-id-8 #customer_details .col-1,
body.page-id-8 #customer_details .col-2,
body.page-id-8 .col2-set,
body.page-id-8 .woocommerce-billing-fields,
body.page-id-8 .woocommerce-shipping-fields,
body.page-id-8 .woocommerce-additional-fields {
  width: 100% !important;
  float: none !important;
  max-width: 100% !important;
}

body.page-id-8 .form-row { margin-bottom: 16px !important; }
body.page-id-8 .form-row-first,
body.page-id-8 .form-row-last { width: calc(50% - 8px) !important; }
body.page-id-8 .form-row-first { float: left !important; }
body.page-id-8 .form-row-last { float: right !important; }
body.page-id-8 .form-row-wide { clear: both !important; }

body.page-id-8 #order_review table.shop_table {
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin-bottom: 0 !important;
}

body.page-id-8 #order_review table.shop_table th,
body.page-id-8 #order_review table.shop_table td {
  border-color: rgba(123,47,190,.11) !important;
  color: #514963 !important;
  padding: 14px 0 !important;
}

body.page-id-8 #order_review table.shop_table th {
  color: #3D1A6E !important;
  font-weight: 900 !important;
}

body.page-id-8 #payment {
  background: linear-gradient(180deg, #FBF7FF 0%, #FFFFFF 100%) !important;
  border: 1px solid rgba(123,47,190,.12) !important;
  border-radius: 24px !important;
  padding: 22px !important;
  margin: 26px 0 0 !important;
  box-shadow: 0 14px 32px rgba(61,26,110,.05) !important;
  clear: both !important;
}

body.page-id-8 #payment::before {
  content: 'Pagamento';
  display: block;
  margin: 0 0 14px;
  color: #3D1A6E;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
}

body.page-id-8 #payment ul.payment_methods {
  border-bottom: 1px solid rgba(123,47,190,.10) !important;
  padding: 0 0 12px !important;
}

body.page-id-8 #payment ul.payment_methods li {
  border: 1px solid rgba(123,47,190,.14) !important;
  border-radius: 18px !important;
  background: #FFFFFF !important;
  padding: 14px 16px !important;
  margin: 10px 0 !important;
}

body.page-id-8 #payment ul.payment_methods li label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #3D1A6E !important;
  font-weight: 900 !important;
}

body.page-id-8 #payment div.form-row { padding: 14px 0 0 !important; }
body.page-id-8 #place_order { width: 100% !important; margin-top: 14px !important; }
body.page-id-8 .woocommerce-privacy-policy-text { color: #6C647D !important; font-size: .88rem !important; line-height: 1.55 !important; }

@media (max-width: 980px) {
  body.page-id-7 .woocommerce-cart-form,
  body.page-id-7 .cart-collaterals,
  body.page-id-8 #customer_details,
  body.page-id-8 #order_review_heading,
  body.page-id-8 #order_review {
    width: 100% !important;
    float: none !important;
    position: static !important;
    margin-top: 22px !important;
  }

  body.page-id-8 #order_review { margin-top: 0 !important; }

  body.page-id-8 .form-row-first,
  body.page-id-8 .form-row-last,
  body.page-id-7 .form-row-first,
  body.page-id-7 .form-row-last {
    float: none !important;
    width: 100% !important;
  }
}

@media (max-width: 680px) {
  body.page-id-7 .woocommerce,
  body.page-id-8 .woocommerce,
  body.page-id-8 .woocommerce-form-coupon-toggle,
  body.page-id-8 form.checkout_coupon {
    width: calc(100vw - 20px) !important;
  }

  body.page-id-7 .woocommerce::before,
  body.page-id-8 .woocommerce::before {
    padding: 24px 22px !important;
    border-radius: 24px !important;
  }

  body.page-id-7 .woocommerce-cart-form,
  body.page-id-7 .cart-collaterals,
  body.page-id-8 #customer_details,
  body.page-id-8 #order_review,
  body.page-id-8 #order_review_heading {
    padding-left: 18px !important;
    padding-right: 18px !important;
    border-radius: 22px !important;
  }
}
