/* Canvas Customizer Frontend Styles */

/* Universal box-sizing */
.tcc-modal *,
.tcc-modal *::before,
.tcc-modal *::after {
  box-sizing: border-box;
}

/* Customize Button */
.tcc-customize-btn {
  box-sizing: border-box;
  margin: 10px 0;
}

/* Modal Overlay */
.tcc-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tcc-modal-overlay.active {
  display: flex;
}

/* Loading State */
.tcc-loading {
  color: #fff;
  font-size: 18px;
  text-align: center;
}

/* Modal Container */
.tcc-modal {
  background: #fff;
  width: 1200px;
  height: 700px;
  max-width: 95vw;
  max-height: 95vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

/* Modal Close Button */
.tcc-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  border: 2px solid #000;
  font-size: 24px;
  color: #000;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  line-height: 1;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 50%;
}

.tcc-modal-close:hover {
  background: #000;
  color: #fff;
  transform: rotate(90deg);
}

/* Modal Body */
.tcc-modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
}

/* Customizer Layout - 50/50 Split */
.tcc-customizer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
}

/* Preview Section - LEFT 50% */
.tcc-preview-section {
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-right: 1px solid #e5e5e5;
}

.tcc-preview-image {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tcc-canvas-preview {
  position: relative;
  width: 500px;
  height: 500px;
  max-width: 100%;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.15));
}

.tcc-canvas-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tcc-layer-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

/* Options Section - RIGHT 50% */
.tcc-options-section {
  background: #fff;
  padding: 30px 35px 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Scrollable options area */
.tcc-options-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 20px;
  margin-bottom: 120px;
  /* Space for fixed footer */
  padding-right: 10px;
  /* Space for scrollbar */
  /* Modern minimal scrollbar for WebKit browsers (Chrome, Safari, Edge) */
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  /* Firefox */
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
}

/* WebKit scrollbar styling (Chrome, Safari, Edge, Opera) */
.tcc-options-content::-webkit-scrollbar {
  width: 8px;
  display: block;
}

.tcc-options-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.tcc-options-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.tcc-options-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

.tcc-options-content::-webkit-scrollbar-thumb:active {
  background: rgba(0, 0, 0, 0.5);
}

/* Product Title */
.tcc-product-title {
  margin: 0 0 15px 0;
  font-size: 24px;
  font-weight: 700;
  color: #1d2327;
}

/* Price Display */
.tcc-price-display {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.tcc-price-label {
  font-size: 14px;
  color: #666;
  margin-right: 10px;
}

.tcc-price-value {
  font-size: 28px;
  font-weight: 700;
  color: #2271b1;
}

/* Options List */
.tcc-options-list {
  flex: 1;
}

/* Field Group */
.tcc-field-group {
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.tcc-field-group.tcc-hidden {
  display: none;
}

/* Value Image Display */
.tcc-value-image-display {
  margin: 15px 0 25px 0;
  padding: 10px;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  display: inline-block;
}

.tcc-value-image-display img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.tcc-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tcc-field-required {
  color: #e60000;
}

.tcc-field-description {
  font-size: 13px;
  color: #666;
  font-style: italic;
  margin: -8px 0 12px 0;
}

/* Option Values */
.tcc-option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Radio and Checkbox Options */
.tcc-option-type-radio .tcc-option-value-label,
.tcc-option-type-checkbox .tcc-option-value-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #f0f0f1;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.tcc-option-type-radio .tcc-option-value-label:hover,
.tcc-option-type-checkbox .tcc-option-value-label:hover {
  background: #e8e8e9;
  border-color: #999;
}

.tcc-option-type-radio .tcc-option-value-label input[type="radio"],
.tcc-option-type-checkbox .tcc-option-value-label input[type="checkbox"] {
  margin: 0;
}

.tcc-option-type-radio .tcc-option-value-label:has(input:checked),
.tcc-option-type-checkbox .tcc-option-value-label:has(input:checked) {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

/* Text Input */
.tcc-option-type-text {
  display: block;
}

.tcc-text-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tcc-text-input:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Dropdown Select */
.tcc-dropdown-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #1d2327 !important;
  background-color: #fff !important;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  line-height: normal;
  height: auto;
  min-height: 44px;
}

.tcc-dropdown-select:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
  color: #1d2327 !important;
}

.tcc-dropdown-select:hover {
  border-color: #999;
}

.tcc-dropdown-select option {
  padding: 10px;
  color: #1d2327 !important;
  background-color: #fff !important;
}

.tcc-dropdown-select:invalid {
  color: #757575 !important;
}

.tcc-dropdown-select:valid {
  color: #1d2327 !important;
}

/* Image Swatch Options */
.tcc-option-type-image_swatch {
  display: block;
}

.tcc-image-swatches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.tcc-image-swatch-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Tooltip popup - hidden by default */
.tcc-swatch-tooltip-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 10000;
}

