/**
 * TODA LA NOCHE Events - WooCommerce Cart & Checkout Styles
 */

/* Estilos generales para carrito y checkout */
.woocommerce-cart,
.woocommerce-checkout {
  background-color: #000;
  color: #fff;
}

.woocommerce-cart #main,
.woocommerce-cart .entry-content,
.woocommerce-checkout #main,
.woocommerce-checkout .entry-content {
  background-color: #000;
  color: #fff;
}

/* Títulos */
.woocommerce-cart h1,
.woocommerce-cart h2,
.woocommerce-cart h3,
.woocommerce-checkout h1,
.woocommerce-checkout h2,
.woocommerce-checkout h3 {
  color: #f195be;
  margin-bottom: 20px;
}

.woocommerce-cart .woocommerce-cart-form__contents thead th,
.woocommerce-checkout .shop_table thead th {
  background-color: rgba(215, 67, 50, 0.2);
  color: #f195be;
  padding: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contenedores */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  margin: 40px 0;
}

/* Mensajes */
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.3);
}

.woocommerce-cart .woocommerce-message,
.woocommerce-checkout .woocommerce-message {
  border-left: 3px solid #5cb85c;
  color: #5cb85c;
}

.woocommerce-cart .woocommerce-info,
.woocommerce-checkout .woocommerce-info {
  border-left: 3px solid #5bc0de;
  color: #5bc0de;
}

.woocommerce-cart .woocommerce-error,
.woocommerce-checkout .woocommerce-error {
  border-left: 3px solid #d74332;
  color: #d74332;
}

/* Botones */
.woocommerce-cart .button,
.woocommerce-checkout .button {
  background-color: #d74332 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 20px !important;
  border-radius: 50px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  text-transform: uppercase;
  font-size: 14px !important;
  letter-spacing: 0.5px;
}

.woocommerce-cart .button:hover,
.woocommerce-checkout .button:hover {
  background-color: #c03a2b !important;
  transform: translateY(-2px);
}

.woocommerce-cart .button.alt,
.woocommerce-checkout .button.alt {
  background-color: #d74332 !important;
}

.woocommerce-cart .button.alt:hover,
.woocommerce-checkout .button.alt:hover {
  background-color: #c03a2b !important;
}

/* Enlaces */
.woocommerce-cart a,
.woocommerce-checkout a {
  color: #d74332;
  text-decoration: none;
  transition: color 0.3s ease;
}

.woocommerce-cart a:hover,
.woocommerce-checkout a:hover {
  color: #f195be;
}

/* Formularios */
.woocommerce-cart input[type="text"],
.woocommerce-cart input[type="email"],
.woocommerce-cart input[type="tel"],
.woocommerce-cart input[type="password"],
.woocommerce-cart input[type="number"],
.woocommerce-cart textarea,
.woocommerce-cart select,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  padding: 12px !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 5px !important;
  color: #fff !important;
  transition: border-color 0.3s ease;
}

.woocommerce-cart input[type="text"]:focus,
.woocommerce-cart input[type="email"]:focus,
.woocommerce-cart input[type="tel"]:focus,
.woocommerce-cart input[type="password"]:focus,
.woocommerce-cart input[type="number"]:focus,
.woocommerce-cart textarea:focus,
.woocommerce-cart select:focus,
.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="email"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout input[type="password"]:focus,
.woocommerce-checkout input[type="number"]:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
  outline: none !important;
  border-color: #d74332 !important;
}

