
/* Image preview overlay */
.cc_mk3yghcw_product_detail_reviews .kombos-image-preview, .cc_mk3yghcw_product_detail_option_set .kombos-image-preview {
  position: fixed;
  inset: 0;
  z-index: var(--kombos-z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.cc_mk3yghcw_product_detail_reviews .kombos-image-preview--open, .cc_mk3yghcw_product_detail_option_set .kombos-image-preview--open {
  opacity: 1;
}

/* Close button */
.cc_mk3yghcw_product_detail_reviews .kombos-image-preview__close, .cc_mk3yghcw_product_detail_option_set .kombos-image-preview__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--kombos-white);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--kombos-gray-900);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.15s;
}

.cc_mk3yghcw_product_detail_reviews .kombos-image-preview__close:hover, .cc_mk3yghcw_product_detail_option_set .kombos-image-preview__close:hover {
  background: var(--kombos-gray-50);
}

/* Preview image */
.cc_mk3yghcw_product_detail_reviews .kombos-image-preview__img, .cc_mk3yghcw_product_detail_option_set .kombos-image-preview__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  cursor: default;
}

/* ===== Textarea Sub-Component ===== */

/* --- Base --- */
.cc_mk3yghcw_product_detail_reviews .kombos-textarea, .cc_mk3yghcw_product_detail_option_set .kombos-textarea {
  display: flex;
  border: 1px solid var(--kombos-gray-200);
  border-radius: 6px;
  background: var(--kombos-white);
  transition: border-color 0.15s ease;
  width: 100%;
}

.cc_mk3yghcw_product_detail_reviews .kombos-textarea:hover, .cc_mk3yghcw_product_detail_option_set .kombos-textarea:hover {
  border-color: var(--kombos-gray-300);
}

.cc_mk3yghcw_product_detail_reviews .kombos-textarea:focus-within, .cc_mk3yghcw_product_detail_option_set .kombos-textarea:focus-within {
  border-color: var(--kombos-gray-900);
}

/* --- Sizes --- */
.cc_mk3yghcw_product_detail_reviews .kombos-textarea--s, .cc_mk3yghcw_product_detail_option_set .kombos-textarea--s {
  padding: 0.5625rem 0.8125rem;
}

.cc_mk3yghcw_product_detail_reviews .kombos-textarea--xs, .cc_mk3yghcw_product_detail_option_set .kombos-textarea--xs {
  padding: 0.4375rem 0.75rem;
}

/* --- Native textarea --- */
.cc_mk3yghcw_product_detail_reviews .kombos-textarea__native, .cc_mk3yghcw_product_detail_option_set .kombos-textarea__native {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--kombos-gray-900);
  padding: 0;
  resize: vertical;
  min-height: 5rem;
}

.cc_mk3yghcw_product_detail_reviews .kombos-textarea__native::placeholder, .cc_mk3yghcw_product_detail_option_set .kombos-textarea__native::placeholder {
  color: var(--kombos-gray-400);
}

/* --- Status (standalone + inherited from FormItem) --- */
.kombos-textarea[data-state="error"],
.cc_mk3yghcw_product_detail_reviews [data-state="error"] .kombos-textarea, .cc_mk3yghcw_product_detail_option_set [data-state="error"] .kombos-textarea {
  border-color: var(--kombos-error);
}

.kombos-textarea[data-state="error"]:hover,
.kombos-textarea[data-state="error"]:focus-within,
[data-state="error"] .kombos-textarea:hover,
.cc_mk3yghcw_product_detail_reviews [data-state="error"] .kombos-textarea:focus-within, .cc_mk3yghcw_product_detail_option_set [data-state="error"] .kombos-textarea:focus-within {
  border-color: var(--kombos-error);
}

.kombos-textarea[data-state="success"],
.cc_mk3yghcw_product_detail_reviews [data-state="success"] .kombos-textarea, .cc_mk3yghcw_product_detail_option_set [data-state="success"] .kombos-textarea {
  border-color: var(--kombos-success);
}

.kombos-textarea[data-state="success"]:hover,
.kombos-textarea[data-state="success"]:focus-within,
[data-state="success"] .kombos-textarea:hover,
.cc_mk3yghcw_product_detail_reviews [data-state="success"] .kombos-textarea:focus-within, .cc_mk3yghcw_product_detail_option_set [data-state="success"] .kombos-textarea:focus-within {
  border-color: var(--kombos-success);
}

/* --- Disabled state --- */
.cc_mk3yghcw_product_detail_reviews .kombos-textarea--disabled, .cc_mk3yghcw_product_detail_option_set .kombos-textarea--disabled {
  background: var(--kombos-gray-50);
  border-color: var(--kombos-gray-200);
  pointer-events: none;
}

.kombos-textarea--disabled .kombos-textarea__native,
.cc_mk3yghcw_product_detail_reviews .kombos-textarea--disabled .kombos-textarea__native::placeholder, .cc_mk3yghcw_product_detail_option_set .kombos-textarea--disabled .kombos-textarea__native::placeholder {
  color: var(--kombos-gray-300);
}
