/* USEPTZ Perguntas v1.2.8 */

/* ---- Botão na linha Tabela de tamanhos / Envio ---- */
.product-quantity .product-tab-review-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}
.product-quantity .bon-product-popup.ptz-ask-inline {
  display: inline-flex;
  align-items: center;
  margin: 0 20px 0 0;
  overflow: visible;
  vertical-align: middle;
}
.product-quantity .ptz-ask-btn.title-popup-1 {
  display: inline-flex !important;
  align-items: center;
  float: none !important;
  font-size: 13px;
  line-height: 1;
  color: #3a3a3a;
  cursor: pointer;
  transition: color 0.3s linear;
  text-decoration: none;
}
.product-quantity .ptz-ask-btn.title-popup-1:hover {
  color: #0ab3a3;
  text-decoration: none;
}
.product-quantity .ptz-ask-btn.title-popup-1::before {
  content: '\e819';
  font-family: 'fl-outicons';
  font-size: 14px;
  color: inherit;
  margin-right: 5px;
  line-height: 1;
  display: inline-block;
  position: relative;
  top: 0;
  vertical-align: middle;
  transition: color 0.3s linear;
}
.product-quantity .ptz-ask-btn.title-popup-1 span {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

/* Esconde Bonask antigo */
a.a-bon-ask,
#bonask-wrapper {
  display: none !important;
}

/* ---- Popup próprio (NÃO usa Bootstrap) ---- */
.ptz-popup[hidden] {
  display: none !important;
}
.ptz-popup {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.ptz-popup.is-open {
  display: flex !important;
}
.ptz-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  cursor: pointer;
}
.ptz-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  padding: 28px 28px 24px;
  box-sizing: border-box;
}
.ptz-popup__dialog--wide {
  max-width: 520px;
}
.ptz-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
}
.ptz-popup__close:hover {
  color: #222;
}
.ptz-popup__title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 32px 6px 0;
  color: #2d2d2d;
}
.ptz-popup__subtitle {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #777;
  line-height: 1.45;
}
html.ptz-popup-open,
body.ptz-popup-open {
  overflow: hidden !important;
}

/* Login popup */
.ptz-login-form {
  margin-top: 8px;
}
.ptz-login-field {
  margin-bottom: 16px;
}
.ptz-login-field label {
  display: block;
  width: 100%;
  float: none;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3a3a3a;
  margin-bottom: 6px;
}
.ptz-login-input {
  height: 46px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ptz-login-input:focus {
  border-color: #0ab3a3;
  box-shadow: 0 0 0 3px rgba(10, 179, 163, 0.15);
}
.ptz-login-pass-wrap {
  position: relative;
}
.ptz-login-pass-wrap .ptz-login-input {
  padding-right: 88px;
}
.ptz-login-show {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  background: #f0f0f0;
  color: #555;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ptz-login-show:hover {
  background: #e4e4e4;
}
.ptz-login-forgot {
  text-align: center;
  margin: 0 0 18px;
  font-size: 0.875rem;
}
.ptz-login-forgot a {
  color: #3a3a3a;
  text-decoration: underline;
}
.ptz-login-forgot a:hover {
  color: #0ab3a3;
}
.ptz-login-submit {
  height: 48px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 0;
  border-radius: 6px;
  background: #0ab3a3;
  transition: background 0.2s ease;
}
.ptz-login-submit:hover,
.ptz-login-submit:focus {
  background: #099b8c;
}
.ptz-login-register {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}
.ptz-login-register a {
  color: #0ab3a3;
  font-weight: 600;
  margin-left: 4px;
}
.ptz-login-register a:hover {
  text-decoration: underline;
}

.ptz-ask-alert {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
}
.ptz-ask-alert.is-ok {
  background: #dff0d8;
  color: #3c763d;
}
.ptz-ask-alert.is-err {
  background: #f2dede;
  color: #a94442;
}
#ptz-ask-submit {
  min-width: 160px;
  font-weight: 600;
}

