/**
 * Card Customizer Pro - Styles
 * Version: 2.0
 * RTL Hebrew Support
 */

/* ==============================================
   EA SPORTS CRUYFF SANS FONT - ALL WEIGHTS
   ============================================== */

@font-face {
  font-family: "EA Sports Cruyff Sans";
  src:
    url("../fonts/CruyffSans-Light.woff2") format("woff2"),
    url("../fonts/CruyffSans-Light.woff") format("woff"),
    url("../fonts/CruyffSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EA Sports Cruyff Sans";
  src:
    url("../fonts/CruyffSans-Regular.woff2") format("woff2"),
    url("../fonts/CruyffSans-Regular.woff") format("woff"),
    url("../fonts/CruyffSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EA Sports Cruyff Sans";
  src:
    url("../fonts/CruyffSans-Medium.woff2") format("woff2"),
    url("../fonts/CruyffSans-Medium.woff") format("woff"),
    url("../fonts/CruyffSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EA Sports Cruyff Sans";
  src:
    url("../fonts/CruyffSans-Bold.woff2") format("woff2"),
    url("../fonts/CruyffSans-Bold.woff") format("woff"),
    url("../fonts/CruyffSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- EA Sports Cruyff Sans Mono --- */

@font-face {
  font-family: "EA Sports Cruyff Sans Mono";
  src:
    url("../fonts/CruyffSansMono-Light.woff2") format("woff2"),
    url("../fonts/CruyffSansMono-Light.woff") format("woff"),
    url("../fonts/CruyffSansMono-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EA Sports Cruyff Sans Mono";
  src:
    url("../fonts/CruyffSansMono-Regular.woff2") format("woff2"),
    url("../fonts/CruyffSansMono-Regular.woff") format("woff"),
    url("../fonts/CruyffSansMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EA Sports Cruyff Sans Mono";
  src:
    url("../fonts/CruyffSansMono-Medium.woff2") format("woff2"),
    url("../fonts/CruyffSansMono-Medium.woff") format("woff"),
    url("../fonts/CruyffSansMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EA Sports Cruyff Sans Mono";
  src:
    url("../fonts/CruyffSansMono-Bold.woff2") format("woff2"),
    url("../fonts/CruyffSansMono-Bold.woff") format("woff"),
    url("../fonts/CruyffSansMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- EA Sports Cruyff Sans Condensed --- */

@font-face {
  font-family: "EA Sports Cruyff Sans Condensed";
  src:
    url("../fonts/CruyffSansCondensed-Regular.woff2") format("woff2"),
    url("../fonts/CruyffSansCondensed-Regular.woff") format("woff"),
    url("../fonts/CruyffSansCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EA Sports Cruyff Sans Condensed";
  src:
    url("../fonts/CruyffSansCondensed-Medium.woff2") format("woff2"),
    url("../fonts/CruyffSansCondensed-Medium.woff") format("woff"),
    url("../fonts/CruyffSansCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- EA Sports Cruyff Sans Expanded --- */

@font-face {
  font-family: "EA Sports Cruyff Sans Expanded";
  src:
    url("../fonts/CruyffSansExpanded-Heavy.woff2") format("woff2"),
    url("../fonts/CruyffSansExpanded-Heavy.woff") format("woff"),
    url("../fonts/CruyffSansExpanded-Heavy.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cc-primary: #0b818a;
  --cc-primary-dark: #096d75;
  --cc-primary-light: #0d9aa5;
  --cc-secondary: #6b7280;
  --cc-navy: #1e293b;
  --cc-light-gray: #f3f4f6;
  --cc-border: #e5e7eb;
  --cc-text: #111827;
  --cc-error: #ef4444;
  --cc-success: #22c55e;
  --cc-gold: #d4af37;
  --cc-brown: #8b7355;
}

* {
  box-sizing: border-box;
}

/* ==============================================
   SIZE SELECTOR
   ============================================== */

.cc-size-selector-wrapper {
  direction: rtl;
  text-align: right;
  max-width: 500px;
}

.cc-size-section {
  margin-bottom: 20px;
}

.cc-size-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cc-size-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cc-navy);
}

.cc-size-guide-link {
  color: var(--cc-secondary);
  text-decoration: none;
  font-size: 14px;
}

.cc-size-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cc-size-option {
  position: relative;
  flex: 1;
  min-width: 80px;
  padding: 20px 16px;
  border: 2px solid var(--cc-border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.cc-size-option:hover {
  border-color: var(--cc-primary);
}

.cc-size-option.selected {
  border-color: var(--cc-primary);
  background: linear-gradient(
    135deg,
    rgba(11, 129, 138, 0.05) 0%,
    rgba(11, 129, 138, 0.1) 100%
  );
  box-shadow: 0 4px 12px rgba(11, 129, 138, 0.2);
}

.cc-popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cc-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 428;
  white-space: nowrap;
}

.cc-size-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--cc-navy);
}

.cc-size-dimensions {
  display: block;
  font-size: 12px;
  color: var(--cc-secondary);
  margin-top: 4px;
}

.cc-size-description {
  display: block;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--cc-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

.cc-savings-banner {
  text-align: center;
  padding: 12px;
  margin-bottom: 16px;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1) 0%,
    rgba(34, 197, 94, 0.2) 100%
  );
  border-radius: 8px;
  border: 1px dashed var(--cc-success);
}

.cc-savings-text {
  color: var(--cc-success);
  font-size: 16px;
  font-weight: 700;
}

/* ==============================================
   MAIN BUTTON
   ============================================== */

.cc-customizer-main-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 28px;
  background: linear-gradient(
    135deg,
    var(--cc-primary) 0%,
    var(--cc-primary-dark) 100%
  );
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(11, 129, 138, 0.4);
}

.cc-customizer-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(11, 129, 138, 0.5);
}

.cc-btn-text {
  text-align: center;
}

.cc-btn-price {
  font-size: 20px;
  font-weight: 800;
}

/* ==============================================
   MODAL
   ============================================== */

.cc-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
}

.cc-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.cc-modal-content {
  position: relative;
  width: 98%;
  max-width: 1428px;
  height: 98vh;
  height: 98dvh;
  max-height: 98vh;
  max-height: 98dvh;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.cc-modal-close {
  position: absolute;
  top: 30px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: white;
  border: 2px solid var(--cc-border);
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cc-modal-close:hover {
  background: var(--cc-error);
  color: white;
  border-color: var(--cc-error);
  transform: rotate(90deg);
}

/* ==============================================
   PROGRESS BAR
   ============================================== */

.cc-progress-bar {
  position: relative;
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid var(--cc-border);
}

.cc-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--cc-primary) 0%,
    var(--cc-primary-dark) 100%
  );
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(11, 129, 138, 0.3);
}

.cc-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 700;
  color: var(--cc-text);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ==============================================
   CONTAINER LAYOUT
   ============================================== */

.cc-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.cc-preview-panel {
  width: 45%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 2px solid var(--cc-border);
  overflow-y: auto;
  min-height: 0;
}

.cc-preview-badge {
  background: linear-gradient(
    135deg,
    var(--cc-primary) 0%,
    var(--cc-primary-dark) 100%
  );
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(11, 129, 138, 0.3);
}

.cc-card-preview {
  width: 100%;
  max-width: 428px;
  background: white;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  border: 3px solid var(--cc-primary);
}

#cardCanvas,
#cartPreviewCanvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.cc-product-info {
  text-align: center;
  padding: 12px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 11px;
  line-height: 1.4;
  color: var(--cc-secondary);
  max-width: 420px;
}

.cc-product-info h3 {
  font-size: 13px;
  margin: 0 0 4px 0;
  color: var(--cc-text);
  font-weight: 700;
}

.cc-product-info p {
  margin: 2px 0;
  font-size: 11px;
}

.cc-rating {
  color: var(--cc-primary);
  font-size: 11px;
  margin-top: 4px;
  font-weight: 428;
}

.cc-form-panel {
  width: 55%;
  padding: 40px;
  overflow-y: auto;
  background: white;
  min-height: 0;
}
/* ==============================================
   STEPS
   ============================================== */

.cc-step {
  display: none;
}

.cc-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cc-step-header {
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--cc-border);
}

.cc-step-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--cc-text);
  margin: 0 0 12px 0;
}

.cc-step-subtitle {
  font-size: 17px;
  color: var(--cc-secondary);
  margin: 0;
}

.cc-section {
  margin-bottom: 45px;
  position: relative !important;
}

.cc-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--cc-text);
}

