


/**
 * GZC Condition Cards – optimized CSS
 */

/* Hide original controls when marked by JS */
body.gzc-has-condition-cards .gzc-cc-hide-original { display: none !important; }

/* Keep selects in DOM but visually hidden for compatibility */
body.gzc-has-condition-cards select.gzc-cc-hidden-select {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px);
}

/* Container */
.gzc-cc-wrap { margin-top: 14px; }

/* Header */
.gzc-cc-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.gzc-cc-title { font-weight:700; font-size:16px; }

/* Help text */
.gzc-cc-help { margin-top:8px; font-size:13px; color: #666; }

/* Row */
.gzc-cc-row { display:flex; gap:12px; flex-wrap:wrap; }

/* Card */
.gzc-cc-card {
  position: relative;
  min-width: 170px;
  flex: 1 1 170px;
  text-align:left;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  padding:12px;
  border-radius:8px;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
  display:block;
  text-decoration:none;
  color:inherit;
}

.gzc-cc-card:hover { transform: translateY(-2px); }

.gzc-cc-card.is-active { border-color: rgba(0,0,0,.6); box-shadow: 0 8px 20px rgba(0,0,0,.06);
border-width:2px; }

.gzc-cc-label { font-weight:700; margin-bottom:6px; font-size:14px; }

.gzc-cc-stars { font-size:14px; letter-spacing:1px; margin-bottom:8px; opacity:.9; }

/* Price area uses custom class to avoid theme price overwrite */
/* Bigger premium price */
.gzc-cc-price,
.gzc-cc-price .gzc-cc-price-html {
  font-weight: 800;
  font-size: 18px;   /* increased */
  letter-spacing: -0.3px;
}


/* ---------------------------------------------
   SALE Price Styling
---------------------------------------------- */

/* Old price */
.gzc-cc-price del {
  font-size: 14px;
  font-weight: 500;
  color: #888;
  opacity: .8;
  margin-right: 6px;
}

/* Remove Woo default underline on ins */
.gzc-cc-price ins {
  text-decoration: none;
}

/* New sale price */
.gzc-cc-price ins .gzc-cc-price-html,
.gzc-cc-price ins {
  color: #e60023;     /* premium red */
  font-weight: 800;
}

/* Optional: subtle sale highlight background */
.gzc-cc-card.is-active .gzc-cc-price ins {
  background: rgba(230, 0, 35, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Out-of-stock visual (but still clickable) */
.gzc-cc-card.is-oos { opacity: .6; }
.gzc-cc-card.is-oos .gzc-cc-price { opacity: .85; }
.gzc-cc-card.is-oos .gzc-cc-oos-text { font-weight:600; color:#b00; margin-left:6px; font-size:12px; }

/* Diagonal overlay (non-blocking) */
.gzc-cc-diagonal {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius:8px;
  overflow:hidden;
}
.gzc-cc-diagonal::before {
  content:"";
  position:absolute;
  left:-20%;
  top:50%;
  width:140%;
  height:2px;
  background: rgba(0,0,0,0.15);
  transform: rotate(-12deg);
  opacity: .9;
}

/* Badge – centered like sample */
.gzc-cc-badge {
  position: absolute;
  top: -18px;                 /* pulls it to sit on border */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;

  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;

  background: #ffe66a;
  color: #111;

  border: 2px solid #fff;     
	
	/* clean cut look */
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  white-space: nowrap;
}

	/* stars */
.gzc-cc-stars { 
	color: #ffc40d; }


/* Accessibility: focus */
.gzc-cc-card:focus { outline: 3px solid rgba(0,0,0,0.06); }

/* Small screens: stack */
@media (max-width:640px){
  .gzc-cc-row { gap:10px; }
  .gzc-cc-card { min-width: 140px; flex: 1 1 140px; padding:10px; }
	
	  /* One card per row */
  .gzc-cc-row {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .gzc-cc-card {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    padding: 12px;
  }

  /* Make the card content behave like the sample:
     left = label/stars, right = price + badge */
  .gzc-cc-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
  }

  /* label top-left */
  .gzc-cc-label {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin: 0;
  }

  /* price top-right */
  .gzc-cc-price {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
  }

  /* stars bottom-left */
  .gzc-cc-stars {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    margin: 0;
  }

  /* Badge bottom-right like sample */
  .gzc-cc-badge {
    position: static;           /* remove absolute positioning on mobile */
    transform: none;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    justify-self: end;
    align-self: center;

    /* keep your badge style */
    padding: 4px 10px;
    font-size: 11px;
    border: none;
    box-shadow: none;
  }

  /* If out-of-stock diagonal exists, keep it visible */
  .gzc-cc-diagonal {
    border-radius: 8px;
  }
	
}