/* Store Inline Panel - Variable Product Options Styling */

/* Variations form styling */
.pc-extras-body .variations_form {
  margin: 0;
}

.pc-extras-body .variations {
  margin-bottom: 15px;
}

.pc-extras-body .variations tr {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.pc-extras-body .variations .label {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: #333;
}

.pc-extras-body .variations .label label {
  margin: 0;
  font-weight: 600;
}

.pc-extras-body .variations .value {
  width: 100%;
}

.pc-extras-body .variations select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background-color: #f8f8f8;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pc-extras-body .variations select:focus {
  outline: none;
  border-color: #f54748;
  background-color: #fff;
}

.pc-extras-body .variations select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pc-extras-body .reset_variations {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f8f8f8;
  transition: background-color 0.2s;
}

.pc-extras-body .reset_variations:hover {
  background-color: #e9ecef;
  text-decoration: none;
  color: #333;
}

/* Quantity section */
.pc-extras-body h6 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Quantity row - flex layout with item label left, controls right */
.pc-extras-body .d-flex.align-items-center.mb-3 {
  display: flex !important;
  justify-content: space-between;
  width: 100%;
}

/* Quantity selector - matches cart style */
.pc-qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.pc-qty-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 400;
  color: #f54748;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.pc-qty-btn:hover {
  background-color: #fef2f2;
}

.pc-qty-btn:active {
  background-color: #fee2e2;
}

.pc-qty-input {
  border: none !important;
  border-left: 1px solid #ddd !important;
  border-right: 1px solid #ddd !important;
  text-align: center;
  width: 40px;
  height: 36px;
  padding: 0;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
}

.pc-qty-label {
  font-size: 14px;
  color: #666;
}

/* Legacy support */
.pc-extras-body .count-number {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.pc-extras-body .count-number button {
  background-color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.pc-extras-body .count-number button:hover {
  background-color: #f8f8f8;
}

.pc-extras-body .count-number-input {
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  width: 60px;
  padding: 8px 5px;
  background-color: #fff;
  font-weight: 600;
}

/* Add to Cart button */
.pc-extras-body .add_to_cart_modal {
  background-color: #f54748 !important;
  color: white !important;
  border: none !important;
  padding: 12px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: opacity 0.2s;
  cursor: pointer;
}

.pc-extras-body .add_to_cart_modal:hover {
  opacity: 0.9;
}

.pc-extras-body .add_to_cart_modal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pc-extras-body .single_variation_wrap {
  margin-top: 15px;
  margin-bottom: 10px;
}

.pc-extras-body .single_variation {
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.pc-extras-body .woocommerce-variation-price {
  margin-bottom: 10px;
}

.pc-extras-body .woocommerce-variation-price .price {
  font-size: 20px;
  font-weight: 700;
  color: #f54748;
}

.pc-extras-body .woocommerce-variation-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.pc-extras-body .stock {
  font-weight: 600;
}

.pc-extras-body .stock.in-stock {
  color: #28a745;
}

.pc-extras-body .stock.out-of-stock {
  color: #dc3545;
}

/* Loading message */
.pc-extras-body > p {
  padding: 15px;
  color: #666;
  font-size: 14px;
  text-align: center;
  margin: 0;
}

/* Hide WooCommerce default add to cart button - we're using our custom one */
.pc-extras-body .single_add_to_cart_button {
  display: none !important;
}

/* Responsive */
@media (max-width: 576px) {
  .pc-extras-body .variations select {
    font-size: 16px;
  }
}