/* ---- Conta: lista (tabela estilo admin) ---- */
.ptz-msg {
  max-width: 100%;
}
.ptz-msg__intro {
  color: #666;
  margin-bottom: 16px;
}
.ptz-msg-panel {
  background: #fff;
  border: 1px solid #dbe6e9;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.ptz-msg-panel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-left: 8px;
  border-radius: 999px;
  background: #6c868e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.ptz-msg-panel__count--title {
  position: relative;
  top: -2px;
}
.ptz-msg-table-wrap {
  margin: 0;
}
.ptz-msg-table {
  margin-bottom: 0;
  font-size: 0.875rem;
}
.ptz-msg-table thead th {
  background: #fafbfc;
  border-bottom: 1px solid #dbe6e9;
  color: #25b9d7;
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  vertical-align: middle;
  padding: 12px 14px;
}
.ptz-msg-table tbody td {
  border-top: 1px solid #e9ecef;
  color: #363a41;
  vertical-align: middle;
  padding: 12px 14px;
}
.ptz-msg-table tbody tr:hover {
  background: #f5fcfd;
}
.ptz-msg-table__th-id,
.ptz-msg-table__id {
  width: 56px;
  white-space: nowrap;
}
.ptz-msg-table__th-date,
.ptz-msg-table__date {
  width: 150px;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: #6c757d;
}
.ptz-msg-table__th-product,
.ptz-msg-table__product {
  min-width: 140px;
  max-width: 200px;
}
.ptz-msg-table__product-name {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}
.ptz-msg-table__th-question,
.ptz-msg-table__question {
  min-width: 180px;
  color: #555;
  line-height: 1.45;
}
.ptz-msg-table__th-status,
.ptz-msg-table__status {
  width: 130px;
  white-space: nowrap;
}
.ptz-msg-table__th-action,
.ptz-msg-table__action {
  width: 100px;
  white-space: nowrap;
}
.ptz-msg-table__row--unread {
  background: #f6fff9;
}
.ptz-msg-table__row--unread:hover {
  background: #eefbf3;
}
.ptz-msg-table__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  border-color: #25b9d7;
  color: #25b9d7;
}
.ptz-msg-table__btn:hover {
  background: #25b9d7;
  border-color: #25b9d7;
  color: #fff;
}
.ptz-msg-table__btn .material-icons {
  font-size: 16px;
  line-height: 1;
}
.ptz-msg-empty {
  padding: 28px 24px;
  background: #f7f7f7;
  border-radius: 8px;
  color: #555;
}
.ptz-msg-empty p {
  margin: 0 0 8px;
}

.ptz-msg-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}
.ptz-msg-badge--ok {
  background: #70b580;
  color: #fff;
}
.ptz-msg-badge--wait {
  background: #f0ad4e;
  color: #fff;
}
.ptz-msg-badge--new {
  background: #25d366;
  color: #fff;
}

/* ---- Conta: conversa estilo WhatsApp ---- */
.ptz-wa {
  max-width: 720px;
  margin: 0 auto;
}
.ptz-wa-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d1d7db;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  background: #fff;
}
.ptz-wa-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #075e54;
  color: #fff;
  min-height: 58px;
}
.ptz-wa-head__back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1;
}
.ptz-wa-head__back:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}
.ptz-wa-head__avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #128c7e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.ptz-wa-head__info {
  flex: 1 1 auto;
  min-width: 0;
}
.ptz-wa-head__title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}
.ptz-wa-head__sub {
  font-size: 0.78rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ptz-wa-head__sub a {
  color: #e7fffa;
  text-decoration: none;
}
.ptz-wa-head__sub a:hover {
  text-decoration: underline;
  color: #fff;
}
.ptz-wa-head__status {
  flex: 0 0 auto;
}
.ptz-wa-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
}
.ptz-wa-chip--ok {
  background: rgba(37, 211, 102, 0.25);
  color: #d2ffe3;
}
.ptz-wa-chip--wait {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.ptz-wa-chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 12px 20px;
  min-height: 320px;
  max-height: 62vh;
  overflow-y: auto;
  background-color: #e5ddd5;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(0, 0, 0, 0.035) 1.5px, transparent 2px),
    radial-gradient(circle at 72% 42%, rgba(0, 0, 0, 0.03) 1.5px, transparent 2px),
    radial-gradient(circle at 40% 78%, rgba(0, 0, 0, 0.028) 1.2px, transparent 2px);
  background-size: 48px 48px, 64px 64px, 56px 56px;
}

