/* Client Area - Frontend */
.ca-frontend { max-width: 1140px !important; margin: 0 auto; padding: 24px 32px; width: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }

/* Página limpa (template próprio) */
.ca-page {
  background: #f6f7f7;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
html body.ca-page .ca-site-main,
html body.ca-page .ca-site-header-inner,
html body.ca-page .ca-site-footer {
  max-width: 1140px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.ca-site-header {
  background: #fff; border-bottom: 1px solid #e2e4e7;
  position: sticky; top: 0; z-index: 10;
}
.ca-site-header-inner {
  max-width: 1140px !important; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; gap: 12px;
}
.ca-site-brand {
  font-size: 17px; font-weight: 700; color: #1d2327; text-decoration: none;
}
.ca-site-brand:hover { color: #1d2327; }
.ca-site-tag {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  color: #787c82; background: #f0f0f1; border-radius: 999px; padding: 3px 10px;
}
.ca-site-header-inner .ca-btn { margin-left: auto; }
.ca-site-main { max-width: none !important; margin: 0; padding: 0 0 24px; }
.ca-site-main .ca-frontend { padding: 24px 32px !important; }
.ca-site-footer {
  max-width: 1140px !important; margin: 40px auto 0; padding: 20px 32px;
  border-top: 1px solid #e2e4e7;
}
.ca-site-footer p { margin: 0; font-size: 12px; color: #a7aaad; text-align: center; }

.ca-dash-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.ca-dash-header h2 { margin: 0; font-size: 26px; }
.ca-dash-header p { margin: 4px 0 0; color: #787c82; }
.ca-dash-header-actions { display: flex; gap: 10px; }

.ca-dash-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
  max-width: none !important;
  width: 100%;
}
.ca-dash-main { min-width: 0; }
.ca-dash-sidebar { min-width: 0; }
.ca-card-sticky { position: sticky; top: 84px; }

.ca-card {
  background: #f7f7f7;
  border: 1px solid #e2e4e7;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ca-card h2 { margin:0 0 16px; font-size:18px; display:flex; align-items:center; gap:8px; }

.ca-btn-light { background: #f0f0f1; color: #1d2327; }
.ca-btn-light:hover { background: #e2e4e7; color: #1d2327; }
.ca-btn-block { width: 100%; justify-content: center; }

.ca-loading { color: #787c82; margin: 0; }

/* Alertas */
.ca-alerts-list { display: flex; flex-direction: column; gap: 0; }
.ca-alert-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 12px;
  border: 1px solid #e2e4e7;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, border-color .15s;
  margin-bottom: 10px;
}
.ca-alert-item:hover { background: #f6f7f7; border-color: #c3c4c7; }
.ca-alert-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: #f6f7f7; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #787c82;
}
.ca-alert-body { flex: 1; min-width: 0; }
.ca-alert-body strong { display: block; font-size: 14px; margin-bottom: 2px; color:#1d2327; }
.ca-alert-body p { margin: 0; font-size: 13px; color: #3c434a; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ca-alert-item { transition: opacity .2s; }
.ca-alert-item time { font-size: 11px; color: #a7aaad; flex-shrink: 0; margin-top:2px; }
.ca-alert-dismiss {
  flex-shrink: 0; width: 26px; height: 26px;
  background: #f0f0f1; border: none; border-radius: 6px;
  font-size: 15px; line-height: 1; color: #787c82; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.ca-alert-dismiss:hover { background: #e2e4e7; color: #1d2327; }
.ca-alert-dismiss {
  flex-shrink: 0; width: 26px; height: 26px;
  background: #f0f0f1; border: none; border-radius: 6px;
  font-size: 15px; line-height: 1; color: #787c82; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.ca-alert-dismiss:hover { background: #e2e4e7; color: #1d2327; }

.ca-alert-meta { font-size:12px; color:#a7aaad; margin-bottom:8px; }
.ca-alert-content { font-size:14px; line-height:1.6; color:#3c434a; white-space:pre-wrap; }

/* Mensagens de formulário */
.ca-form-msg {
  padding: 10px 14px; border-radius: 6px; font-size: 13px;
}
.ca-msg-success { background: #e6f6e6; color: #007017; border: 1px solid #bfe6bf; }
.ca-msg-error { background: #fcf0f1; color: #b32d2e; border: 1px solid #f0c0c2; }

/* Explorer no frontend: herda .ca-explorer-* do css compartilhado */
.ca-frontend .ca-breadcrumb { margin-bottom: 16px; }

/* Login */
.ca-login-wrap {
  display: flex; justify-content: center; padding: 40px 16px;
}
.ca-login-card {
  width: 100%; max-width: 400px;
  background: #fff; border: 1px solid #e2e4e7; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  padding: 32px;
}
.ca-login-icon {
  width: 52px; height: 52px; margin: 0 auto 12px;
  background: #f6f7f7; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #3c434a;
}
.ca-login-card h2 { text-align: center; margin: 0 0 4px; font-size: 22px; }
.ca-login-card > p { text-align: center; color: #787c82; margin: 0 0 20px; font-size: 14px; }
.ca-login-error {
  background: #fcf0f1; color: #b32d2e; border: 1px solid #f0c0c2;
  border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px;
}
.ca-login-lostpass {
  display: block; text-align: center; margin-top: 16px;
  font-size: 13px; color: #2271b1; text-decoration: none;
}
.ca-login-lostpass:hover { text-decoration: underline; }

/* Título da página */
.ca-page .entry-title,
.ca-page h1.entry-title,
.ca-site-main .entry-title,
.ca-site-main h1.entry-title,
.ca-site-main h1,
body.ca-client-area .entry-title,
body.ca-client-area h1.entry-title,
body.ca-client-area .entry-header .entry-title {
  display: none !important;
}

/* Top bar conta / login */
.ca-top-account {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99999;
  background: #1d2327;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
header .ca-top-account,
.elementor-location-header .ca-top-account,
.site-header .ca-top-account,
#masthead .ca-top-account {
  position: static !important;
  top: auto !important;
  right: auto !important;
  background: transparent;
  color: #1d2327;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  vertical-align: middle;
}
.ca-menu-account-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: #f4c960;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 600;
}

/* Ajuste de padding dos itens do menu */
.elementor-nav-menu .menu-item a,
.elementor-nav-menu .menu-item a.elementor-item {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.ca-menu-account-link:hover {
  background: #e2a93b;
  color: #fff !important;
}
.ca-menu-account-link:hover {
  opacity: .9;
  color: #fff !important;
}
.ca-menu-account-link .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}
/* Social icons alinhados à direita – mantém comportamento original do Elementor */
.elementor-social-icons-wrapper {
  justify-content: flex-end !important;
}

.elementor-social-icons-wrapper .ca-top-account {
  margin-left: 12px;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.elementor-social-icons-wrapper .ca-top-account .ca-label {
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .elementor-social-icons-wrapper .ca-top-account .ca-label {
    display: none;
  }
}
.elementor-social-icons-wrapper .ca-top-account .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}
.elementor-social-icons-wrapper .ca-top-account span.elementor-screen-only {
  display: none;
}
.ca-top-account .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
.ca-top-account:hover { opacity:.9; color:#fff; }
header .ca-top-account:hover,
.elementor-location-header .ca-top-account:hover {
  color: #2271b1;
  opacity:1;
}

/* Reduz padding do header do tema na área do cliente */
body.ca-client-area .singular .entry-header,
body.ca-client-area .entry-header {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Destaque header da área do cliente */
.ca-dash-header {
  background: #f4c960;
  border: 1px solid #e2a93b;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  color: #1d2327;
}
.ca-dash-header h2 {
  font-size: 28px;
  margin: 0 0 4px;
  color: #1d2327;
}
.ca-dash-header p {
  margin: 0;
  font-size: 15px;
  color: #3c434a;
}


/* Responsivo */
@media (max-width: 1024px) {
  .ca-dash-layout { grid-template-columns: 1fr; }
  .ca-dash-sidebar { order: -1; }
  .ca-card-sticky { position: static; }
}
@media (max-width: 600px) {
  .ca-frontend { padding: 16px; }
  .ca-explorer-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .ca-dash-header { flex-direction: column; align-items: flex-start; }
  .ca-form-cols, .ca-form-cols-3 { grid-template-columns: 1fr; }
}

/* Remover sublinhado geral na área do cliente */
.ca-frontend a { text-decoration: none !important; }
.ca-frontend a:hover { text-decoration: none !important; }
.ca-frontend .ca-btn,
.ca-frontend button,
.ca-frontend input[type="button"],
.ca-frontend input[type="submit"] { text-decoration: none !important; box-shadow: none; }