.cc-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--cc-primary);
  color: white;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(11, 129, 138, 0.3);
}

/* ==============================================
   FORM FIELDS
   ============================================== */

.cc-field {
  margin-bottom: 25px;
}

.cc-field label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--cc-text);
}

.cc-field input[type="text"],
.cc-field input[type="number"] {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--cc-border);
  border-radius: 10px;
  font-size: 17px;
  transition: all 0.3s;
  font-family: inherit;
  direction: rtl;
  text-align: right;
}

.cc-field input:focus {
  outline: none;
  border-color: var(--cc-primary);
  box-shadow: 0 0 0 4px rgba(11, 129, 138, 0.15);
}

.cc-char-counter {
  display: block;
  text-align: left;
  font-size: 13px;
  color: var(--cc-secondary);
  margin-top: 6px;
  font-weight: 428;
}

.cc-error-message {
  color: var(--cc-error);
  font-size: 14px;
  margin-top: 6px;
  display: none;
  font-weight: 428;
}

.cc-field.error input {
  border-color: var(--cc-error);
}

.cc-field.error .cc-error-message {
  display: block;
}

/* ==============================================
   PREVIOUS IMAGE REUSE
   ============================================== */

.cc-previous-image {
  margin-bottom: 12px;
  padding: 12px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
}

