/* ===========================================
   FILE: assets/css/frete-popup.css
   OBJETIVO: Estilizar os popups de frete e retirada
   Autor: PC Gamer Brasília
   =========================================== */

/* ====== Estrutura base do modal (ambos) ====== */
.pcg-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none; /* controlado via JS */
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}

.pcg-gratis{
    font-weight: bold;
    color: green;
}

.pcg-popup.is-open {
  display: flex;
}

.pcg-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.pcg-popup-frete {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 50%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.pcg-popup-retira {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 90%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* ===== Cabeçalho / rodapé ===== */
.pcg-popup-head {
    /* background: #f8f8f8; */
    padding: 0px 15px;
    /* border-bottom: 1px solid #e1e1e1; */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pcg-popup-head strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: #111;
}

.pcg-popup-close {
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 8px;
}
.pcg-popup-close:hover {
  color: #000;
}

.pcg-popup-body {
  padding: 0px 10px;
  overflow-y: auto;
}

/* ===== Botões gerais ===== */
.pcg-btn, .btn.btn-azul-outline {
    background: #0070f3;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    text-align: center;
	text-decoration:none;
}
.pcg-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.btn.btn-azul-outline {
  background: transparent;
  color: #0070f3;
  border: 1px solid #0070f3;
}
.btn.btn-azul-outline:hover {
  background: #0070f3;
  color: #fff;
}

/* ===== Tabela de frete ===== */
.pcg-frete-tabela {
  width: 100%;
  border-collapse: collapse;
	margin:5px;
}

.pcg-frete-tabela th,
.pcg-frete-tabela td {
  padding: 5px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.pcg-frete-tabela-inline th {
  text-align: left;
}
.pcg-frete-tabela-inline {
  margin: 0;
}

.pcg-frete-tabela th {
  font-weight: 600;
  color: #333;
  background: #fafafa;
}

.pcg-frete-tabela tr:hover {
  background: #f5f7ff;
}

.frete-erro {
  color: #c00;
  font-size: 14px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.frete-imposto,
.frete-avisos  {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
.frete-imposto,
.frete-avisos  strong {
  color: #000;
}

.frete-avisos a {
  color: #0070f3;
  text-decoration: none;
}
.frete-imposto,
.frete-avisos a:hover {
  text-decoration: none;
}

/* ===== Input CEP ===== */
.pcg-cep-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pcg-cep-row label {
  font-weight: 600;
  font-size: 14px;
}
.pcg-cep-row .input {
    /* flex: 1; */
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
    width: 100px;
}

/* ===== Popup Retira - layout interno ===== */
.pcg-popup-retira .retira-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5px;
}
@media (max-width: 900px) {
  .pcg-popup-retira .retira-grid {
    grid-template-columns: 1fr;
  }
}

.retira-card {
  background: #fafafa;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.retira-loja {
  display: flex;
  align-items: center;
  gap: 10px;
}
.retira-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}
.retira-nome {
  font-size: 16px;
  margin: 0;
}
.retira-sub {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
	font-weight: 600;
}

.retira-end {
  font-style: normal;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
	margin:0;
}

.retira-horarios {
  font-size: 14px;
  color: #444;
}
.retira-horarios .sep {
  color: #999;
  margin: 0 4px;
}
.retira-badge {
    display: flex;
    gap: 5px;
    background: #e6f3ff;
    color: #0070f3;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    align-items: center;
    justify-content: center;
}


.retira-meta {
  font-size: 13px;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.retira-dicas {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 5px 5px;
}
.retira-dicas summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}
.retira-dicas ul {
  margin: 8px 0 0 16px;
  padding: 0;
  font-size: 13.5px;
  color: #555;
  list-style: disc;
}
.retira-dicas li + li {
  margin-top: 6px;
}

.retira-cta {
  display: flex;
  gap: 10px;
}

.frete-avisos span strong{
    font-size: 12px;
    color: black;
}

/* ===== Mapa ===== */
.retira-mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 250px;
  border: 0;
  border-radius: 8px;
}

/* ===== Acessibilidade / Scroll lock ===== */
body.no-scroll {
  overflow: hidden !important;
}
.retira-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.retira-meta small { color:#777; }
.retira-mapa { position: relative; min-height: 520px; }
.retira-mapa iframe, .retira-mapa .mapa-link {
  position:absolute; inset:0; width:100%; height:100%; border:0; border-radius:0 12px 12px 0;
}
.mapa-link img { width:100%; height:100%; object-fit: cover; display:block; border-radius:10px;}
.mapa-badge { position:absolute; top:14px; left:14px; background:#111; color:#fff; padding:6px 10px; border-radius:999px; font-size:12px; opacity:.9; }
.retira-grid .material-symbols-outlined { font-size:16px; margin:0; }

@media (max-width: 900px) {
  .retira-grid { grid-template-columns:1fr; min-height:auto; }
  .retira-card { border-right:0; border-bottom:1px solid #e6e6e6; }
  .retira-mapa { min-height:260px; }
  .retira-mapa iframe, .retira-mapa .mapa-link {
    position:relative; inset:auto; width:100%; height:100%;
    border-radius:0 0 12px 12px;
  }
}
/* ===== Responsividade extra ===== */
@media (max-width: 600px) {
  .pcg-popup-frete {
    width: 96%;
    padding: 0;
  }
.retira-cta {
    display: none;
  }
.retira-end, 
.retira-horarios,
.retira-sub {
font-size:12px;
	}
.pcg-popup-retira {
    width: 96%;
    padding: 0;
  }
  .pcg-popup-head strong {
    font-size: 15px;
  }
  .pcg-frete-tabela th,
  .pcg-frete-tabela td {
    font-size: 13px;
  }
  .retira-dicas ul {
    margin-left: 12px;
  }
}
