/* Kaiju checkout styling (minimal iOS-like) */
body.woocommerce-checkout {
  background: #f5f7fb;
}

body.woocommerce-checkout .entry-title,
body.woocommerce-checkout .page-title,
body.woocommerce-checkout .uk-article-title {
  display: none !important;
}

body.woocommerce-checkout .woocommerce {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 18px 40px;
}

body.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
  grid-auto-flow: row;
  align-content: start;
}

body.woocommerce-checkout #customer_details {
  grid-column: 1;
}

body.woocommerce-checkout .kaiju-order-summary {
  grid-column: 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .col2-set,
body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2 {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
}

body.woocommerce-checkout #order_review_heading {
  margin: 0 0 10px;
  font-weight: 700;
  color: #0f172a;
}

body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  padding: 18px 18px 6px;
}

body.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
  display: grid;
  gap: 12px;
}

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

.kef-phone-row{
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.kef-phone-row .kef-phone-prefix{
  flex: 0 0 140px;
  min-width: 120px;
}
.kef-phone-row .kef-phone-input{
  flex: 1 1 220px;
}
.kef-phone-row .kef-phone-prefix select{
  text-align: left;
}

.kef-phone-row--intl{
  display: block;
}
.kef-phone-row--intl .iti{
  width: 100%;
}
.kef-phone-row--intl .iti__selected-country{
  background: #eef2ff;
  border-right: 1px solid #e5e7eb;
  border-radius: 12px 0 0 12px;
}
.kef-phone-row--intl .iti__selected-country-primary{
  padding: 0 12px;
  gap: 6px;
}
.kef-phone-row--intl .iti__dropdown-content{
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  border: 1px solid #e5e7eb;
}
.kef-phone-row--intl .iti__country-list{
  border-radius: 0 0 12px 12px;
}
.kef-phone-row--intl .iti__country.iti__highlight{
  background: #e0f2fe;
}

.kef-checkout-note{
  margin-top: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

.kef-whatsapp-optin{
  margin-top: 6px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.kef-whatsapp-optin .woocommerce-form__label{
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.kef-whatsapp-optin .woocommerce-form__label span{
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}
.kef-whatsapp-icon{
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  display: inline-block;
}
.kef-whatsapp-optin input{
  margin-top: 2px;
}

body.woocommerce-checkout .woocommerce-checkout .form-row label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

body.woocommerce-checkout .woocommerce-checkout input.input-text,
body.woocommerce-checkout .woocommerce-checkout select,
body.woocommerce-checkout .woocommerce-checkout textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #0f172a;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

body.woocommerce-checkout .woocommerce-checkout input.input-text:focus,
body.woocommerce-checkout .woocommerce-checkout select:focus,
body.woocommerce-checkout .woocommerce-checkout textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table {
  border: 0;
  background: transparent;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
  padding: 10px 8px;
  border-color: #eef2f7;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total{
  position: relative;
  padding-right: 36px;
}
.kef-cart-remove{
  position: absolute;
  right: 8px;
  top: calc(50% - 20px);
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  border: 1px solid #fecaca;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.9);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.woocommerce-checkout-review-order-table tr:hover .kef-cart-remove,
.kef-cart-remove:focus-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.kef-cart-remove:hover{
  background: #fecaca;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
  font-weight: 700;
}

.kef-coupon-row td{
  padding-top: 14px;
  padding-bottom: 14px;
}
.kef-coupon-block{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}
.kef-coupon-form--tickets.kef-processing{
  opacity: 0.85;
  pointer-events: none;
}
.kef-coupon-title{
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 6px;
}
.kef-coupon-desc{
  display: block;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.kef-coupon-form,
.kef-coupon-form--tickets{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}
.kef-coupon-inline{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.kef-coupon-form--tickets .kef-coupon-input{
  width: auto !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 220px !important;
  border-radius: 999px !important;
  background: #eef2ff !important;
  border: 1px solid #c7d2fe !important;
  color: #1e3a8a !important;
  font-weight: 700 !important;
  padding: 8px 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8) !important;
}
.kef-coupon-form--tickets .kef-coupon-input::placeholder{
  color: #64748b !important;
}
.kef-coupon-form--tickets .kef-coupon-btn{
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 0 0 auto !important;
  width: fit-content !important;
  height: 40px !important;
  min-width: 96px !important;
  max-width: 140px !important;
  border-radius: 999px !important;
  background: #0ea5e9 !important;
  color: #ffffff !important;
  border: 1px solid #38bdf8 !important;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  padding: 0 16px !important;
  margin: 0 !important;
  text-decoration: none !important;
}
.kef-coupon-form--tickets .kef-coupon-btn:disabled,
.kef-coupon-form--tickets .kef-coupon-btn[disabled],
.kef-coupon-form--tickets .kef-coupon-btn.disabled,
.kef-coupon-form--tickets .kef-coupon-btn.loading{
  background: #0ea5e9 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  opacity: .85 !important;
  cursor: wait !important;
}
.kef-coupon-form--tickets .kef-coupon-btn:hover{
  background: #0284c7 !important;
  border-color: #0ea5e9 !important;
}

/* Hard override if checkout refresh swaps classes */
body.woocommerce-checkout .kef-coupon-row .kef-coupon-form--tickets button,
body.woocommerce-checkout .kef-coupon-row .kef-coupon-form--tickets button:disabled,
body.woocommerce-checkout .kef-coupon-row .kef-coupon-form--tickets button[disabled],
body.woocommerce-checkout .kef-coupon-row .kef-coupon-form--tickets button.loading{
  appearance: none !important;
  -webkit-appearance: none !important;
  width: fit-content !important;
  height: 40px !important;
  min-width: 96px !important;
  max-width: 140px !important;
  border-radius: 999px !important;
  background: #0ea5e9 !important;
  color: #ffffff !important;
  border: 1px solid #38bdf8 !important;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  padding: 0 16px !important;
  margin: 0 !important;
  cursor: pointer !important;
}
body.woocommerce-checkout .kef-coupon-row button{
  appearance: none !important;
  -webkit-appearance: none !important;
  width: fit-content !important;
  height: 40px !important;
  min-width: 96px !important;
  max-width: 140px !important;
  border-radius: 999px !important;
  background: #0ea5e9 !important;
  color: #ffffff !important;
  border: 1px solid #38bdf8 !important;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  padding: 0 16px !important;
  margin: 0 !important;
}
.extra-fields > .woocommerce-checkout .woocommerce-checkout .form-row {
    margin: 10px 0px 10px 0px;
}

body.woocommerce-checkout .kef-coupon-row .kef-coupon-form--tickets.kef-processing button,
body.woocommerce-checkout .kef-coupon-row .kef-coupon-form--tickets.kef-processing button.loading{
  background: #0ea5e9 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  opacity: .9 !important;
  position: relative !important;
}
body.woocommerce-checkout .kef-coupon-row .kef-coupon-form--tickets.kef-processing button::after,
body.woocommerce-checkout .kef-coupon-row .kef-coupon-form--tickets.kef-processing button.loading::after{
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.7);
  border-top-color: transparent;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  animation: kef-spin .8s linear infinite;
}
body.woocommerce-checkout .kef-coupon-row .kef-coupon-form--tickets.kef-processing button span{
  margin-right: 14px;
}

@keyframes kef-spin{
  to{ transform: translateY(-50%) rotate(360deg); }
}
/* Hide any extra theme button injected inside coupon block */
.kef-coupon-block button:not(.kef-coupon-btn){
  display: none !important;
}
body.woocommerce-checkout .kef-coupon-row #coupon_code,
body.woocommerce-checkout .kef-coupon-row input[name="coupon_code"]{
  width: auto !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 220px !important;
  height: 25px !important;
  border-radius: 999px !important;
  background: #eef2ff !important;
  border: 1px solid #c7d2fe !important;
  color: #1e3a8a !important;
  font-weight: 700 !important;
  padding: 8px 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8) !important;
}

body.woocommerce-checkout .woocommerce-checkout-payment {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
}

body.woocommerce-checkout #place_order {
  width: 100%;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
  border: 0;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}
.woocommerce-checkout-review-order button {
    margin-top: 0px!important;

}
.kef-coupon-form--tickets {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 0px !important;
}

body.woocommerce-checkout #place_order:hover {
  background: #111827;
}

body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

/* Ocultar EventTime en variaciones */
.woocommerce-checkout .variation-EventTime,
.woocommerce-checkout .variation-eventtime,
.woocommerce-cart .variation-EventTime,
.woocommerce-cart .variation-eventtime {
  display: none !important;
}

/* Resumen de variaciones (custom) */

.woocommerce-checkout .variation dt,
.woocommerce-cart .variation dt {
  display: none;
}
.woocommerce-checkout .variation dt[class^="variation-"],
.woocommerce-cart .variation dt[class^="variation-"] {
  display: none !important;
}
.woocommerce-checkout .variation dd,
.woocommerce-cart .variation dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
}
.woocommerce-checkout .variation dd p,
.woocommerce-cart .variation dd p {
  margin: 0;
}
.ktix-summary-bubble{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid #c7d2fe;
}
.ktix-summary-row{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ktix-summary-label{
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.ktix-summary-desc{
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}
.ktix-summary-title{
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.kef-tixholder{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(15,23,42,0.06);
  margin-bottom: 12px;
}
.kef-tixholder-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.kef-tixholder-title{
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
}
.kef-tixholder-entry{
  font-size: 12px;
  font-weight: 600;
  color: #1e3a8a;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 4px 8px;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .woocommerce-checkout .variation,
  .woocommerce-cart .variation {
    display: block;
  }
  .kef-coupon-row td{
    display: block;
    width: 100%;
  }
  .kef-coupon-form,
  .kef-coupon-form--tickets{
    width: 100%;
    flex-wrap: wrap;
  }
  .kef-coupon-inline{
    width: 100%;
    flex-wrap: wrap;
  }
  .kef-phone-row{
    flex-direction: column;
    align-items: stretch;
  }
  .kef-phone-row .kef-phone-prefix,
  .kef-phone-row .kef-phone-input{
    flex: 1 1 auto;
  }
}

@media (max-width: 980px) {
  body.woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
  }
  body.woocommerce-checkout .kaiju-order-summary {
    grid-column: 1;
    width: 100%;
  }
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review {
    grid-column: 1;
  }
}