.cc-previous-image-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-primary);
  margin-bottom: 10px;
}

.cc-previous-image-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-previous-image-content img {
  height: 80px;
  width: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.cc-use-previous-btn {
  padding: 8px 16px;
  background: var(--cc-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.cc-use-previous-btn:hover {
  background: var(--cc-primary-dark);
}

/* ==============================================
   UPLOAD AREA
   ============================================== */

.cc-upload-area {
  border: 3px dashed var(--cc-primary);
  border-radius: 16px;
  padding: 70px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: linear-gradient(
    135deg,
    rgba(11, 129, 138, 0.03) 0%,
    rgba(11, 129, 138, 0.08) 100%
  );
}

.cc-upload-area:hover {
  border-color: var(--cc-primary-dark);
  background: linear-gradient(
    135deg,
    rgba(11, 129, 138, 0.08) 0%,
    rgba(11, 129, 138, 0.15) 100%
  );
  transform: translateY(-2px);
}

.cc-upload-text {
  font-size: 18px;
  color: var(--cc-text);
  margin: 0;
  font-weight: 700;
}

.cc-upload-hint {
  font-size: 14px;
  color: var(--cc-secondary);
  margin-top: 12px;
  font-weight: 500;
}

.cc-uploaded-preview {
  display: none;
  text-align: center;
  padding: 25px;
  border: 3px solid var(--cc-primary);
  border-radius: 16px;
  background: rgba(11, 129, 138, 0.05);
}

.cc-uploaded-preview.active {
  display: block;
}

.cc-uploaded-preview img {
  max-width: 240px;
  max-height: 240px;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cc-delete-btn {
  background: var(--cc-error);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  display: block;
  width: 100%;
}

.cc-delete-btn:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

/* ==============================================
   ALERT
   ============================================== */

.cc-alert {
  padding: 18px 24px;
  border-radius: 12px;
  margin: 25px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
}

.cc-alert-info {
  background: linear-gradient(
    135deg,
    rgba(11, 129, 138, 0.1) 0%,
    rgba(11, 129, 138, 0.2) 100%
  );
  color: var(--cc-primary-dark);
  border: 2px solid var(--cc-primary);
}
/* ==============================================
   TABS - Horizontal Scroll (No Arrows)
   ============================================== */

.cc-tabs-wrapper {
  position: relative;
  margin-bottom: 20px;
}

/* Fade effect on right edge to hint more content */
.cc-tabs-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50px;
  background: linear-gradient(to left, transparent, white 80%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.cc-tabs-wrapper.has-scroll::after {
  opacity: 1;
}

/* Hide old arrow buttons completely */
.cc-tabs-scroll-btn,
.cc-tab-arrow {
  display: none !important;
}

.cc-tabs {
  display: flex;
  gap: 10px;
  padding: 5px 5px 5px 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.cc-tabs::-webkit-scrollbar {
  display: none;
}

.cc-tabs:active {
  cursor: grabbing;
}

.cc-tab {
  flex-shrink: 0;
  padding: 10px 20px;
  border: 2px solid var(--cc-border);
  border-radius: 25px;
  background: var(--cc-background, white);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--cc-secondary);
}

.cc-tab:hover {
  border-color: var(--cc-primary);
  color: var(--cc-primary);
}

.cc-tab.active {
  background: var(--cc-primary);
  color: white;
  border-color: var(--cc-primary);
}

/* ==============================================
   SEARCH
   ============================================== */

.cc-search {
  position: relative;
  margin-bottom: 28px;
}

.cc-search input,
.cc-search-input {
  width: 100%;
  padding: 14px 50px 14px 18px;
  border: 2px solid var(--cc-border);
  border-radius: 12px;
  font-size: 16px;
  direction: rtl;
  text-align: right;
  transition: all 0.3s;
}

.cc-search input:focus,
.cc-search-input:focus {
  outline: none;
  border-color: var(--cc-primary);
  box-shadow: 0 0 0 4px rgba(11, 129, 138, 0.15);
}

.cc-search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--cc-secondary);
}

/* ==============================================
   GRID
   ============================================== */

.cc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-height: 350px;
  overflow-y: auto;
  padding: 5px;
}

.cc-grid-item {
  position: relative;
  padding: 18px;
  border: 3px solid var(--cc-border);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.cc-grid-item:hover {
  border-color: var(--cc-primary);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.cc-grid-item.selected {
  border-color: var(--cc-primary);
  background: linear-gradient(
    135deg,
    rgba(11, 129, 138, 0.05) 0%,
    rgba(11, 129, 138, 0.12) 100%
  );
  box-shadow: 0 8px 24px rgba(11, 129, 138, 0.2);
}

.cc-grid-item.selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  background: var(--cc-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(11, 129, 138, 0.4);
}

.cc-grid-item img,
.cc-grid-item .cc-icon {
  max-width: 60px;
  max-height: 60px;
  margin-bottom: 10px;
}

.cc-grid-item-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--cc-text);
}

.cc-position-selector {
  margin-top: 25px;
}

.cc-position-item {
  padding: 24px;
  font-size: 20px;
  font-weight: 800;
}

/* ==============================================
   ATTRIBUTES - COMPACT LAYOUT
   ============================================== */

.cc-attributes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.cc-attribute-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 2px solid var(--cc-border);
  border-radius: 12px;
  background: #f8f9fa;
  transition: all 0.3s;
  gap: 12px;
}

.cc-attribute-box:hover {
  border-color: var(--cc-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cc-attribute-box.filled {
  border-color: var(--cc-primary) !important;
  background: linear-gradient(
    135deg,
    rgba(11, 129, 138, 0.05) 0%,
    rgba(11, 129, 138, 0.1) 100%
  );
  box-shadow: 0 0 0 3px rgba(11, 129, 138, 0.1) !important;
}

.cc-attribute-box input,
.cc-attribute-input {
  width: 70px;
  height: 50px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  border: 2px solid var(--cc-border);
  border-radius: 10px;
  background: white;
  color: var(--cc-text);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.cc-attributes-random-btn {
  position: absolute;
  z-index: 99999999999999;
  top: 0;
  left: 0;
}

.cc-attribute-box input:focus,
.cc-attribute-input:focus {
  outline: none;
  border-color: var(--cc-primary);
  box-shadow: 0 0 0 3px rgba(11, 129, 138, 0.15);
}

.cc-attribute-box.filled input,
.cc-attribute-box.filled .cc-attribute-input {
  color: var(--cc-primary) !important;
  border-color: var(--cc-primary);
}

.cc-attribute-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--cc-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: right;
  flex: 1;
  line-height: 1.2;
}

.cc-attribute-hebrew {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--cc-secondary);
  margin-top: 2px;
  text-transform: none;
  letter-spacing: 0;
}

/* Hide number input arrows */
.cc-attribute-input::-webkit-outer-spin-button,
.cc-attribute-input::-webkit-inner-spin-button,
.cc-attribute-box input::-webkit-outer-spin-button,
.cc-attribute-box input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cc-attribute-input,
.cc-attribute-box input {
  -moz-appearance: textfield;
}

/* Placeholder styling */
.cc-attribute-box input[type="number"]::placeholder,
.cc-attribute-input::placeholder,
input.cc-attribute-input::placeholder {
  color: #d1d5db !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.cc-attribute-box input[type="number"]::-webkit-input-placeholder,
.cc-attribute-input::-webkit-input-placeholder {
  color: #d1d5db !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.cc-attribute-box input[type="number"]::-moz-placeholder,
.cc-attribute-input::-moz-placeholder {
  color: #d1d5db !important;
  opacity: 1 !important;
}

.cc-randomise-btn {
  margin-top: 15px;
  padding: 10px 24px;
  background: var(--cc-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(11, 129, 138, 0.25);
}

.cc-randomise-btn:hover {
  background: var(--cc-primary-dark);
  transform: translateY(-2px);
}

/* ==============================================
   OVERALL RATING - COMPACT
   ============================================== */

.cc-overall-rating {
  text-align: center;
  padding: 15px;
  border: 3px solid var(--cc-primary);
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(11, 129, 138, 0.05) 0%,
    rgba(11, 129, 138, 0.1) 100%
  );
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(11, 129, 138, 0.15);
}

.cc-overall-input {
  width: 100px;
  height: 70px;
  padding: 10px;
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  border: 2px solid var(--cc-primary);
  border-radius: 10px;
  background: white;
  color: var(--cc-primary);
  margin: 0;
}

.cc-overall-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(11, 129, 138, 0.2);
}

.cc-overall-input::-webkit-outer-spin-button,
.cc-overall-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cc-overall-input {
  -moz-appearance: textfield;
}

.cc-overall-input::placeholder,
input#overall-rating::placeholder {
  color: #d1d5db !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.cc-overall-input::-webkit-input-placeholder,
input#overall-rating::-webkit-input-placeholder {
  color: #d1d5db !important;
  opacity: 1 !important;
}

.cc-overall-rating.filled {
  box-shadow:
    0 0 0 4px rgba(11, 129, 138, 0.2),
    0 4px 15px rgba(11, 129, 138, 0.15);
}

.cc-overall-rating.filled .cc-overall-input,
.cc-overall-rating.filled input#overall-rating {
  color: var(--cc-primary) !important;
  font-weight: 900 !important;
}

.cc-suggested-ratings {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.cc-suggested-btn {
  padding: 10px 20px;
  border: 3px solid var(--cc-border);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s;
}

.cc-suggested-btn:hover {
  border-color: var(--cc-primary);
  background: rgba(11, 129, 138, 0.05);
  transform: translateY(-2px);
}

/* ==============================================
   CHECKBOX
   ============================================== */

.cc-checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid var(--cc-border);
  border-radius: 10px;
  margin: 10px 0;
  direction: rtl;
  background: #fafafa;
}

.cc-checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--cc-primary);
}

