/* T-shirt order form - cheap-t-shirt-printing */

#ccf-isolated-container.ccf-loading {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#ccf-isolated-container .ccf-style-select-wrap {
  position: relative;
}

#ccf-isolated-container .ccf-style-arrow {
  position: absolute;
  left: -36px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateY(-50%);
  opacity: 0.95;
  pointer-events: none;
  animation: ccfStyleArrowFloat 1.7s ease-in-out infinite;
}

#ccf-isolated-container .ccf-style-arrow-shaft {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0) 0%, #3b82f6 45%, #60a5fa 100%);
}

#ccf-isolated-container .ccf-style-arrow-head {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #60a5fa;
}

#ccf-isolated-container .ccf-style-arrow.is-hidden {
  opacity: 0;
  animation: none;
}

@keyframes ccfStyleArrowFloat {
  0% { transform: translateY(-50%) translateX(0); opacity: 0.85; }
  50% { transform: translateY(-50%) translateX(7px); opacity: 1; }
  100% { transform: translateY(-50%) translateX(0); opacity: 0.85; }
}

#ccf-isolated-container .ccf-color-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 0.5rem;
  padding: 10px;
}

#ccf-isolated-container .ccf-color-option {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

#ccf-isolated-container .ccf-color-option:hover {
  transform: scale(1.08);
  border-color: #3b82f6;
}

#ccf-isolated-container .ccf-color-option.active {
  border-color: #3b82f6;
  transform: scale(1.1);
}

#ccf-isolated-container .ccf-color-option.disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

#ccf-isolated-container .ccf-style-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 0.5rem;
  overflow-x: auto;
}

#ccf-isolated-container .ccf-style-options-line-break {
  display: none;
}

#ccf-isolated-container .ccf-style-btn {
  background-color: #f3f4f6;
  color: #4a5c79;
  padding: 0.5rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

#ccf-isolated-container .ccf-style-btn:hover {
  background-color: #e5e7eb;
}

#ccf-isolated-container .ccf-style-btn.active {
  background-color: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

#ccf-isolated-container .ccf-style-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

#ccf-isolated-container .ccf-quantity-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 1rem;
}

#ccf-isolated-container .ccf-quantity-item label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  #ccf-isolated-container .ccf-style-options {
    flex-wrap: wrap;
  }
  #ccf-isolated-container .ccf-style-options-line-break {
    display: block;
    flex-basis: 100%;
    height: 0;
  }
}

@media (max-width: 640px) {
  #ccf-isolated-container .ccf-style-arrow {
    left: -24px;
  }
}
