/* ── Round buttons throughout cart/checkout ── */

/* Floating cart bottom buttons */
.woocommerce-mini-cart__buttons .wc-forward, .wc-proceed-to-checkout .wc-forward{
    border-radius: 2em;
}

/* Update cart button on cart page */
button[name="update_cart"]{
    border-radius: 2em;
}

/* Back to store button on cart page */
a.button-continue-shopping{
    border-radius: 2em;
}

/* Back to store when cart is empty */
.return-to-shop a.wc-backward{
    border-radius: 2em;
}

/* Place order button in checkout */
button#place_order{
    border-radius: 2em;
}

/* Checkout order summary + shipping methods + payment methods border */
.checkout .col-inner.has-border{
  border-radius: 1em;
}

/* Checkout input fields */
.checkout .woocommerce-input-wrapper input, .checkout .woocommerce-input-wrapper select{
  border-radius: 1em;
}


/* === PAYMENT METHODS CSS === */

#payment .wc_payment_methods > li{
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-auto-rows: auto;
  column-gap: 10px;
  align-items: start;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
#payment .wc_payment_methods > li:last-child{
  border-bottom: 0;
}

/* Radio */
#payment .wc_payment_methods > li > input.input-radio {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  margin: 0;
  appearance: auto;
  transform: scale(1);
  cursor: pointer;
}

/* Label (title + icon) */
#payment .wc_payment_methods > li > label{
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  min-width: 0;
  flex-wrap: nowrap;
}

/* Title ellipsis */
#payment .wc_payment_methods > li > label .pm-title{
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gateway icons */
#payment .wc_payment_methods > li > label img{
  height: 32px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
  margin-left: 10px;
}

/* Description box */
#payment .wc_payment_methods > li .payment_box{
  grid-column: 2;
  grid-row: 2;
  margin: 6px 0 12px 0;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

/* Dividers */
#payment .wc_payment_methods > li{
  border: 0;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
#payment .wc_payment_methods > li:not(:last-child){
  border-bottom: 1px solid rgba(0,0,0,.06);
}

#payment .wc_payment_methods > li .payment_box{
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

@media (max-width: 480px){
  #payment .wc_payment_methods > li{ column-gap: 8px; }
  #payment .wc_payment_methods > li > label img{ height: 28px; }
}


/* === MERCADO PAGO – Compact Checkout Styling === */

li.payment_method_woo-mercado-pago-custom {
  --mp-scale: 0.90 !important;
  --mp-input-height: 42px !important;
}

.payment_method_woo-mercado-pago-custom .mp-wallet-button-container {
  padding: 10px 12px !important;
  border: 1px solid #eee !important;
  border-radius: 10px !important;
  margin-bottom: 12px !important;
}
.payment_method_woo-mercado-pago-custom .mp-wallet-button-title span {
  font-size: 13px!important;
  line-height: 1.2 !important;
}
.payment_method_woo-mercado-pago-custom #mp-wallet-button {
  padding: 6px 10px !important;
  border-radius: 10px !important;
}
.payment_method_woo-mercado-pago-custom #mp-wallet-button img {
  height: 20px !important;
  width: auto !important;
}

.payment_method_woo-mercado-pago-custom .mp-checkout-custom-card-form {
  gap: 10px !important;
}
.payment_method_woo-mercado-pago-custom .mp-checkout-custom-card-row {
  margin-bottom: 8px !important;
}
.payment_method_woo-mercado-pago-custom .mp-checkout-custom-dual-column-row {
  gap: 12px !important;
}

.payment_method_woo-mercado-pago-custom .mp-input-label {
  font-size: 12px !important;
  line-height: 1.2 !important;
  margin-bottom: 4px !important;
}
.payment_method_woo-mercado-pago-custom .mp-helper-message {
  font-size: 12px !important;
}

.payment_method_woo-mercado-pago-custom .mp-checkout-custom-security-code-tooltip {
  width: 18px !important;
  height: 18px !important;
  font-size: 12px !important;
  line-height: 18px !important;
}

.payment_method_woo-mercado-pago-custom .mp-checkout-custom-card-input,
.payment_method_woo-mercado-pago-custom .mp-checkout-custom-left-card-input,
.payment_method_woo-mercado-pago-custom .mp-checkout-custom-security-code-input {
  height: var(--mp-input-height) !important;
  border-radius: 8px !important;
}

.payment_method_woo-mercado-pago-custom input.mp-card-holder-name {
  height: var(--mp-input-height) !important;
  padding: 8px 10px !important;
  font-size: 14px !important;
  border-radius: 8px !important;
}

.payment_method_woo-mercado-pago-custom .mp-input-select-select,
.payment_method_woo-mercado-pago-custom .mp-document,
.payment_method_woo-mercado-pago-custom .mp-input-select-input {
  height: var(--mp-input-height) !important;
  font-size: 14px !important;
}
.payment_method_woo-mercado-pago-custom .mp-vertical-line {
  height: calc(var(--mp-input-height) - 8px) !important;
}

.payment_method_woo-mercado-pago-custom #mp-checkout-custom-installments-card select {
  height: var(--mp-input-height) !important;
  font-size: 14px !important;
}

.payment_method_woo-mercado-pago-custom select option[data-placeholder] {
  font-size: 13px !important;
  color: #777 !important;
}


/* === Shipping Methods — clean cards === */

#shipping_method .shipping__list_item{
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 10px;
  align-items: start;
  margin: 0 0 12px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}

#shipping_method .shipping__list_item > input.shipping_method{
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  margin: 0;
  appearance: auto;
  transform: scale(1.15);
  accent-color: #0076f1;
  cursor: pointer;
}

#shipping_method .shipping__list_item > label.shipping__list_label{
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 2em;
  background: #fff;
  line-height: 1.35;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
  cursor: pointer;
}

#shipping_method .shipping__list_label .ship-label{
  --icon-col: 60px;
  display: grid;
  grid-template-columns: var(--icon-col) 1fr;
  column-gap: 10px;
  align-items: center;
}

#shipping_method .shipping__list_label .ship-icon{
  width: auto !important;
  max-width: 100%;
  max-height: 45px;
  justify-self: center;
  object-fit: contain;
  margin: 0 !important;
}

#shipping_method .shipping__list_label .ship-text{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
#shipping_method .shipping__list_label .ship-title{
  font-weight: 700;
  line-height: 1.25;
}
#shipping_method .shipping__list_label .ship-desc{
  color: #555;
  line-height: 1.3;
}

#shipping_method .shipping__list_item > label.shipping__list_label:hover{
  border-color: #0076f1;
  background: #f7fbff;
}

#shipping_method .shipping__list_item > input.shipping_method:checked + label.shipping__list_label{
  border-color: #0076f1;
  background: #f7fbff;
}

@supports(selector(:has(*))){
  #shipping_method .shipping__list_item:has(> input.shipping_method:checked){
    border: 0 !important;
    background: transparent !important;
  }
}

@media (max-width: 480px){
  #shipping_method .shipping__list_item{ grid-template-columns: 20px 1fr; column-gap: 8px; }
  #shipping_method .shipping__list_item > label.shipping__list_label{ padding: 8px 12px; }
  #shipping_method .shipping__list_label .ship-label{ --icon-col: 50px; }
  #shipping_method .shipping__list_label .ship-icon{ max-height: 26px; }
}