.cc-checkbox-field label {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cc-secondary);
  cursor: pointer;
  text-align: right;
  font-weight: 428;
}

/* ==============================================
   NAVIGATION
   ============================================== */

.cc-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 15px 45px;
  border-top: 2px solid var(--cc-border);
  background: linear-gradient(180deg, #f8f9fa 0%, #f3f4f6 100%);
}

.cc-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cc-btn-primary {
  background: linear-gradient(
    135deg,
    var(--cc-primary) 0%,
    var(--cc-primary-dark) 100%
  );
  color: white;
}

.cc-btn-primary:hover:not(:disabled) {
  background: linear-gradient(
    135deg,
    var(--cc-primary-dark) 0%,
    var(--cc-primary) 100%
  );
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11, 129, 138, 0.4);
}

.cc-btn-primary:disabled {
  background: var(--cc-secondary);
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.cc-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cc-spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes cc-spin {
  to {
    transform: rotate(360deg);
  }
}

.cc-btn-error {
  color: #fff;
}

.cc-btn-secondary {
  background: white;
  color: var(--cc-text);
  border: 3px solid var(--cc-border);
}

.cc-btn-secondary:hover {
  border-color: var(--cc-primary);
  color: var(--cc-primary);
  transform: translateY(-2px);
}

.cc-price-tag {
  margin-right: auto;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ==============================================
   CROPPER MODAL - Improved Layout
   ============================================== */

.cc-cropper-modal-content {
  max-width: 95vw !important;
  width: 1200px !important;
  max-height: 90vh !important;
  overflow: hidden;
  border-radius: 20px;
}

.cc-cropper-header-top {
  text-align: center;
  padding: 20px 20px 15px;
  border-bottom: 1px solid var(--cc-border);
  background: white;
}

.cc-cropper-header-top h3 {
  font-size: 24px;
  margin: 0 0 5px 0;
  color: var(--cc-text);
  font-weight: 700;
}

.cc-cropper-header-top p {
  margin: 0;
  color: var(--cc-secondary);
  font-size: 14px;
}

.cc-cropper-container {
  display: flex;
  gap: 25px;
  padding: 25px;
  direction: rtl;
  height: calc(90vh - 100px);
  max-height: 700px;
  overflow: hidden;
  background: #f8f9fa;
  align-items: stretch;
}

/* Preview Side - Equal flex */
.cc-cropper-preview-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cc-preview-label-badge {
  background: linear-gradient(
    135deg,
    var(--cc-primary) 0%,
    var(--cc-primary-dark) 100%
  );
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(11, 129, 138, 0.3);
}

.cc-cropper-card-wrapper {
  background: white;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--cc-primary);
  width: 100%;
  max-width: 300px;
}

.cc-cropper-card-wrapper canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.cc-cropper-product-info {
  display: none;
}

.cc-bg-removed-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1) 0%,
    rgba(11, 129, 138, 0.1) 100%
  );
  border: 1px solid rgba(11, 129, 138, 0.3);
  border-radius: 10px;
  font-size: 12px;
  color: #059669;
  font-weight: 500;
  width: auto;
}

