





/* تنسيق صندوق الشراء */
.buy-box {
  margin-top: 16px;
  width: 100%;
}

/* تنسيق نموذج المنتج */
.variations_form {
  width: 100%;
}

/* تنسيق جدول الخيارات */
table.variations {
  width: 100%;
  margin-bottom: 15px;
  border-collapse: collapse;
}

table.variations tr {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

table.variations th.label {
  display: block;
  padding: 0;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  text-align: right;
}

table.variations th.label label {
  font-weight: 700;
}

.woo-selected-variation-item-name {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 8px;
}

table.variations td.value {
  display: block;
  padding: 0;
  position: relative;
}

/* تنسيق أزرار الخيارات */
.variable-items-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.variable-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.variable-item:hover {
  border-color: #0f172a;
  background: #f8fafc;
  transform: translateY(-1px);
}

.variable-item.selected {
  background: #0f172a;
  border-color: #0f172a;
  color: white;
}

.variable-item .emoji {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: middle;
  display: inline-block;
}

/* تنسيق زر إزالة */
.reset_variations {
  display: inline-block;
  margin: 5px 0 0;
  font-size: 12px;
  color: #ef4444;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  background: #fef2f2;
  border-radius: 20px;
  border: 1px solid #fee2e2;
}

.reset_variations:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* تنسيق صندوق إدخال Player ID */
#matrix_player_id {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  color: #111827;
  transition: all 0.15s ease;
  margin-top: 5px;
}

#matrix_player_id:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

#matrix_player_id.error {
  border-color: #ef4444;
}

/* تنسيق نتيجة التحقق */
#matrix_player_result {
  margin-top: 10px;
}

#matrix_player_result div[style*="background: linear-gradient"] {
  padding: 12px 15px;
  border-radius: 10px;
}

#matrix_player_result .nickname-display {
  font-size: 20px;
  font-weight: 800;
  color: #065f46;
  margin-top: 2px;
}

/* تنسيق زر الإضافة والشراء */
.single_add_to_cart_button,
#sbw_wc-adding-button {
  width: 100%;
  padding: 14px 20px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 10px;
  border: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* زر إضافة إلى السلة */
.single_add_to_cart_button {
  background: #0f172a;
  color: white;
  border: 1px solid #0f172a;
}

.single_add_to_cart_button:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);
}

.single_add_to_cart_button:active {
  transform: translateY(0);
}

/* زر اشتر الآن */
#sbw_wc-adding-button {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #0f172a;
}

#sbw_wc-adding-button:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

#sbw_wc-adding-button svg {
  width: 16px;
  height: 16px;
}

/* تنسيق السعر المتغير */
.woocommerce-variation-price {
  margin: 15px 0;
  padding: 12px 15px;
  background: #f3f4f6;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.woocommerce-variation-price .price {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 5px;
}

.woocommerce-variation-price .price .woocommerce-Price-amount {
  font-size: 22px;
}

/* تنسيق حقل الكمية المخفي */
.quantity[style*="display: none"] {
  display: none !important;
}

/* تنسيق رسالة التحقق */
#matrix_player_result span[style*="color: #666"] {
  display: block;
  padding: 10px;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 13px;
  color: #4b5563;
  text-align: center;
  border: 1px solid #e5e7eb;
}

/* تحسينات للهاتف */
@media (max-width: 768px) {
  .variable-item {
    min-width: 50px;
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .single_add_to_cart_button,
  #sbw_wc-adding-button {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .woocommerce-variation-price .price {
    font-size: 18px;
  }
  
  .woocommerce-variation-price .price .woocommerce-Price-amount {
    font-size: 20px;
  }
  
  #matrix_player_id {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .variable-items-wrapper {
    gap: 5px;
  }
  
  .variable-item {
    min-width: 45px;
    padding: 5px 8px;
    font-size: 11px;
  }
  
  .reset_variations {
    width: 100%;
    text-align: center;
  }
}