.ptz-wa-day {
  align-self: center;
  margin: 4px 0 10px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(225, 234, 239, 0.92);
  color: #54656f;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.ptz-wa-row {
  display: flex;
  width: 100%;
}
.ptz-wa-row--out {
  justify-content: flex-end;
}
.ptz-wa-row--in {
  justify-content: flex-start;
}
.ptz-wa-row--center {
  justify-content: center;
}

.ptz-wa-bubble {
  position: relative;
  max-width: min(78%, 480px);
  padding: 8px 10px 6px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  word-wrap: break-word;
}
.ptz-wa-bubble--out {
  background: #dcf8c6;
  border-top-right-radius: 2px;
}
.ptz-wa-bubble--out::after {
  content: '';
  position: absolute;
  top: 0;
  right: -7px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 10px 8px;
  border-color: transparent transparent transparent #dcf8c6;
}
.ptz-wa-bubble--in {
  background: #fff;
  border-top-left-radius: 2px;
}
.ptz-wa-bubble--in::before {
  content: '';
  position: absolute;
  top: 0;
  left: -7px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 10px 0;
  border-color: transparent #fff transparent transparent;
}
.ptz-wa-bubble__who {
  font-size: 0.78rem;
  font-weight: 700;
  color: #075e54;
  margin-bottom: 2px;
}
.ptz-wa-bubble__text {
  color: #111b21;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
  padding-right: 4px;
}
.ptz-wa-bubble__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 2px;
  margin-left: 12px;
  float: right;
  clear: both;
}
.ptz-wa-bubble__time {
  font-size: 0.68rem;
  color: #667781;
  line-height: 1;
  white-space: nowrap;
}
.ptz-wa-checks {
  font-size: 0.72rem;
  color: #53bdeb;
  letter-spacing: -2px;
  line-height: 1;
}
.ptz-wa-checks--sent {
  color: #8696a0;
  letter-spacing: 0;
}

.ptz-wa-notice {
  max-width: 90%;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 248, 220, 0.95);
  color: #5c4b1a;
  font-size: 0.82rem;
  text-align: center;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.ptz-wa-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #f0f2f5;
  border-top: 1px solid #e9edef;
}
.ptz-wa-foot__link {
  color: #075e54;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.ptz-wa-foot__link:hover {
  text-decoration: underline;
  color: #128c7e;
}

/* legado (lista ainda usa badges) */
.ptz-msg-back {
  display: inline-block;
  margin-bottom: 16px;
  color: #0ab3a3;
  font-weight: 600;
  text-decoration: none;
}
.ptz-msg-back:hover {
  text-decoration: underline;
}

@media (max-width: 575px) {
  .ptz-wa-bubble {
    max-width: 88%;
  }
  .ptz-wa-chat {
    min-height: 280px;
    max-height: 58vh;
    padding: 12px 8px 16px;
  }
  .ptz-wa-head__status {
    display: none;
  }
}

@media (max-width: 767px) {
  .ptz-msg-table thead {
    display: none;
  }
  .ptz-msg-table tbody tr {
    display: block;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 14px;
  }
  .ptz-msg-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    padding: 6px 0;
    text-align: right;
  }
  .ptz-msg-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #25b9d7;
    text-align: left;
    flex: 0 0 40%;
  }
  .ptz-msg-table__question {
    text-align: left;
    flex-wrap: wrap;
  }
  .ptz-msg-table__action {
    justify-content: flex-end;
  }
  .ptz-msg-table__action::before {
    display: none;
  }
}

/* legado — removido layout em cards */
#ptz-perguntas-link .account-dashboard-card__icon {
  position: relative;
  overflow: visible;
}
.page-my-account #content .links.account-dashboard #ptz-perguntas-link .account-dashboard-card__icon {
  overflow: visible;
}
.ptz-account-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ptz-account-badge--inline {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  vertical-align: middle;
}
#ptz-perguntas-link.has-ptz-unread .account-dashboard-card {
  border-color: rgba(37, 211, 102, .45);
}

#ptz-perguntas-link .account-dashboard-card {
  min-height: 100%;
}