.cc-notice-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* Edit Side - Equal flex */
.cc-cropper-edit-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cc-cropper-wrapper {
  flex: 1;
  background: repeating-conic-gradient(#e5e7eb 0% 25%, #f3f4f6 0% 50%) 50% /
    20px 20px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-cropper-wrapper img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.cc-cropper-tools {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
}

.cc-crop-tool-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  background: #f8f9fa;
  border: 1px solid var(--cc-border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cc-secondary);
}

.cc-crop-tool-btn:hover {
  border-color: var(--cc-primary);
  background: rgba(11, 129, 138, 0.1);
  color: var(--cc-primary);
  transform: scale(1.05);
}

.cc-crop-tool-btn:active {
  transform: scale(0.95);
}

.cc-crop-tool-btn svg {
  width: 20px;
  height: 20px;
}

.cc-cropper-actions {
  display: flex;
  gap: 12px;
  padding-top: 10px;
}

.cc-cropper-actions .cc-btn {
  justify-content: center;
  width: 100%;
  text-align: center;
  flex: 1;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
}

.cc-cropper-actions .cc-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cc-cropper-actions .cc-btn-secondary {
  background: #f3f4f6;
  color: var(--cc-text);
  border: 1px solid var(--cc-border);
}
/* ==============================================
   LOADING OVERLAY
   ============================================== */

.cc-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cc-loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cc-loading-content {
  text-align: center;
  color: white;
  padding: 40px;
}

.cc-loading-spinner {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
}

.cc-loading-spinner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cc-loading-spinner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: var(--cc-primary);
  border-right-color: var(--cc-primary-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.cc-loading-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.7;
  }
}

