.logo-container {
  width: 104px;
  height: 31px;
  margin: 1px;
  background-image: url("../images/brt_logo.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ============================================================
   BRT FermoPoint Visual Enhancer — brt-enhancer.css v3
   nopCommerce 4.6.x + tema SmartTheme
   ============================================================

   OBIETTIVO:
   La card BRT sostituisce VISIVAMENTE il blocco checkbox.
   La checkbox nativa resta nel DOM (form submit intatto)
   ma è completamente invisibile all'utente.

   STRUTTURA HTML nopCommerce di riferimento:
   .pickup-in-store          ← nascosto interamente
     .selector > input#PickupInStore + label
     .description
   #pickup-points-form       ← sempre visibile (override del toggle JS nativo)
     .select-pickup-point    ← nascosto (il select viene spostato nella card)
     .brt-enhancer-wrap      ← la nostra card, iniettata qui via widget zone
   ============================================================ */


/* ── 1. NASCONDE il blocco checkbox originale ───────────────
   Il div.pickup-in-store contiene checkbox + label + descrizione.
   Lo nascondiamo interamente — la card BRT lo sostituisce.
   ─────────────────────────────────────────────────────────── */
.pickup-in-store {
  display: none !important;
}


/* ── 2. FORZA la visibilità di #pickup-points-form ──────────
   nopCommerce lo nasconde con display:none via togglePickupInStore().
   Noi vogliamo che sia sempre visibile perché la card gestisce
   il proprio stato di selezione internamente.
   ─────────────────────────────────────────────────────────── */
#pickup-points-form {
  display: block !important;
}


/* ── 3. NASCONDE il blocco select originale ─────────────────
   Il select #pickup-points-select verrà spostato DENTRO la card
   via JS. Il suo contenitore originale non serve più.
   ─────────────────────────────────────────────────────────── */
.select-pickup-point {
  display: none !important;
}


/* ══════════════════════════════════════════════════════════
   CARD BRT
   ══════════════════════════════════════════════════════════ */

/* ── Wrapper ──────────────────────────────────────────────── */
.brt-enhancer-wrap {
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

  .brt-enhancer-wrap:hover {
    border-color: #c8102e;
    box-shadow: 0 3px 14px rgba(200, 16, 46, 0.10);
  }

  .brt-enhancer-wrap.brt-selected {
    border-color: #c8102e;
    box-shadow: 0 4px 18px rgba(200, 16, 46, 0.18);
  }


/* ── HEADER rosso ────────────────────────────────────────── */
.brt-card-header {
  background: linear-gradient(135deg, #c8102e 0%, #a0102b 100%);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 64px;
  user-select: none;
  outline: none;
}

  .brt-card-header:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
  }


/* ── Radio visivo (cerchio che si riempie al click) ─────── */
.brt-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.brt-radio-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #FFD700;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: scale(0.5);
}

.brt-selected .brt-radio {
  border-color: #fff;
}

.brt-selected .brt-radio-dot {
  opacity: 1;
  transform: scale(1);
}


/* ── Logo BRT su sfondo bianco ────────────────────────────── */
.brt-logo-wrap {
  background: #fff;
  border-radius: 5px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 76px;
  min-height: 40px;
}

  .brt-logo-wrap img {
    height: 30px;
    width: auto;
    display: block;
  }

.brt-logo-fallback {
  font-size: 20px;
  font-weight: 900;
  color: #c8102e;
  letter-spacing: -1px;
  line-height: 1;
}


/* ── Testo header ─────────────────────────────────────────── */
.brt-title-group {
  flex: 1;
  min-width: 0;
  color: #fff;
}

  .brt-title-group strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px;
  }

  .brt-title-group span {
    font-size: 12px;
    opacity: 0.88;
  }


/* ── Badges ───────────────────────────────────────────────── */
.brt-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.brt-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  white-space: nowrap;
  line-height: 1.5;
}

.brt-badge-free {
  background: #FFD700;
  color: #333;
  border-color: #FFD700;
  font-weight: 700;
}


/* ── BODY espandibile ─────────────────────────────────────── */
.brt-card-body {
  padding: 16px 18px;
  border-top: 1px solid #f0f0f0;
  cursor: default;
  animation: brtBodyIn 0.2s ease;
}

  .brt-card-body[hidden] {
    display: none !important;
  }

@keyframes brtBodyIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ── Label selettore ──────────────────────────────────────── */
.brt-select-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin: 0 0 9px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

  .brt-select-label::before {
    content: "📍";
    font-size: 14px;
  }


/* ── Select originale spostato nella card ─────────────────── */
.brt-inline-select,
#brt-select-container select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  padding: 10px 36px 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #222; /* stronger contrast for selected value */
  background-color: #fff; /* use white background to improve contrast */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.2s;
  cursor: pointer;
  line-height: 1.3; /* ensure proper vertical alignment */
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  height: auto !important;
}

.brt-inline-select option {
  color: #222; /* options readable */
  background-color: #fff;
}

/* hide IE/Edge default dropdown arrow if needed */
.brt-inline-select::-ms-expand { display: none; }

  .brt-inline-select:focus,
  #brt-select-container select:focus {
    outline: none;
    border-color: #c8102e;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
  }


/* ── Punto singolo ────────────────────────────────────────── */
.brt-point-single {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #fff8f8;
  border: 1px solid #f5c6cc;
  border-left: 4px solid #c8102e;
  border-radius: 6px;
  padding: 12px 14px;
}

.brt-point-name {
  font-weight: 700;
  color: #c8102e;
  font-size: 14px;
}

.brt-point-addr {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.brt-point-hours {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
}

.brt-point-fee {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}


/* ── Pannello dettaglio ───────────────────────────────────── */
.brt-point-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 12px;
  background: #fff8f8;
  border: 1px solid #f5c6cc;
  border-left: 4px solid #c8102e;
  border-radius: 6px;
  padding: 11px 14px;
  animation: brtBodyIn 0.2s ease;
}

  .brt-point-detail[hidden] {
    display: none !important;
  }

.brt-point-detail-name {
  font-weight: 700;
  color: #c8102e;
  font-size: 13.5px;
}

.brt-point-detail-addr,
.brt-point-detail-hours {
  font-size: 12.5px;
  color: #666;
  line-height: 1.5;
}


/* ── FOOTER ───────────────────────────────────────────────── */
.brt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 18px;
  background: #f9f9f9;
  border-top: 1px solid #efefef;
  font-size: 11.5px;
  color: #888;
  cursor: default;
}


/* ── Dati nascosti (solo per JS) ─────────────────────────── */
.brt-points-data,
.brt-points-data[hidden] {
  display: none !important;
}


/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .brt-card-header {
    gap: 10px;
  }

  .brt-badges {
    width: 100%;
  }

  .brt-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
