/* =========================================================
   PEDAGOGIA – MINHA CONTA: Estilo completo (versão aprimorada)
   Escopo: páginas da área Minha Conta do WooCommerce
   ========================================================= */

/* Reset leve de cards */
.custom-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* =========================
   CABEÇALHO E MENU (versão premium)
   ========================= */
.custom-my-account-header {
  text-align: center;
  margin: 20px 0;
}
.custom-my-account-header p {
  font-size: 15px;
  color: #333;
}
.custom-my-account-header a {
  color: #777;
  font-size: 13px;
  text-decoration: none;
}
.custom-my-account-header a:hover {
  text-decoration: underline;
}
.custom-my-account-header h2 {
  color: #000;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 22px;
  margin-top: 10px;
}

/* 🌟 MENU MINHA CONTA – Design aprimorado */
.custom-account-nav-wrapper {
  max-width: 1000px;
  margin: 25px auto 40px;
  padding: 0 15px;
}

.custom-account-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.custom-account-nav a {
  position: relative;
  flex: 1 1 calc(33.333% - 16px);
  min-width: 140px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #fef9dc);
  border: 1.5px solid #e5e5e5;
  border-radius: 14px;
  padding: 18px 10px;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-account-nav a i {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
  color: #bcc802;
  transition: color 0.25s ease;
}

.custom-account-nav a span {
  display: block;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.custom-account-nav a:hover,
.custom-account-nav a.active {
  background: linear-gradient(180deg, #f0c816, #dfb912);
  color: #000;
  border-color: #f0c816;
  box-shadow: 0 4px 12px rgba(240, 200, 22, 0.3);
  transform: translateY(-3px);
}

.custom-account-nav a:hover i,
.custom-account-nav a.active i {
  color: #000;
}

/* Ícone decorativo flutuante */
.custom-account-nav a.active::after {
  content: "★";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 14px;
  color: #000;
  opacity: 0.7;
}

/* Responsividade */
@media (max-width: 768px) {
  .custom-account-nav a {
    flex: 1 1 calc(50% - 10px);
    font-size: 13px;
    padding: 16px 8px;
  }
}
@media (max-width: 480px) {
  .custom-account-nav a {
    flex: 1 1 100%;
  }
}

/* Oculta textos padrão redundantes */
.woocommerce-MyAccount-content > p:first-of-type,
.woocommerce-MyAccount-content > p:nth-of-type(2),
.woocommerce-MyAccount-content .dashboard-links {
  display: none !important;
}

/* =========================
   DASHBOARD (início)
   ========================= */
.custom-dashboard-box {
  background: #fff;
  padding: 20px;
  margin: 20px auto 30px;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  border-radius: 10px;
}
.custom-dashboard-box h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #F0C816;
}
.custom-dashboard-box p {
  font-size: 15px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* =========================
   LOGIN / CADASTRO (visitante)
   ========================= */
.woocommerce-account .u-columns {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  max-width: 1050px;
}
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  width: 100%;
  max-width: 500px;
}
.woocommerce-account h2 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin: 15px 0 25px;
  color: #222;
  letter-spacing: .5px;
}

/* Inputs e foco */
.woocommerce-account input.input-text {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.woocommerce-account input.input-text:focus {
  border-color: #f0c816;
  outline: none;
  box-shadow: 0 0 0 2px rgba(240,200,22,.2);
}

/* Campo de senha com botão mostrar */
.woocommerce-account .password-input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.woocommerce-account .password-input input { flex: 1; padding-right: 40px; }
.woocommerce-account .password-input .show-password-input {
  position: absolute;
  right: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  opacity: .6;
}
.woocommerce-account .password-input .show-password-input:hover { opacity: 1; }

/* Botões gerais */
.woocommerce-account button,
.woocommerce-account .button {
  background: #f0c816;
  border: none;
  padding: 12px;
  width: 100%;
  font-weight: 700;
  border-radius: 8px;
  transition: all .2s ease;
  margin-top: 5px;
  color: #000;
}
.woocommerce-account button:hover,
.woocommerce-account .button:hover {
  background: #d9b512;
}

/* Botões sociais */
.woocommerce-account .nsl-button {
  border-radius: 8px !important;
  padding: 10px !important;
  width: 100% !important;
  margin-top: 10px !important;
}

/* Links auxiliares */
.woocommerce-account .woocommerce-LostPassword { text-align: center; margin-top: 10px; }
.woocommerce-account .woocommerce-LostPassword a {
  color: #f0c816; font-weight: 600; text-decoration: none;
}
.woocommerce-account .woocommerce-LostPassword a:hover { text-decoration: underline; }

/* Selo de confiança */
.woocommerce-account .woocommerce-form-login::after,
.woocommerce-account .woocommerce-form-register::after {
  content: "🔒 Ambiente seguro – seus dados estão protegidos";
  display: block;
  text-align: center;
  font-size: 13px;
  margin-top: 15px;
  color: #666;
}

/* Responsivo login/cadastro */
@media (max-width: 768px) {
  .woocommerce-account .u-columns { flex-direction: column; align-items: center; }
}

/* =========================
   REDEFINIÇÃO DE SENHA
   ========================= */
.woocommerce-account .woocommerce-ResetPassword,
.woocommerce-account .lost_reset_password {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  max-width: 680px;
  margin: 40px auto;
}
.woocommerce-account .woocommerce-ResetPassword::before {
  content: "🔑 Redefinir Senha";
  display: block;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}
.woocommerce-account .woocommerce-ResetPassword p:first-of-type {
  text-align: center;
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}
.woocommerce-account .woocommerce-ResetPassword label {
  font-weight: 600; color: #333; margin-bottom: 6px; display: block;
}
.woocommerce-account .woocommerce-ResetPassword input.input-text {
  width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #ccc; margin-bottom: 20px; transition: border-color .2s;
}
.woocommerce-account .woocommerce-ResetPassword input.input-text:focus {
  border-color: #f0c816; outline: none; box-shadow: 0 0 0 2px rgba(240,200,22,.2);
}
.woocommerce-account .woocommerce-ResetPassword button.button {
  background: #f0c816; border: none; padding: 12px; width: 100%; font-weight: 700; border-radius: 8px; transition: all .2s ease; color: #000;
}
.woocommerce-account .woocommerce-ResetPassword button.button:hover { background: #d9b512; }

/* =========================
   MENSAGENS (sucesso/erro/info)
   ========================= */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-info {
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px auto;
  max-width: 600px;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  gap: 8px;
}
.woocommerce-account .woocommerce-message {
  background: #e8fbe8; border: 1px solid #2ecc71; color: #2e7d32;
}
.woocommerce-account .woocommerce-error {
  background: #fdecea; border: 1px solid #e74c3c; color: #c0392b;
}
.woocommerce-account .woocommerce-info {
  background: #e8f4fc; border: 1px solid #3498db; color: #21618c;
}
.woocommerce-account .woocommerce-message::before { content: "✔️"; font-size: 18px; }
.woocommerce-account .woocommerce-error::before   { content: "❌"; font-size: 18px; }
.woocommerce-account .woocommerce-info::before    { content: "ℹ️"; font-size: 18px; }

/* =========================
   LISTAGEM DE PEDIDOS
   ========================= */
.pedagogia-orders-title {
  text-align: center; color: #bcc802; font-size: 18px; margin-bottom: 10px;
}
.pedagogia-orders-filter { text-align: center; margin-bottom: 20px; }
.pedagogia-orders-filter label { margin-right: 8px; font-weight: 700; }
.pedagogia-orders-filter select {
  padding: 6px 10px; border: 1px solid #bcc802; border-radius: 6px; min-width: 250px; text-align: center;
}
.pedagogia-orders-count { text-align: center; margin-bottom: 20px; }

.custom-orders-container {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
}
.custom-order-card {
  background: #fff; border: 2px solid #F6F6F6; border-radius: 10px; padding: 15px;
  max-width: 400px; width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.custom-order-card:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.custom-order-header {
  text-align: center; padding: 8px; border-radius: 6px; font-weight: 700; color: #333; margin-bottom: 10px;
}
.custom-order-card p { margin: 5px 0; font-size: 14px; color: #333; }
.custom-order-button {
  display: block; text-align: center; margin-top: 10px; background: #bcc802; color: #000;
  padding: 10px; border-radius: 6px; text-decoration: none; font-weight: 700;
}
.custom-order-button:hover { background: #F0C816; color: #000; }

.custom-orders-pagination { margin-top: 20px; text-align: center; }
.custom-orders-pagination .page-numbers {
  display: inline-block; margin: 0 5px; padding: 6px 12px; border: 1px solid #f6f6f6; border-radius: 6px; color: #000; text-decoration: none;
}
.custom-orders-pagination .page-numbers.current {
  background: #F0C816; font-weight: 700; margin-bottom: 20px;
}

/* =========================
   VISUALIZAR PEDIDO
   ========================= */
.custom-view-order {
  background: #fff; border: 2px solid #f9f9f9; border-radius: 10px;
  padding: 20px; margin: 20px; box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.custom-title { text-align: center; color: #bcc802; margin-bottom: 10px; font-weight: 700; }
.custom-meta, .custom-status {
  text-align: center; color: #333; margin-bottom: 5px;
}
.custom-status { font-weight: 700; font-size: 14px; margin-bottom: 18px; }

.custom-pay, .custom-reorder { text-align: center; margin-bottom: 18px; }
.custom-pay-button, .custom-reorder-button {
  display: inline-block; padding: 12px 18px; background: #F0C816; border-radius: 6px;
  text-decoration: none; color: #000; font-weight: 700;
}
.custom-pay-button:hover, .custom-reorder-button:hover { background: #BCC802; }

.section-title { margin-top: 18px; color: #333; font-size: 16px; font-weight: 700; }
.custom-items { display: block; }
.custom-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #eee; padding: 10px; border-radius: 6px; background: #fafafa; margin-bottom: 10px;
}
.custom-item-img { width: 50px; height: auto; border-radius: 4px; }
.custom-item-info { font-size: 14px; color: #333; }

.custom-downloads { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.custom-download-button {
  background: #bcc802; padding: 10px; border-radius: 6px; text-align: center; color: #000;
  text-decoration: none; font-weight: 700;
}
.custom-download-button:hover { background: #F0C816; }

.custom-review-buttons {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px;
}
.custom-review-button {
  background: #fff; border: 2px solid #bcc802; border-radius: 6px; padding: 8px 12px;
  text-decoration: none; color: #000; font-weight: 700; font-size: 13px;
}
.custom-review-button:hover { background: #F0C816; }

/* Botão Voltar */
.custom-back { text-align: center; margin: 25px auto; }
.custom-back-button {
  display: inline-block; background: #F0C816; color: #000; border-radius: 6px; padding: 10px 18px;
  font-weight: 700; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: background .3s ease, transform .2s ease;
}
.custom-back-button:hover { background: #BCC802; transform: translateY(-2px); }

/* =========================
   DETALHES DA CONTA (editar conta)
   ========================= */
.woocommerce-account .woocommerce-MyAccount-content form.edit-account {
  background: #fff; border: 2px solid #F0C816; border-radius: 10px;
  padding: 25px; margin: 20px auto; max-width: 750px; box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account h3,
.woocommerce-account .woocommerce-MyAccount-content form.edit-account legend,
.section-icon-title {
  color: #F0C816; font-size: 18px; font-weight: 700; margin: 15px 0; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account label {
  font-weight: 600; margin-bottom: 6px; display: block; color: #333; font-size: 14px;
}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account input.input-text {
  width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 10px; font-size: 14px; background: #fff;
}

/* Duas colunas */
.woocommerce-account .woocommerce-MyAccount-content form.edit-account .form-row-first,
.woocommerce-account .woocommerce-MyAccount-content form.edit-account .form-row-last { width: 48%; }
.woocommerce-account .woocommerce-MyAccount-content form.edit-account .form-row-first { float: left; }
.woocommerce-account .woocommerce-MyAccount-content form.edit-account .form-row-last { float: right; }
.woocommerce-account .woocommerce-MyAccount-content form.edit-account .clear { clear: both; }

/* Botão salvar */
.woocommerce-account .woocommerce-MyAccount-content form.edit-account .woocommerce-Button.button {
  background: #F0C816; color: #000; font-weight: 700; border: none; border-radius: 6px; padding: 12px 25px;
  cursor: pointer; transition: all .3s ease; display: block; margin: 20px auto 0; text-transform: uppercase;
}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account .woocommerce-Button.button:hover {
  background: #BCC802;
}
#account_display_name_description em { font-size: 12px; color: #666; }

/* =========================
   EDITAR ENDEREÇO
   ========================= */
.custom-edit-address {
  background: #fff; padding: 20px; margin: 20px auto; max-width: 700px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08); border-radius: 10px;
}
.custom-edit-address .custom-title {
  text-align: center; color: #F0C816; margin-bottom: 5px; font-size: 20px; font-weight: 700;
}
.custom-edit-address .custom-subtitle {
  text-align: center; font-size: 14px; margin-bottom: 20px; color: #555;
}
.custom-edit-address fieldset { border: none !important; padding: 0; margin: 0; }
.custom-edit-address legend { font-weight: 700; margin-bottom: 10px; color: #333; }
.custom-edit-address p.form-row { margin-bottom: 15px !important; }
.custom-edit-address input.input-text,
.custom-edit-address select {
  width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 10px; font-size: 14px; background: #fff;
}
.custom-edit-address button.button {
  background: #F0C816 !important; color: #000 !important; font-weight: 700; border: none; border-radius: 6px;
  padding: 12px 20px; cursor: pointer; transition: all .3s ease; display: block; margin: 20px auto 0;
}
.custom-edit-address button.button:hover { background: #BCC802 !important; }

/* =========================
   AJUSTES FINAIS
   ========================= */
/* Remove “Order updates/notes” padrão na área do pedido */
.woocommerce-OrderUpdates.commentlist.notes { display: none !important; }

/* Some headings redundantes inseridos pelo template padrão */
.woocommerce-MyAccount-content > h2:first-of-type { display: none !important; }

/* ===========================================================
   📦 Pedagogia – Estilos da seção "Meus Downloads"
   =========================================================== */

.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.woocommerce-order-group {
    margin-bottom: 30px;
    padding: 15px;
    border: 2px solid #F6F6F6;
    border-radius: 10px;
    background: #fff8d9;
}

.woocommerce-order-group h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #000;
    font-size: 16px;
    background: #F0C816;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.woocommerce-MyAccount-downloads-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.woocommerce-MyAccount-download-item {
    flex: 1 1 calc(33.333% - 20px);
    max-width: 320px;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-MyAccount-download-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
    .woocommerce-MyAccount-download-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .woocommerce-MyAccount-download-item {
        flex: 1 1 100%;
    }
}

.woocommerce-MyAccount-download-item img {
    width: 100%;
    max-width: 140px;
    height: auto;
    margin-bottom: 12px;
    border-radius: 6px;
}

.download-item-name {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 6px;
    color: #000;
}

.custom-download-button {
    padding: 10px 14px;
    font-weight: 500;
    font-size: 14px;
    color: #000 !important;
    background: #bcc802;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.custom-download-button:hover {
    background: #BCC802;
    color: #000 !important;
}

/* Oculta o campo "Senha atual" na edição de conta */
form.edit-account p#password_current_field {
  display: none !important;
}