/* Show tooltip on hover - default (above) */
.tcc-image-swatch-item:hover .tcc-swatch-tooltip-popup {
  opacity: 1;
  visibility: visible;
}

.tcc-color-swatch-item:hover .tcc-color-tooltip-popup {
  opacity: 1;
  visibility: visible;
}

/* ===== Side-positioned tooltips (for edge items) ===== */

/* Show tooltip on the LEFT side of swatch (used when swatch is near right edge) */
.tcc-swatch-tooltip-popup.tooltip-side-left,
.tcc-color-tooltip-popup.tooltip-side-left {
  bottom: auto;
  top: 50%;
  left: auto;
  right: calc(100% + 12px);
  transform: translateY(-50%);
  margin-bottom: 0;
}

/* Arrow pointing RIGHT (tooltip is on the left, arrow points to swatch) */
.tcc-swatch-tooltip-popup.tooltip-side-left .tcc-swatch-tooltip-content::after,
.tcc-color-tooltip-popup.tooltip-side-left .tcc-color-tooltip-content::after {
  top: 50%;
  left: 100%;
  bottom: auto;
  right: auto;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left-color: #2271b1;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.tcc-swatch-tooltip-popup.tooltip-side-left .tcc-swatch-tooltip-content::before,
.tcc-color-tooltip-popup.tooltip-side-left .tcc-color-tooltip-content::before {
  top: 50%;
  left: 100%;
  bottom: auto;
  right: auto;
  transform: translateY(-50%);
  margin-top: 0;
  margin-left: -2px;
  border: 9px solid transparent;
  border-left-color: #fff;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

/* Show tooltip on the RIGHT side of swatch (used when swatch is near left edge) */
.tcc-swatch-tooltip-popup.tooltip-side-right,
.tcc-color-tooltip-popup.tooltip-side-right {
  bottom: auto;
  top: 50%;
  left: calc(100% + 12px);
  right: auto;
  transform: translateY(-50%);
  margin-bottom: 0;
}

/* Arrow pointing LEFT (tooltip is on the right, arrow points to swatch) */
.tcc-swatch-tooltip-popup.tooltip-side-right .tcc-swatch-tooltip-content::after,
.tcc-color-tooltip-popup.tooltip-side-right .tcc-color-tooltip-content::after {
  top: 50%;
  left: auto;
  right: 100%;
  bottom: auto;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-right-color: #2271b1;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.tcc-swatch-tooltip-popup.tooltip-side-right .tcc-swatch-tooltip-content::before,
.tcc-color-tooltip-popup.tooltip-side-right .tcc-color-tooltip-content::before {
  top: 50%;
  left: auto;
  right: 100%;
  bottom: auto;
  transform: translateY(-50%);
  margin-top: 0;
  margin-right: -2px;
  border: 9px solid transparent;
  border-right-color: #fff;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

/* Tooltip content */
.tcc-swatch-tooltip-content {
  background: #fff;
  border: 2px solid #2271b1;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  min-width: 150px;
  max-width: 220px;
  position: relative;
  white-space: normal;
}

/* Tooltip arrow pointing down */
.tcc-swatch-tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #2271b1;
}

.tcc-swatch-tooltip-content::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -2px;
  border: 9px solid transparent;
  border-top-color: #fff;
  z-index: 1;
}

/* Tooltip preview image */
.tcc-tooltip-preview-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #f8f9fa;
  display: block;
  padding: 8px;
}

/* Tooltip label */
.tcc-tooltip-label {
  padding: 8px 10px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #1d2327;
  text-align: center;
  background: #fff;
}

/* Tooltip price */
.tcc-tooltip-price {
  padding: 0 10px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #27ae60;
  text-align: center;
  background: #fff;
}

.tcc-swatch-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tcc-swatch-preview {
  position: relative;
  width: 40px;
  height: 40px;
  border: 2px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tcc-image-swatch-item:hover .tcc-swatch-preview {
  border-color: #999;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tcc-swatch-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tcc-image-swatch-item:hover .tcc-swatch-image {
  transform: scale(1.05);
}

.tcc-swatch-placeholder {
  font-size: 14px;
  font-weight: 700;
  color: #999;
}

.tcc-swatch-checkmark {
  display: none;
}

.tcc-swatch-radio:checked~.tcc-swatch-preview {
  border-color: #2271b1;
  border-width: 3px;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.3);
}

.tcc-swatch-label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: #333;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tcc-swatch-radio:checked~.tcc-swatch-label {
  color: #2271b1;
  font-weight: 600;
}

.tcc-swatch-price {
  font-size: 11px;
  color: #27ae60;
  font-weight: 600;
  text-align: center;
  margin-top: 2px;
}

.tcc-swatch-radio:checked~.tcc-swatch-price {
  color: #2271b1;
}