.woocommerce-cart label,
.woocommerce-checkout label {
  color: white;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

/* Tablas */
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
  border-collapse: collapse !important;
  margin-bottom: 30px !important;
  background-color: rgba(0, 0, 0, 0.3) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table td {
  padding: 15px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  background-color: transparent !important;
}

.woocommerce-cart table.shop_table tr:last-child td,
.woocommerce-checkout table.shop_table tr:last-child td {
  border-bottom: none !important;
}

.woocommerce-cart table.shop_table tr:hover td,
.woocommerce-checkout table.shop_table tr:hover td {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Estilos específicos para el carrito */
.woocommerce-cart .cart-collaterals {
  margin-top: 40px;
}

.woocommerce-cart .cart-collaterals h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-cart .cart_totals {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-cart .cart_totals table {
  width: 100%;
}

.woocommerce-cart .cart_totals th {
  text-align: left;
  padding: 15px 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-cart .cart_totals td {
  text-align: right;
  padding: 15px 0;
  color: #f195be;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-cart .cart_totals tr:last-child th,
.woocommerce-cart .cart_totals tr:last-child td {
  border-bottom: none;
}

.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
  width: 80px;
  height: auto;
  border-radius: 5px;
}

.woocommerce-cart .woocommerce-cart-form .product-name a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.woocommerce-cart .woocommerce-cart-form .product-name a:hover {
  color: #f195be;
}

.woocommerce-cart .woocommerce-cart-form .product-price,
.woocommerce-cart .woocommerce-cart-form .product-subtotal {
  color: #f195be;
  font-weight: 600;
}

.woocommerce-cart .woocommerce-cart-form .product-quantity .quantity input {
  width: 70px;
  text-align: center;
}

.woocommerce-cart .woocommerce-cart-form .product-remove a {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(215, 67, 50, 0.2);
  color: #d74332;
  font-weight: 700;
  transition: all 0.3s ease;
}

.woocommerce-cart .woocommerce-cart-form .product-remove a:hover {
  background-color: #d74332;
  color: #fff;
}

.woocommerce-cart .woocommerce-cart-form .actions {
  padding: 20px !important;
  background-color: rgba(0, 0, 0, 0.2) !important;
}

.woocommerce-cart .woocommerce-cart-form .actions .coupon {
  display: flex;
  gap: 10px;
}

.woocommerce-cart .woocommerce-cart-form .actions .coupon input {
  width: 200px !important;
}

.woocommerce-cart .woocommerce-cart-form .actions button[name="update_cart"] {
  float: right;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.woocommerce-cart .woocommerce-cart-form .actions button[name="update_cart"]:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.woocommerce-cart .cart-empty {
  text-align: center;
  padding: 50px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.woocommerce-cart .return-to-shop {
  text-align: center;
}

/* Estilos específicos para el checkout */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  margin-bottom: 40px;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-checkout .form-row {
  margin-bottom: 20px !important;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.woocommerce-checkout #payment {
  background-color: rgba(0, 0, 0, 0.2) !important;
  border-radius: 8px !important;
  padding: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.woocommerce-checkout #payment div.payment_box {
  background-color: rgba(0, 0, 0, 0.3) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border-radius: 5px !important;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: rgba(0, 0, 0, 0.3) !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0 0 20px !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
  line-height: 2 !important;
}

.woocommerce-checkout #payment ul.payment_methods li input {
  margin-right: 10px !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
}
.wc-block-components-form .wc-block-components-text-input label, .wc-block-components-text-input label {
	color: white !important;
}

.woocommerce-checkout #payment .place-order {
  margin-top: 20px !important;
  padding: 20px 0 0 !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 20px !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px !important;
}

.woocommerce-checkout #place_order {
  width: 100% !important;
  padding: 15px !important;
  font-size: 16px !important;
}

/* Checkout de dos columnas */
@media (min-width: 768px) {
  .woocommerce-checkout .col2-set {
    display: flex;
    gap: 30px;
  }

  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 {
    flex: 1;
    max-width: 100%;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order {
    width: 40%;
    float: right;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table {
    margin-bottom: 30px !important;
  }
}

/* Carrito vacío */
.woocommerce-cart .cart-empty.woocommerce-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
}

.woocommerce-cart .cart-empty.woocommerce-info::before {
  content: "\e03d";
  font-family: WooCommerce;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
  position: static;
  height: auto;
  width: auto;
}

/* Página de confirmación de pedido */
.woocommerce-order-received .woocommerce-order {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-order-received .woocommerce-notice--success {
  font-size: 24px;
  color: #5cb85c;
  margin-bottom: 30px;
  text-align: center;
}

.woocommerce-order-received .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce-order-received .woocommerce-order-overview li {
  flex: 1;
  min-width: 200px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.woocommerce-order-received .woocommerce-order-overview li strong {
  display: block;
  margin-top: 5px;
  color: #f195be;
  font-size: 18px;
}

.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
  margin-top: 40px;
}

.woocommerce-order-received .woocommerce-order-details h2,
.woocommerce-order-received .woocommerce-customer-details h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-order-received .woocommerce-table--order-details {
  margin-bottom: 30px !important;
}

.woocommerce-order-received .woocommerce-customer-details address {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px !important;
  padding: 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce-cart .woocommerce-cart-form .actions {
    flex-direction: column;
  }

  .woocommerce-cart .woocommerce-cart-form .actions .coupon {
    margin-bottom: 15px;
    width: 100%;
  }

  .woocommerce-cart .woocommerce-cart-form .actions .coupon input {
    width: 100% !important;
  }

  .woocommerce-cart .woocommerce-cart-form .actions button[name="update_cart"] {
    float: none;
    width: 100%;
  }

  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce-order-received .woocommerce-order-overview {
    flex-direction: column;
  }

  .woocommerce-order-received .woocommerce-order-overview li {
    width: 100%;
    margin-right: 0 !important;
    border-right: none !important;
  }
}

/* Ajustes para dispositivos móviles */
@media (max-width: 480px) {
  .woocommerce-cart table.shop_table_responsive tr td::before,
  .woocommerce-checkout table.shop_table_responsive tr td::before {
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .woocommerce-cart .woocommerce-cart-form .product-thumbnail {
    display: none;
  }

  .woocommerce-cart .woocommerce-cart-form .product-remove {
    width: 100%;
    text-align: right !important;
  }

  .woocommerce-cart .woocommerce-cart-form .actions .coupon {
    flex-direction: column;
  }

  .woocommerce-cart .woocommerce-cart-form .actions .coupon .button {
    width: 100% !important;
    margin-top: 10px;
  }
}
