/* ============================================================
   COP Frontend Styles — matches the reference image design
   ============================================================ */

:root {
  --cop-yellow: #f3cf3f;
  --cop-yellow-dark: #e09510;
  --cop-text: #1d2327;
  --cop-muted: #6b7280;
  --cop-border: #d1d5db;
  --cop-bg: #ffffff;
  --cop-selected-bg: #fff8ec;
  --cop-radius: 10px;
  --cop-pill-radius: 50px;
  --cop-transition: all 0.18s ease;
}

/* Container */
.cop-options-container {
  margin-bottom: 24px;
}

/* Group block */
.cop-group {
  margin-bottom: 24px;
}

/* Group title (e.g. "Grönt teknikavdrag") */
.cop-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cop-text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── FULL WIDTH: Radio Card Style ─────────────────────────── */

.cop-fullwidth-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cop-bg);
  border: 2px solid var(--cop-border);
  border-radius: var(--cop-radius);
  cursor: pointer;
  transition: var(--cop-transition);
  position: relative;
  user-select: none;
}

.cop-card:hover {
  border-color: var(--cop-yellow);
  background: #fffef9;
}

.cop-card--selected {
  border-color: var(--cop-yellow);
  background: var(--cop-selected-bg);
}

/* Hide native radio input */
.cop-card .cop-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cop-card__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.cop-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cop-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cop-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cop-card__desc {
  font-size: 13px;
  color: var(--cop-muted);
}

.cop-card__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--cop-text);
  flex-shrink: 0;
}

/* Circular checkmark indicator on the right */
.cop-card__indicator {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 2px solid var(--cop-border);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--cop-transition);
}

.cop-card__indicator svg {
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.7);
  transition: var(--cop-transition);
}

.cop-card--selected .cop-card__indicator {
  border-color: var(--cop-yellow);
  background: var(--cop-yellow);
}

.cop-card--selected .cop-card__indicator svg {
  opacity: 1;
  transform: scale(1);
  fill: none;
}

/* ── INLINE: Pill Button Style ────────────────────────────── */

.cop-inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 2px solid var(--cop-border);
  border-radius: var(--cop-pill-radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--cop-text);
  cursor: pointer;
  background: var(--cop-bg);
  transition: var(--cop-transition);
  user-select: none;
}

.cop-pill:hover {
  border-color: var(--cop-yellow);
  color: var(--cop-yellow-dark);
}

.cop-pill--selected {
  background: var(--cop-yellow);
  border-color: var(--cop-yellow);
  color: #fff;
  font-weight: 700;
}

.cop-pill--selected:hover {
  background: var(--cop-yellow-dark);
  border-color: var(--cop-yellow-dark);
  color: #fff;
}

/* Hide native radio input */
.cop-pill .cop-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cop-pill__price {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 400;
}

/* ── Price Summary Bar ────────────────────────────────────── */

.cop-price-summary {
  padding: 14px 18px;
  background: #f9f9fb;
  border: 1px solid var(--cop-border);
  border-radius: var(--cop-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 15px;
}

.cop-price-summary__label {
  color: var(--cop-muted);
  font-weight: 500;
}

.cop-price-summary__total {
  font-size: 20px;
  font-weight: 800;
  color: var(--cop-text);
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .cop-card {
    padding: 12px;
  }
  .cop-pill {
    padding: 7px 14px;
    font-size: 13px;
  }
}
/* ── Sticky Add to Cart Bar ───────────────────────────────── */
.cop-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  padding: 12px 0;
}

.cop-sticky-bar__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cop-sticky-bar__product {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0;
}

.cop-sticky-bar__image {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cop-border);
}

.cop-sticky-bar__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cop-sticky-bar__info {
  min-width: 0;
}

.cop-sticky-bar__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--cop-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cop-sticky-bar__short-desc {
  font-size: 13px;
  color: var(--cop-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cop-sticky-bar__actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

.cop-sticky-bar__price-wrapper {
  text-align: right;
}

.cop-sticky-bar__price-label {
  font-size: 12px;
  color: var(--cop-muted);
  display: block;
  margin-bottom: -2px;
}

.cop-sticky-bar__price {
  font-size: 24px;
  font-weight: 800;
  color: var(--cop-text);
  line-height: 1;
}

.cop-sticky-bar__button {
  background: var(--cop-yellow) !important;
  color: #1d2327 !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 12px 28px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.2);
}

.cop-sticky-bar__button:hover {
  background: var(--cop-yellow-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(245, 166, 35, 0.3);
}

.cop-sticky-bar__icon svg {
  width: 18px;
  height: 18px;
}

.cop-sticky-bar__arrow {
  font-size: 18px;
  margin-left: 5px;
}

/* Hide default add to cart */
.single-product .cart .single_add_to_cart_button,
.single-product .cart .quantity {
  display: none !important;
}

/* Specific for our configurable products */
.product-type-configurable_options .cart .single_add_to_cart_button {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .cop-sticky-bar__short-desc {
    display: none;
  }
}

@media (max-width: 600px) {
  .cop-sticky-bar__product {
    display: none;
  }
  .cop-sticky-bar__container {
    justify-content: space-between;
    padding: 0 15px;
  }
  .cop-sticky-bar__actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .cop-sticky-bar__button {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }
}
