/* ===== Front-end (Configurator) ===== */

.gamerland-configurator {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: #f0f0f0;
}

.gamerland-accordion {
  border: none;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-header {
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #fff;
}
.accordion-header.active{
background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(255, 0, 0, 0.23) 50%, rgba(0, 0, 0, 0) 100%);
}
.accordion-arrow { transition: transform .2s; }
.accordion-header.active .accordion-arrow { transform: rotate(90deg); color: #e30613; }

.accordion-body { display: none; padding: 15px; background: #1a1a1a; }
.gamerland-option-group .group-body{
    display:block;
}
.gamerland-option-group.collapsed .group-body{
    display:none;
}
.group-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 15px;
}
.group-title{
    font-size:22px;
}
.option-card {
  border: 2px solid #333;
  border-radius: 6px;
  background: #222;
  color: #eee;
  cursor: pointer;
  transition: all .2s;
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.option-card:hover { border-color: #e30613; }
.option-card input { display: none; }
.option-card .card-content { padding: 15px; text-align: center; }
.option-card .card-title { font-weight: 600; margin-bottom: 5px; }
.option-card .card-price { font-size: .9em; color: #bbb; }
.card-price-original {
  color: #ccc;
  font-size: 12px;
  display: block;
}
.card-price-dynamic {
  display: block;
  color: #e30613;
  font-weight: 600;
}
.card-price .woocommerce-Price-amount{
    color:#ccc!important;
}
/* Overlay hover & selected */
.option-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(227, 6, 19, 0.2);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.option-card:hover::after { opacity: 1; }
.option-card input:checked + .card-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(227, 6, 19, 0.2);
  opacity: 1;
  pointer-events: none;
}

.gamerland-addon-thumb { width: 60px; height: 60px; object-fit: contain; margin-bottom: 8px; }
.gamerland-cart-addon-thumb { width: 32px; height: 32px; object-fit: contain; margin-right: 5px; vertical-align: middle; }

/* Summary box */
.summary-box {
    display:none;
  background: #111;
  padding: 15px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
}
.summary-lines{ border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.summary-line { display: flex; justify-content: space-between; margin: 5px 0; font-size: 18px; }
.options_total { color: #e30613; }
.grand_total { color: #e30613; font-size:28px;}
.product_base { font-size: 22px; font-weight: 600; color: #e30613; }

.tick-icon { color: #e30613; font-weight: bold; margin-right: 6px; }
.summary-title { font-size: 18px; color: #ccc; }
.summary-field-label { font-size: 22px; }
.summary-price { color: #e30613; font-size: 22px; margin-top: 5px; }

/* Quantity row */
.gamerland-qty-row { margin-top: 16px; clear: both; }
.gamerland-qty-row .quantity,
.gamerland-qty-row input.qty { float: none !important; display: inline-flex; align-items: center; }

/* ===== Admin meta box ===== */

.gamerland-admin-wrap { margin-top: 8px; }
.gamerland-admin-help { margin-bottom: 8px; }

.gamerland-option-group {
  border: 1px solid #ccd0d4;
  padding: 10px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 6px;
}
.gamerland-option-group.collapsed .group-row,
.gamerland-option-group.collapsed .group_options_container,
.gamerland-option-group.collapsed .add_option_row,
.gamerland-option-group.collapsed .group-actions {
  display: none;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  background: #f7f7f7;
  padding: 8px 10px;
  border: 1px solid #ccd0d4;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}
.group-header .drag-handle {
  cursor: move;
  margin-right: 8px;
  color: #666;
}
.group-header .group-label { flex: 1 1 auto; }
.group-header .toggle { color: #666; font-size: 12px; }

/* Hidden badge */
.gamerland-option-group.is-hidden .group-header {
  background: #fff7f7;
  border-color: #f3c2c2;
}
.badge-hidden {
  background: #f3c2c2;
  color: #a40000;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 8px;
}

.gamerland-input,
.gamerland-select,
.gamerland-product-search {
  min-width: 220px;
  max-width: 100%;
}
.gamerland-product-search { width: 100%; }

.gamerland-inline-fields label { margin-right: 8px; }
.add_option_row { margin-top: 6px; }
