.cc-product {
  grid-template-columns: 260px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 12px;
}

.cc-product-media,
.cc-product-info {
  min-width: 0;
}

.cc-product-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  background: #f8fafc;
  cursor: zoom-in;
  transform: none !important;
  transition: none !important;
}

.cc-product-main-image:hover,
.cc-product-main-image:focus,
.cc-product-main-image:focus-visible,
.cc-product-main-image:active {
  border-color: #e5e7eb !important;
  outline: none !important;
  background: #f8fafc !important;
  color: inherit !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

.cc-product-main-image:hover img,
.cc-product-main-image:focus img,
.cc-product-main-image:active img {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.cc-product-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cc-product-gallery {
  display: flex;
  gap: 6px;
  margin-top: 7px;
  padding: 1px 1px 3px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.cc-gallery-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid #dbe1e8;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.cc-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.cc-gallery-thumb.active {
  border-color: var(--orange, #ff6b18);
  box-shadow: 0 0 0 1px var(--orange, #ff6b18);
}

.cc-gallery-extra {
  display: none;
}

.cc-product-gallery.is-expanded .cc-gallery-extra {
  display: block;
}

.cc-gallery-more {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #fdba74;
  border-radius: 7px;
  background: #fff7ed;
  color: var(--orange, #f97316);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.cc-product-info > strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.cc-line-price {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
}

.cc-product-saving {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.cc-product-saving b {
  color: #169447;
}

.cc-product-description {
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.cc-image-lightbox { position: fixed; inset: 0; z-index: 1000000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, .82); }
.cc-image-lightbox.is-open { display: flex; }
.cc-image-lightbox img { display: block; width: auto; max-width: min(920px, 94vw); height: auto; max-height: 88vh; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.cc-lightbox-close { position: fixed; top: 16px; right: 18px; z-index: 2; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #111827; font-size: 27px; line-height: 1; cursor: pointer; }
body.cc-lightbox-active { overflow: hidden; }

.cc-dynamic-payment-heading {
  grid-column: 1 / -1;
  margin: 8px 0 2px;
  padding: 11px 13px 11px 38px;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--orange, #ff6b18);
  border-radius: 9px;
  background: linear-gradient(100deg,#fff7ed,#fff 52%,#f0fdf4);
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
  animation: cc-payment-offer-pulse 2.4s ease-in-out infinite;
}

.cc-dynamic-payment-heading::before{content:"✦";position:absolute;left:12px;top:50%;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;transform:translateY(-50%);background:#ff6b18;color:#fff;font-size:11px;box-shadow:0 0 0 4px rgba(255,107,24,.1)}

.cc-dynamic-payment-heading::after{content:"";position:absolute;inset:0 auto 0 -45%;width:38%;background:linear-gradient(100deg,transparent,rgba(255,107,24,.16),transparent);transform:skewX(-18deg);animation:cc-payment-offer-shine 3s ease-in-out infinite;pointer-events:none}
@keyframes cc-payment-offer-pulse{0%,100%{border-left-color:var(--orange,#ff6b18);box-shadow:0 0 0 rgba(255,107,24,0)}50%{border-left-color:#16a34a;box-shadow:0 3px 12px rgba(22,163,74,.1)}}
@keyframes cc-payment-offer-shine{0%,28%{left:-45%}70%,100%{left:115%}}
@media(prefers-reduced-motion:reduce){.cc-dynamic-payment-heading,.cc-dynamic-payment-heading::after{animation:none}}

.cc-payment-methods .cc-option > span {
  min-height: 56px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.cc-payment-methods .cc-option img {
  width: 62px !important;
  height: 46px !important;
  margin-right: 12px;
  object-fit: contain;
}

.cc-payment-methods .cc-option span strong {
  font-size: 14px;
  line-height: 1.3;
}

.cc-payment-methods .cc-method-info,
.cc-payment-methods .cc-payment-fields {
  margin: -2px 0 2px 24px;
  padding: 9px 10px;
  border: 0;
  border-left: 2px solid #fdba74;
  border-radius: 0 7px 7px 0;
  background: #f8fafc;
}

.cc-payment-methods .cc-method-info {
  display: block;
}

.cc-payment-methods .cc-method-info[hidden],
.cc-payment-methods .cc-payment-fields[hidden] {
  display: none;
}

.cc-payment-methods .cc-method-info p,
.cc-payment-methods .cc-method-instruction,
.cc-payment-methods .cc-method-instruction p {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.4;
}

.cc-payment-methods .cc-payment-fields .cc-field {
  margin-bottom: 6px;
}

.cc-payment-methods .cc-payment-fields input {
  min-height: 39px;
  padding: 8px 10px;
}

@media (max-width: 720px) {
  .cc-product {
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .cc-product-media { grid-row: 1 / span 2; }

  .cc-product-actions { grid-column: 2; grid-row: 2; align-self: end; justify-self: start; }

  .cc-gallery-thumb {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .cc-gallery-more {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .cc-product-info > strong,
  .cc-line-price {
    font-size: 14px;
  }

  .cc-product-description {
    display: none;
  }
}

@media (max-width: 430px) {
  .cc-product {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 9px;
  }

  .cc-payment-methods .cc-option img {
    width: 54px !important;
    height: 42px !important;
  }

  .cc-payment-methods .cc-method-info,
  .cc-payment-methods .cc-payment-fields {
    margin-left: 14px;
  }
}