.cc-loading-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px 0;
  background: linear-gradient(
    90deg,
    var(--cc-primary),
    var(--cc-primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cc-loading-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 25px 0;
}

.cc-loading-progress {
  width: 280px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
}

.cc-loading-progress-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--cc-primary),
    var(--cc-primary-light)
  );
  border-radius: 3px;
  animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
  0% {
    width: 0%;
    margin-left: 0;
  }
  50% {
    width: 70%;
    margin-left: 0;
  }
  100% {
    width: 0%;
    margin-left: 100%;
  }
}

.cc-loading-tips {
  margin-top: 30px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.cc-loading-tips strong {
  color: var(--cc-primary);
}

/* ==============================================
   ERROR
   ============================================== */

.cc-error {
  color: var(--cc-error);
  text-align: center;
  padding: 20px;
  font-weight: 428;
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 1200px) {
  .cc-container {
    flex-direction: column;
  }

  .cc-preview-panel,
  .cc-form-panel {
    width: 100%;
  }

  .cc-preview-panel {
    border-left: none;
    border-bottom: 2px solid var(--cc-border);
  }

  .cc-cropper-container {
    flex-direction: column;
    overflow-y: auto;
  }

  .cc-cropper-preview-side {
    flex: 0 0 auto;
    width: 100%;
  }

  .cc-cropper-edit-side {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .cc-modal-content {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .cc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cc-attributes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cc-cart-body {
    flex-direction: column;
  }

  .cc-cart-actions {
    flex-direction: column;
  }

  .cc-navigation {
    flex-direction: column;
    padding: 20px;
  }

  .cc-btn {
    width: 100%;
    justify-content: center;
  }

  .cc-cropper-tools {
    flex-wrap: wrap;
  }

  .cc-crop-tool-btn {
    width: 48px;
    height: 48px;
  }

  .cc-form-panel {
    padding: 20px;
  }
}

/* ==============================================
   UPLOAD TOGGLE & CUSTOM UPLOAD
   ============================================== */

.cc-upload-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: var(--cc-light-gray);
  padding: 6px;
  border-radius: 12px;
}

.cc-toggle-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 15px;
  font-weight: 428;
  color: var(--cc-secondary);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.cc-toggle-btn.active {
  background: white;
  color: var(--cc-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cc-toggle-btn:hover:not(.active) {
  color: var(--cc-text);
}

.cc-custom-upload-area {
  border: 3px dashed var(--cc-border);
  border-radius: 16px;
  padding: 50px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--cc-light-gray);
}

.cc-custom-upload-area:hover {
  border-color: var(--cc-primary);
  background: rgba(11, 129, 138, 0.05);
}

.cc-custom-preview {
  text-align: center;
  padding: 30px;
  border: 3px solid var(--cc-primary);
  border-radius: 16px;
  background: rgba(11, 129, 138, 0.05);
}

.cc-custom-preview img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cc-custom-preview input[type="text"] {
  width: 100%;
  max-width: 300px;
  padding: 14px 18px;
  border: 2px solid var(--cc-border);
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  margin-bottom: 15px;
  direction: rtl;
}

.cc-custom-preview input[type="text"]:focus {
  outline: none;
  border-color: var(--cc-primary);
  box-shadow: 0 0 0 4px rgba(11, 129, 138, 0.15);
}

/* ==============================================
   CART MODAL - Enhanced
   ============================================== */

.cc-cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
}

.cc-cart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.cc-cart-content {
  position: relative;
  width: 95%;
  max-width: 900px;
  max-height: 95vh;
  background: white;
  border-radius: 20px;
  overflow-y: auto;
  padding: 35px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.cc-cart-header {
  text-align: center;
  margin-bottom: 25px;
}

.cc-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--cc-primary) 0%,
    var(--cc-primary-dark) 100%
  );
  color: white;
  border-radius: 50%;
  font-size: 38px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(11, 129, 138, 0.4);
}

