/* =========================================================
   ZIREL - CHECKOUT / PEDIDO RECIBIDO
   PULIDO VISUAL
   ========================================================= */

/* ---------- CHECKOUT ---------- */

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout #customer_details h3 {
  color: #162349;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 18px;
}

.woocommerce-checkout .woocommerce form .form-row label {
  color: #2b3853;
  font-size: 14px;
  font-weight: 600;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-checkout-review-order {
  background: #ffffff;
  border: 1px solid #ece6df;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(20, 35, 73, 0.04);
}

.woocommerce-checkout .woocommerce-billing-fields {
  padding: 22px;
}

.woocommerce-checkout #order_review_heading {
  color: #162349;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
}

.woocommerce-checkout .woocommerce-checkout-review-order {
  padding: 18px;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
  color: #1f2b45;
  font-size: 15px;
}

.woocommerce-checkout #payment {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e7e1d9;
}

.woocommerce-checkout #place_order {
  min-height: 54px;
  border-radius: 999px !important;
  background: #4d866d !important;
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  border: 0 !important;
  box-shadow: none !important;
}

/* ---------- PEDIDO RECIBIDO / ORDER DETAILS ---------- */

.woocommerce-order-received .woocommerce-order,
.woocommerce-view-order .woocommerce-order {
  max-width: 1120px;
}

.woocommerce-order-received .woocommerce-order h2,
.woocommerce-view-order .woocommerce-order h2 {
  color: #162349;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 16px;
}

.woocommerce-order-received .woocommerce-order-details,
.woocommerce-view-order .woocommerce-order-details {
  margin-top: 26px;
}

.woocommerce-order-received .woocommerce-table--order-details,
.woocommerce-view-order .woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #ece6df;
  border-radius: 20px;
  overflow: hidden;
}

.woocommerce-order-received .woocommerce-table--order-details thead th,
.woocommerce-view-order .woocommerce-table--order-details thead th {
  background: #f8f5f1;
  color: #162349;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 18px;
}

.woocommerce-order-received .woocommerce-table--order-details tbody td,
.woocommerce-order-received .woocommerce-table--order-details tfoot td,
.woocommerce-order-received .woocommerce-table--order-details tfoot th,
.woocommerce-view-order .woocommerce-table--order-details tbody td,
.woocommerce-view-order .woocommerce-table--order-details tfoot td,
.woocommerce-view-order .woocommerce-table--order-details tfoot th {
  padding: 16px 18px;
  border-top: 1px solid #eee7df;
  color: #1f2b45;
  vertical-align: middle;
}

/* Imagen + nombre en tabla del pedido */
.zirel-order-item-name-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.zirel-order-item-thumb {
  width: 58px !important;
  min-width: 58px;
  height: 58px !important;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ece6df;
  background: #fff;
  display: block;
}

.zirel-order-item-name-text {
  display: inline-block;
  min-width: 0;
}

/* Ocultar bloque nativo de customer details */
.woocommerce-order-received .woocommerce-customer-details,
.woocommerce-view-order .woocommerce-customer-details {
  display: none !important;
}

/* Bloque custom dirección de envío */
.zirel-order-shipping-block {
  margin-top: 28px;
}

.zirel-order-shipping-block__title {
  margin: 0 0 16px;
  color: #162349;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}

.zirel-order-shipping-block__card {
  background: #ffffff;
  border: 1px solid #ece6df;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(20, 35, 73, 0.04);
}

.zirel-order-shipping-block__card p {
  margin: 0 0 10px;
  color: #2b3853;
  font-size: 16px;
  line-height: 1.6;
}

.zirel-order-shipping-block__card p:last-child {
  margin-bottom: 0;
}

.zirel-order-shipping-block__card strong {
  color: #162349;
  font-weight: 700;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 767px) {
  .woocommerce-checkout .woocommerce-billing-fields h3,
  .woocommerce-checkout #customer_details h3,
  .woocommerce-order-received .woocommerce-order h2,
  .woocommerce-view-order .woocommerce-order h2,
  .zirel-order-shipping-block__title {
    font-size: 24px;
  }

  .woocommerce-checkout .woocommerce-billing-fields {
    padding: 18px;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order {
    padding: 14px;
  }

  .zirel-order-item-name-wrap {
    align-items: flex-start;
    gap: 10px;
  }

  .zirel-order-item-thumb {
    width: 48px !important;
    min-width: 48px;
    height: 48px !important;
  }

  .zirel-order-shipping-block__card {
    padding: 18px;
  }

  .zirel-order-shipping-block__card p {
    font-size: 15px;
  }
}
/* =========================================================
   ZIREL - DIRECCIÓN DE ENVÍO BONITA EN PEDIDO RECIBIDO
   ========================================================= */

.zirel-order-shipping-block__card {
  padding: 26px 28px;
}

.zirel-order-shipping-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.zirel-order-shipping-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #eee7df;
  border-radius: 16px;
  background: #fcfaf8;
}

.zirel-order-shipping-item--full {
  grid-column: 1 / -1;
}

.zirel-order-shipping-item__label {
  color: #7b8291;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.zirel-order-shipping-item__value {
  color: #1f2b45;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  word-break: break-word;
}

@media (max-width: 767px) {
  .zirel-order-shipping-block__card {
    padding: 18px;
  }

  .zirel-order-shipping-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .zirel-order-shipping-item--full {
    grid-column: 1;
  }

  .zirel-order-shipping-item {
    padding: 13px 14px;
    border-radius: 14px;
  }

  .zirel-order-shipping-item__label {
    font-size: 12px;
  }

  .zirel-order-shipping-item__value {
    font-size: 15px;
  }
}