/* Container & Full Width Override */
.ys-checkout-wrapper,
.ys-standard-checkout-form,
.ys-standard-checkout-form form.checkout,
.ys-standard-checkout-form .col2-set,
.ys-standard-checkout-form .col-1,
.ys-standard-checkout-form .col-2,
.ys-standard-checkout-form .woocommerce-billing-fields,
.ys-standard-checkout-form .woocommerce-billing-fields__field-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ys-checkout-wrapper {
  position: relative;
  padding: 0;
}

.ys-checkout-wrapper.ys-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Product Cards Grid */
.ys-products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  width: 100% !important;
}

.ys-product-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  background: #ffffff;
  flex: 1 1 calc(50% - 15px);
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease-in-out;
}

.ys-product-card.active-product {
  border: 2px solid #22c55e;
  background: #f0fdf4;
}

.ys-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ys-product-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
}

.ys-product-details {
  flex: 1;
}

.ys-product-title {
  font-size: 15px;
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #1e293b;
}

.ys-qty-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.ys-quantity-controls {
  display: flex;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.ys-qty-btn {
  border: none;
  background: #f8fafc;
  padding: 2px 10px;
  cursor: pointer;
  font-weight: bold;
  color: #475569;
}

.ys-qty-btn:hover {
  background: #e2e8f0;
}

.ys-qty-input {
  width: 32px;
  text-align: center;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.ys-product-price {
  font-weight: 700;
  color: #0f172a;
}

.ys-swatches-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.ys-swatch-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.ys-swatch-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ys-swatch-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s ease;
}

.ys-swatch-btn.active {
  border-color: #ef4444;
  color: #ef4444;
  font-weight: 700;
  background: #fef2f2;
}

/* Form Controls & Inputs Full Width */
.ys-standard-checkout-form .form-row {
  width: 100% !important;
  float: none !important;
  margin-bottom: 15px !important;
  display: block !important;
}

.ys-standard-checkout-form .woocommerce-billing-fields input[type="text"],
.ys-standard-checkout-form .woocommerce-billing-fields input[type="tel"],
.ys-standard-checkout-form .woocommerce-billing-fields input[type="email"],
.ys-standard-checkout-form .woocommerce-billing-fields select,
.ys-standard-checkout-form .woocommerce-billing-fields textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  display: block !important;
  outline: none !important;
}

/* Order Summary Table & Place Order */
.ys-standard-checkout-form table.shop_table {
  width: 100% !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  overflow: hidden;
  margin-top: 20px !important;
}

.ys-standard-checkout-form table.shop_table td.product-name {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.ys-standard-checkout-form table.shop_table td.product-name img {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  display: inline-block !important;
  margin: 0 !important;
}

.ys-standard-checkout-form #place_order {
  background-color: #2563eb !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 12px 24px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  width: 100% !important;
  cursor: pointer;
  border: none !important;
}
