.wc-product-options-pro-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background: #f9f9f9;
    position: relative;
}

.wc-product-options-pro-title {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

.wc-product-options-field {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.wc-product-options-field:hover {
    border-color: #2271b1;
}

.wc-product-options-field.required {
    border-left: 4px solid #ffb900;
}

.wc-product-options-field.validation-error {
    border-color: #e2401c;
    background-color: #fff5f5;
    border-left: 4px solid #e2401c;
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.field-header label {
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
}

.required {
    color: #e2401c;
}

.field-price {
    color: #2271b1;
    font-weight: bold;
}

.wc-product-options-input,
.wc-product-options-textarea,
.wc-product-options-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.wc-product-options-input:focus,
.wc-product-options-textarea:focus,
.wc-product-options-select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 5px rgba(34, 113, 177, 0.3);
}

.wc-product-options-field.validation-error .wc-product-options-input,
.wc-product-options-field.validation-error .wc-product-options-textarea,
.wc-product-options-field.validation-error .wc-product-options-select {
    border-color: #e2401c;
    background-color: #fff5f5;
}

.wc-product-options-textarea {
    resize: vertical;
    min-height: 100px;
}

.wc-product-options-radio-group,
.wc-product-options-checkbox {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wc-product-options-radio-option,
.wc-product-options-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-product-options-radio-option input[type="radio"],
.wc-product-options-checkbox input[type="checkbox"] {
    margin: 0;
}

.field-description {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.file-description {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.wc-product-options-pro-price-summary {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #2271b1;
}

.price-breakdown {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.price-item {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.total-price {
    font-size: 16px;
    color: #333;
}

.additional-price {
    color: #2271b1;
}

.wc-product-options-validation-error {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff5f5;
    border-left: 4px solid #e2401c;
    border-radius: 4px;
}

.wc-product-options-validation-error ul {
    margin: 0;
    padding-left: 20px;
}

.wc-product-options-validation-error li {
    color: #e2401c;
    font-weight: bold;
}

/* تحسين التجاوب */
@media (max-width: 768px) {
    .wc-product-options-pro-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .wc-product-options-field {
        padding: 12px;
    }
    
    .field-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .field-price {
        font-size: 14px;
    }
}



/* Swatches (Colors/Images) */
.wcpo-swatch-group{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;}
.wcpo-swatch-option{display:flex;flex-direction:column;align-items:center;cursor:pointer;user-select:none;}
.wcpo-swatch-option input{position:absolute;opacity:0;width:0;height:0;}
.wcpo-swatch{width:36px;height:36px;border:1px solid rgba(0,0,0,0.2);border-radius:10px;box-sizing:border-box;background-size:cover;background-position:center;}
.wcpo-swatch-option input:checked + .wcpo-swatch{outline:2px solid currentColor;outline-offset:2px;}
.wcpo-swatch-label{margin-top:6px;font-size:12px;line-height:1.2;text-align:center;max-width:72px;}


/* =========================
   Swatches (Colors / Images)
   ========================= */
.wc-product-options-swatch-group{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.wc-product-options-swatch-option{
  display:inline-flex;
}
.wc-product-options-swatch-input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.wc-product-options-swatch-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  user-select:none;
  padding:6px 10px;
  border:1px solid #e4c7b7;
  border-radius:8px;
  background:#fff;
}
.wc-product-options-swatch-chip{
  width:22px;
  height:22px;
  border-radius:6px;
  border:1px solid rgba(0,0,0,.08);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.wc-product-options-swatch-input:checked + .wc-product-options-swatch-label{
  outline:2px solid #6b4b4b;
  outline-offset:2px;
}