.cc-cart-header h3 {
  font-size: 26px;
  margin: 0;
  color: var(--cc-text);
  font-weight: 800;
}

.cc-cart-body {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

.cc-cart-preview {
  flex: 0 0 320px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px;
  border-radius: 16px;
  border: 3px solid var(--cc-primary);
}

.cc-cart-preview canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.cc-cart-summary {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Card Details Grid */
.cc-cart-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.cc-cart-detail-item {
  display: flex;
  flex-direction: column;
  padding: 12px 15px;
  background: var(--cc-light-gray);
  border-radius: 10px;
}

.cc-cart-detail-item.full-width {
  grid-column: span 2;
}

.cc-detail-label {
  font-size: 11px;
  color: var(--cc-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.cc-detail-value {
  font-size: 15px;
  color: var(--cc-text);
  font-weight: 700;
}

/* Attributes in Cart */
.cc-cart-attributes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 15px;
  background: linear-gradient(
    135deg,
    var(--cc-primary) 0%,
    var(--cc-primary-dark) 100%
  );
  border-radius: 12px;
  margin-bottom: 15px;
  direction: ltr;
}

.cc-cart-attr-item {
  text-align: center;
  color: white;
}

.cc-cart-attr-label {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.8;
  text-transform: uppercase;
}

.cc-cart-attr-value {
  font-size: 18px;
  font-weight: 800;
}

/* Price Section */
.cc-cart-price-section {
  background: var(--cc-light-gray);
  border-radius: 12px;
  padding: 15px;
}

.cc-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--cc-border);
  font-size: 16px;
}

.cc-summary-row.cc-total {
  font-size: 22px;
  font-weight: 900;
  padding-top: 15px;
  border-bottom: none;
  color: var(--cc-primary);
}

.cc-shipping-note {
  font-size: 13px;
  color: var(--cc-secondary);
  text-align: center;
  margin-top: 10px;
}

.cc-cart-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.cc-cart-actions .cc-btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  padding: 14px 24px;
}

.cc-trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 2px solid var(--cc-border);
}

.cc-badge {
  font-size: 13px;
  color: var(--cc-primary);
  font-weight: 600;
}

/* Cart Modal Responsive */
@media (max-width: 768px) {
  .cc-cart-content {
    padding: 25px;
    max-width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }

  .cc-cart-body {
    flex-direction: column;
    gap: 20px;
  }

  .cc-cart-preview {
    flex: none;
    max-width: 280px;
    margin: 0 auto;
  }

  .cc-cart-details {
    grid-template-columns: 1fr;
  }

  .cc-cart-detail-item.full-width {
    grid-column: span 1;
  }

  .cc-cart-attributes {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .cc-cart-actions {
    flex-direction: column;
  }

  .cc-trust-badges {
    gap: 15px;
  }

  .cc-badge {
    font-size: 12px;
  }
}

/* ==============================================
   ENGLISH ONLY WARNING TOAST
   ============================================== */

.cc-warning-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.4);
  z-index: 999999999;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  direction: ltr;
}

