/* ===========================
   ResinPro Checkout
   =========================== */

body.woocommerce-checkout {
  background: #f9fafb;
}

/* wrapper */
body.woocommerce-checkout .rp-pc-wrap{
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 16px 48px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
@media (max-width: 768px){
body.woocommerce-checkout .rp-pc-wrap {
    padding: unset !important;
}
}
/* titolo con gradient */
body.woocommerce-checkout .rp-pc-gradient-text{
  background: linear-gradient(135deg, #136149 0%, #764ba2 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color: transparent;
  background-clip:text;
}

body.woocommerce-checkout .rp-pc-h1{
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 18px;
}

/* layout grid: 2 colonne desktop, 1 mobile */
body.woocommerce-checkout .rp-pc-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 1024px){
  body.woocommerce-checkout .rp-pc-grid{ grid-template-columns: 1fr; }
}

/* cards */
body.woocommerce-checkout .rp-pc-card{
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 22px;
}

/* progress */
body.woocommerce-checkout .rp-pc-steps{
  display:flex;
  align-items:center;
  gap: 14px;
  margin: 0 0 22px;
}
body.woocommerce-checkout .rp-pc-step{
  display:flex;
  align-items:center;
  gap: 10px;
  color: #9ca3af;
  font-weight: 700;
}
body.woocommerce-checkout .rp-pc-step.is-active{ color:#7c3aed; }
body.woocommerce-checkout .rp-pc-badge{
  width: 30px; height: 30px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  font-size: 13px;
  font-weight: 900;
  background:#d1d5db;
  color:#4b5563;
}
body.woocommerce-checkout .rp-pc-step.is-active .rp-pc-badge{
  background:#7c3aed;
  color:#fff;
}
body.woocommerce-checkout .rp-pc-line{
  flex: 1;
  height: 4px;
  background:#e5e7eb;
  border-radius: 999px;
}

/* section title */
body.woocommerce-checkout .rp-pc-section-title{
  font-size: 18px;
  font-weight: 800;
  color:#111827;
  margin: 18px 0 12px;
}

/* fields styling */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 768px){
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper{
    grid-template-columns: 1fr;
  }
}

body.woocommerce-checkout .form-row{
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout .form-row label{
  display:block;
  font-size: 13px;
  font-weight: 700;
  color:#374151;
  margin: 0 0 6px;
}

body.woocommerce-checkout input.input-text, body.woocommerce-checkout textarea, body.woocommerce-checkout .select2-container--default .select2-selection--single select#fattura_billing_state, select#fattura_billing_country, select#fattura_billing_state {
  width: 100%;
  border: 1px solid #d1d5db !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  min-height: 46px;
  background:#fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}

body.woocommerce-checkout input.input-text:focus,
body.woocommerce-checkout textarea:focus,
body.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single{
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102,126,234,.12);
  outline: none !important;
}

/* summary sticky */
@media (min-width: 1025px){
  body.woocommerce-checkout .rp-pc-sticky{
    position: sticky;
    top: 24px;
  }
}

/* order review table clean */
body.woocommerce-checkout .woocommerce-checkout-review-order-table{
  border: 0 !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td{
  border: 0 !important;
  padding: 10px 0 !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th{
  padding-top: 14px !important;
  border-top: 1px solid #e5e7eb !important;
}

/* total highlight */
body.woocommerce-checkout .rp-pc-total{
  color:#111827;
  font-weight: 900;
  font-size: 18px;
}

/* coupon modern */
body.woocommerce-checkout .rp-pc-coupon-box{
  background:#f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 14px;
}
body.woocommerce-checkout .rp-pc-coupon-box input{
  background:#fff;
}

/* payment methods as cards */
body.woocommerce-checkout .rp-pc-choice{
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background:#fff;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  margin: 0 0 10px !important;
}

li.wc_payment_method.payment_method_cod.rp-pc-choice {}
body.woocommerce-checkout .rp-pc-choice:hover{
  transform: translateY(-1px);
  border-color: rgba(102,126,234,.45);
  box-shadow: 0 8px 25px rgba(102,126,234,.15);
}
body.woocommerce-checkout .rp-pc-choice.is-selected{
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 10px 28px rgba(124,58,237,.12);
}

/* place order button */
body.woocommerce-checkout #place_order{
  width: 100% !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  min-height: 56px;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(90deg, #002049 0%, #1a7949 50%, #8373a1 100%);
  border: 0 !important;
}
body.woocommerce-checkout #place_order:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}
p#vuoi_fattura_field {
    margin-top: 10px !important;
    border-radius: 12px;
    padding: 10px !important;
    background: #19774912;
    display: inline-flex !important;
}
li.wc_payment_method {
    justify-items: anchor-center;
}
li.wc_payment_method.payment_method_revolut_cc.rp-pc-choice, li.wc_payment_method.payment_method_stripe.rp-pc-choice {
    background: linear-gradient(90deg, #f24c914d 0%, #ff98005c 50%, #f2b14c47 100%) !important;
    font-weight: bold !important;
}
li.wc_payment_method.payment_method_revolut_pay.rp-pc-choice {
    font-weight: bold !important;
    background: linear-gradient(90deg, #23232330 0%, #23232330 50%, #23232330 100%) !important;
    justify-content: center !important;
}
li.wc_payment_method.payment_method_ppcp-gateway.rp-pc-choice {
    font-weight: bold !important;
    background: linear-gradient(90deg, #60cdff5e 0%, #078fff45 50%, #008cff3d 100%) !important;
	justify-content: center !important;
}
li.wc_payment_method.payment_method_wc-scalapay-payin3.rp-pc-choice {
    font-weight: bold !important;
    background: #ffcbd369 !important;
}
li.wc_payment_method.payment_method_ppcp.rp-pc-choice, li.wc_payment_method.payment_method_ppcp-gateway.rp-pc-choice {
    font-weight: bold !important;
    background: linear-gradient(90deg, #60cdff5e 0%, #078fff45 50%, #008cff3d 100%) !important;
}
li.wc_payment_method.payment_method_stripe_bancontact.rp-pc-choice {
    font-weight: bold !important;
    background: linear-gradient(90deg, #004e9152 0%, #ffdd0059 50%, #ffdd004a 100%) !important;
}
li.wc_payment_method.payment_method_stripe_ideal.rp-pc-choice {
    background: linear-gradient(90deg, #cc006659 0%, #ec9fc561 50%, #adadad54 100%) !important;
    font-weight: bold !important;
}
li.wc_payment_method.payment_method_ppcp_googlepay.rp-pc-choice {
    font-weight: bold !important;
    background: linear-gradient(90deg, #ffffff5e 0%, #ffffff45 50%, #ffffff3d 100%) !important;
}
li.wc_payment_method.payment_method_bacs.rp-pc-choice {
    font-weight: bold !important;
    background: linear-gradient(90deg, #efd60f5c 0%, #eedc0459 50%, #f2b14c5c 100%) !important;
}
li.wc_payment_method.payment_method_cod.rp-pc-choice {
    font-weight: bold !important;
    background: linear-gradient(90deg, #c3ef0f63 0%, #eedc044a 50%, #b8f24c57 100%) !important;
}
li.wc_payment_method.payment_method_bank_transfer_1.rp-pc-choice {
    font-weight: bold !important;
    background: linear-gradient(90deg, #2196f342 0%, #00bcd445 50%, #03a9f44a 100%) !important;
}
li.wc_payment_method.payment_method_stripe_p24.rp-pc-choice {
    background: linear-gradient(90deg, #b3b2b126 50%, #d1323957 100%) !important;
    font-weight: bold !important;
}
.entry-header {
    display: none;
}
body.woocommerce-checkout .woocommerce-form-coupon-toggle{
  display:none !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0px !important;
}

span#select2-billing_country-container {}
body.woocommerce-checkout span.select2.select2-container.select2-container--default {
    width: 100% !important;
}
@media (max-width: 768px){
.wc-ppcp-express-checkout {
    max-width: 265px !important;
}
.gpay-card-info-container {
    max-width: 210px !important;
}
.resinpro-cross-sell-section {
    display: none;
}
}
.woocommerce-shipping-methods label, .wc_payment_methods label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 10px;
    margin-bottom: 0px !important;
}
input#fattura_billing_address_2 {
    display: none;
}
.select2-container--default .select2-selection--single, select.resinpro-variation-selector {
    font-size: 12px;
    width: 100%;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    min-height: 46px;
    background: #fff;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.resinpro-cross-sell-section {
    max-width: 770px !important;
}
/* Nasconde completamente i campi nascosti da WooCommerce */
.woocommerce-billing-fields__field-wrapper .form-row-hidden,
.woocommerce-billing-fields__field-wrapper .hidden {
    display: none !important;
}
/* Evita il buco nella griglia */
.woocommerce-billing-fields__field-wrapper .form-row {
    margin-bottom: 16px;
}
.woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row {
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
}
.container:not(.bigheader) {
    max-width: 95% !important;
}
div#coupons_list {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 22px;
}

/* THANK YOU PAGE */
section.woocommerce-order-details {
    display: none;
}
section.woocommerce-customer-details {
    display: none;
}