.wc-tsc {
  max-width: 1100px;
  margin: 0 auto;
}

.wc-tsc__nav {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
}

.wc-tsc__nav-item {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-weight: 600;
  opacity: .6;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.wc-tsc__nav-item.is-active {
  border-color: #0060AF;
  color: #ffffff;
  background-color: #0060AF;
  opacity: 1;
}

.woocommerce-billing-fields, .woocommerce-shipping-fields, .wc-tsc__order-toggle, .wc-tsc__payment, .woocommerce-account-fields {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
}

.woocommerce-billing-fields:hover, .woocommerce-shipping-fields:hover, .wc-tsc__order-toggle:hover, .wc-tsc__payment:hover, .woocommerce-account-fields:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
}

.wc-tsc__panel.is-hidden {
  display: none;
}

.wc-tsc__actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.wc-tsc .button {
  cursor: pointer;
}

/* Two-column layout for panels */
.wc-tsc__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}



.wc-tsc__col {
  display: flex;
  flex-direction: column;
}

.wc-tsc__section-title {
  margin: 16px 0 10px;
}

.wc-tsc__order-review table.shop_table {
  width: 100%;
}

.wc-tsc__actions--left {
  justify-content: flex-start;
}

/* Ensure MP Brick container uses full width */
.wc-tsc__payment {
  width: 100%;
}

.wc-tsc__payment #mp-card-brick,
.wc-tsc__payment .mercadopago-bricks-component {
  width: 100%;
  border: solid #dddddd 1px;
}

/* --- Enhancements for product thumbnails and order review --- */
.wc-tsc__order-review table.shop_table tr td.product-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wc-tsc__order-review table.shop_table tr td.product-name img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
}

/* Card-like style for order review */
.wc-tsc__order-review {
  background: #fafafa;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

/* Mercado Pago header above the brick */
.wc-tsc__mp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.wc-tsc__mp-header img {
  height: 32px;
}

.wc-tsc__mp-header span {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.wc-tsc__order-review .order-total th,
.wc-tsc__order-review .order-total td {
  font-size: 1.05rem;
  font-weight: 700;
}

.wc-tsc__mp-header {
  text-align: center;
  background-color: #FFE600;
  padding: 1rem;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estado: Step 1 activo → azul, Step 2 inactivo → blanco */
.wc-tsc__nav-item[data-step="1"].is-active {
  background-color: #0060AF;
  border-color: #0060AF;
  color: #ffffff;
}

.wc-tsc__nav-item[data-step="2"]:not(.is-active) {
  background-color: #ffffff;
  border-color: #ddd;
  color: #333;
}

/* Estado: Step 2 activo → azul, Step 1 se pinta de verde */
.wc-tsc__nav-item[data-step="2"].is-active {
  background-color: #0060AF;
  border-color: #0060AF;
  color: #ffffff;
}

.wc-tsc__nav-item[data-step="1"]:not(.is-active) {
  background-color: #4EA879;
  border-color: #4EA879;
  color: #ffffff;
}

.wc-tsc__col--form .form-row-first, .wc-tsc__col--form .form-row-last {
    width: 48%;
}

.wc-tsc__col--form .form-row-first, .wc-tsc__col--form .form-row-last {
    float: left;
}

.wc-tsc__col--form .form-row-last, .wc-tsc__col--form .form-row-last {
    float: right;
}

.wc-tsc__actions button {
  width: 100%;
  background-color: #0060AF;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 12px 10px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.wc-tsc__col--payment  button{
  width: fit-content;
  background-color: #ffffff;
  color: #0060AF;
  border: solid #0060AF 1px;
  border-radius: 6px;
  padding: 5px 2rem;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-bottom: 2rem;
  position: relative;
}

.wc-tsc__col--payment > button::before {
    content: "←";
    position: absolute;
    left: 10%;
    top: 30%;
    font-size: 16px;
    line-height: 1;
    color: #0060AF;
    transition: color 0.3s ease;
}

.wc-tsc__col--payment button:hover::before {
    color: #ffffff;
}

.wc-tsc__col--payment  button:hover {
  background-color: #0060AF;
  color: #ffffff;
}

.wc-tsc__actions button:hover {
  background-color: #00509e;
}

.wc-tsc__panel { max-width: 820px; margin: 0 auto; }
.wc-tsc__order-review, .wc-tsc__payment, .wc-tsc__form-section { width: 100%; }

/* ===== Collapsible order review (toggle) ===== */
.wc-tsc__order-toggle {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 16px;
}
.wc-tsc__order-toggle[open] { box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
.wc-tsc__order-toggle__summary {
  list-style: none;
  padding: 12px 14px;
  margin: 0;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #333;
  color: #ffffff;
}
.wc-tsc__order-toggle__summary::-webkit-details-marker { display: none; }
.wc-tsc__order-toggle__summary:after {
  content: '▾';
  font-size: 14px;
  line-height: 1;
  opacity: .7;
  transition: transform .2s ease;
}
.wc-tsc__order-toggle[open] .wc-tsc__order-toggle__summary:after { transform: rotate(180deg); }

/* Inner review tweaks when inside toggle */
.wc-tsc__order-toggle .wc-tsc__order-review {
  border: 0;
  background: transparent;
  padding: 12px 14px 14px;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
}

.wc-tsc__col--payment button:disabled {
  opacity: .7;        /* en lugar de blanquearlo */
  filter: none;       /* por si el theme aplica filtros raros */
  cursor: not-allowed;
  background-color: #0060AF !important;

}


@media (min-width: 900px) {
  .wc-tsc__grid {
    grid-template-columns: 1fr; /* force one column at all widths */
    align-items: start;
  }
}

@media (max-width: 600px) {
.wc-tsc__col--form .form-row-first, .wc-tsc__col--form .form-row-last {
    width: 100% !important;
}

.wc-tsc__col--form .form-row-first, .wc-tsc__col--form .form-row-last {
    float: none !important;
}

.wc-tsc__col--form .form-row-last, .wc-tsc__col--form .form-row-last {
    float: none !important;
}
}