.cc-warning-toast.active {
  transform: translateX(-50%) translateY(0);
}

.cc-warning-icon {
  font-size: 20px;
}

.cc-warning-text {
  direction: ltr;
}

/* ==============================================
   IMAGE BUTTONS (Edit + Delete)
   ============================================== */

.cc-image-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.cc-image-buttons .cc-edit-btn,
.cc-image-buttons .cc-delete-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cc-edit-btn {
  background: var(--cc-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(11, 129, 138, 0.3);
}

.cc-edit-btn:hover {
  background: var(--cc-primary-dark);
  transform: translateY(-2px);
}

.cc-image-buttons .cc-delete-btn {
  background: #fee2e2;
  color: var(--cc-error);
  box-shadow: none;
}

.cc-image-buttons .cc-delete-btn:hover {
  background: var(--cc-error);
  color: white;
}

/* ==============================================
   SEARCH RESULT TAG (League/Region)
   ============================================== */

.cc-item-tag {
  position: absolute;
  bottom: 5px;
  left: 5px;
  right: 5px;
  background: var(--cc-primary);
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  text-align: center;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-grid-item {
  position: relative;
}

/* Adjust padding when tag is visible */
.cc-grid-item:has(.cc-item-tag) {
  padding-bottom: 28px;
}

/* ==============================================
   NO RESULTS MESSAGE
   ============================================== */

.cc-no-results {
  text-align: center;
  padding: 50px 20px;
  color: var(--cc-secondary);
  grid-column: 1 / -1;
}

.cc-no-results-icon {
  display: block;
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.cc-no-results p {
  font-size: 18px;
  font-weight: 700;
  color: var(--cc-text);
  margin: 0 0 8px 0;
}

.cc-no-results-hint {
  font-size: 14px;
  color: var(--cc-secondary);
}

/* ==============================================
   POSITION SELECTOR WITH HEBREW NAMES
   ============================================== */

.cc-position-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px !important;
  min-height: 90px;
}

.cc-position-code {
  font-size: 22px;
  font-weight: 800;
  color: var(--cc-text);
  margin-bottom: 4px;
}

.cc-position-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--cc-secondary);
  text-align: center;
  line-height: 1.3;
}

.cc-position-item.selected .cc-position-code {
  color: var(--cc-primary);
}

.cc-position-item.selected .cc-position-name {
  color: var(--cc-primary-dark);
}

.cc-position-item:hover .cc-position-code {
  color: var(--cc-primary);
}

/* Grid adjustment for positions */
.cc-position-selector {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 768px) {
  .cc-position-selector {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .cc-position-item {
    padding: 16px 12px !important;
    min-height: 80px;
  }

  .cc-position-code {
    font-size: 18px;
  }

  .cc-position-name {
    font-size: 11px;
  }
}

/* Mystery Mode */
.cc-field-hint {
  display: block;
  font-size: 14px;
  color: var(--cc-primary);
  background: rgba(11, 129, 138, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.cc-order-notes {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  min-height: 100px;
  direction: rtl;
  box-sizing: border-box;
}
.cc-order-notes:focus {
  border-color: var(--cc-primary);
  outline: none;
}
.cc-mystery-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  direction: rtl;
}

/* Add-ons */
.cc-addons-section { margin-bottom: 20px; }
.cc-addons-list { display: flex; flex-direction: column; gap: 10px; }
.cc-addon-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 2px solid #e2e8f0; border-radius: 12px;
  cursor: pointer; transition: all 0.2s; background: #fff; direction: rtl;
}
.cc-addon-item:hover { border-color: var(--cc-primary); background: #f0fafb; }
.cc-addon-item.selected {
  border-color: var(--cc-primary); background: rgba(11,129,138,0.06);
  box-shadow: 0 0 0 3px rgba(11,129,138,0.12);
}
.cc-addon-checkbox input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--cc-primary); cursor: pointer; }
.cc-addon-image { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; border: 1px solid #e2e8f0; }
.cc-addon-info { flex: 1; min-width: 0; }
.cc-addon-name { font-size: 15px; font-weight: 600; color: #1e293b; }
.cc-addon-desc { font-size: 13px; color: #6b7280; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-addon-price { flex-shrink: 0; font-size: 15px; font-weight: 700; color: var(--cc-primary); white-space: nowrap; }
/* Cart modal addon rows */
.cc-addon-summary-row { font-size: 14px; color: #475569; border-top: 1px dashed #e2e8f0; padding-top: 6px; margin-top: 6px; }