/* Old swatch styles - keeping for backward compatibility */
.tcc-swatch-label.old-style {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: #f0f0f1;
  border: 3px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

/* Legacy support for old class names */
.tcc-option-value-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #f0f0f1;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

/* Color Swatch Styles */
.tcc-color-swatches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.tcc-color-swatch-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tcc-color-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tcc-color-preview {
  position: relative;
  width: 40px;
  height: 40px;
  border: 2px solid #ddd;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tcc-color-swatch-item:hover .tcc-color-preview {
  border-color: #999;
  transform: translateY(-2px) scale(1.1);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tcc-color-checkmark {
  display: none;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.tcc-color-radio:checked~.tcc-color-preview {
  border-color: #2271b1;
  border-width: 3px;
  box-shadow:
    0 0 0 2px rgba(34, 113, 177, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tcc-color-radio:checked~.tcc-color-preview .tcc-color-checkmark {
  display: block;
}

/* Color tooltip popup */
.tcc-color-tooltip-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 10000;
}

.tcc-color-tooltip-content {
  background: #fff;
  border: 2px solid #2271b1;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  min-width: 150px;
  position: relative;
  white-space: nowrap;
  padding: 12px;
}

.tcc-color-tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #2271b1;
}

.tcc-color-tooltip-content::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -2px;
  border: 9px solid transparent;
  border-top-color: #fff;
  z-index: 1;
}


.tcc-color-sample {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin: 0 auto 10px;
  border: 2px solid #ddd;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tcc-color-tooltip-content .tcc-tooltip-label {
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1d2327;
  text-align: center;
  margin-bottom: 5px;
}

.tcc-color-tooltip-content .tcc-tooltip-price {
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: #27ae60;
  text-align: center;
}

.tcc-option-value-label:hover {
  background: #e8e8e9;
  border-color: #999;
}

.tcc-option-value-label input[type="radio"] {
  margin: 0;
}

.tcc-option-value-label:has(input[type="radio"]:checked) {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

.tcc-option-text {
  font-weight: 500;
}

.tcc-price-modifier {
  font-size: 13px;
  color: #27ae60;
  font-weight: 600;
  margin-left: 5px;
}

.tcc-option-value-label:has(input[type="radio"]:checked) .tcc-price-modifier {
  color: #fff;
}

/* Modal Footer */
.tcc-modal-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 20px 35px;
  border-top: 2px solid #e0e0e0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

/* Price Display in Footer */
.tcc-modal-footer .tcc-price-display {
  margin: 0 0 15px 0;
  padding: 0;
  border: none;
}

/* Policy Section */
.tcc-policy-section {
  margin: 30px 0 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.tcc-policy-text {
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.tcc-policy-text::-webkit-scrollbar {
  width: 6px;
}

.tcc-policy-text::-webkit-scrollbar-track {
  background: transparent;
}

.tcc-policy-text::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.tcc-policy-text p {
  margin: 0 0 10px 0;
}

.tcc-policy-text p:last-child {
  margin-bottom: 0;
}

.tcc-policy-agreement {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
  padding: 12px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tcc-policy-agreement:hover {
  border-color: #2271b1;
  background: #f0f6fc;
}

.tcc-policy-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  accent-color: #2271b1;
}

.tcc-policy-agreement span {
  flex: 1;
  line-height: 1.5;
}

.tcc-add-to-cart-btn {
  width: 100%;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tcc-add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
  .tcc-modal {
    width: 95vw;
    height: 90vh;
  }

  .tcc-customizer-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 300px 1fr;
  }

  .tcc-preview-section {
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px;
  }

  .tcc-canvas-preview {
    width: 300px;
    height: 300px;
  }

  .tcc-options-section {
    padding: 25px 30px 0;
  }

  .tcc-options-content {
    margin-bottom: 130px;
    /* Adjust for tablet footer */
  }

  .tcc-modal-footer {
    padding: 18px 30px;
  }
}

@media (max-width: 768px) {
  .tcc-modal {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .tcc-modal-overlay {
    padding: 0;
  }

  .tcc-customizer-layout {
    grid-template-rows: 250px 1fr;
  }

  .tcc-canvas-preview {
    width: 250px;
    height: 250px;
  }

  .tcc-options-section {
    padding: 20px 20px 0;
  }

  .tcc-options-content {
    margin-bottom: 140px;
    /* Slightly more space on mobile */
  }

  .tcc-modal-footer {
    padding: 15px 20px;
  }

  .tcc-product-title {
    font-size: 20px;
  }

  .tcc-price-value {
    font-size: 24px;
  }

  .tcc-option-values {
    flex-direction: column;
  }

  .tcc-option-value-label {
    width: 100%;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.tcc-modal-overlay.active {
  animation: fadeIn 0.3s ease;
}

/* Responsive adjustments for image swatches */
@media screen and (max-width: 768px) {
  .tcc-swatch-preview {
    width: 38px;
    height: 38px;
  }
}

@media screen and (max-width: 480px) {
  .tcc-swatch-preview {
    width: 36px;
    height: 36px;
  }
}