/* Botao flutuante "Solicitar acesso ao portal" + popup. Prefixo sesc-os; seletores com # para vencer o CSS do tema. */
#sesc-os-modal[hidden], #sesc-os-modal [hidden] { display: none !important; }

.sesc-os-fab { position: fixed; right: 20px; bottom: 20px; z-index: 9990;
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 13px 20px 13px 16px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: #0b4a8f !important; color: #fff !important; font: 700 15px/1 "Open Sans", Arial, sans-serif; letter-spacing: .2px;
  box-shadow: 0 4px 14px rgba(11, 42, 100, .35), 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.sesc-os-fab:hover { background: #083a73 !important; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 42, 100, .4), 0 2px 4px rgba(0, 0, 0, .2); }
.sesc-os-fab:focus-visible { outline: 3px solid #ffd400; outline-offset: 2px; }
.sesc-os-fab svg { flex: none; }
.sesc-os-fab .sesc-os-fab-s { display: none; }

#sesc-os-modal.sesc-os-overlay { position: fixed; inset: 0; top: 0; right: 0; bottom: 0; left: 0; z-index: 99990;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 23, 42, .55); overflow-y: auto; -webkit-overflow-scrolling: touch; }
#sesc-os-modal .sesc-os-dialog { position: relative; width: 100%; max-width: 480px; margin: auto;
  background: #fff; border-radius: 16px; overflow: hidden; border-top: 5px solid #f5c400;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); font-family: "Open Sans", Arial, sans-serif; color: #1f2937;
  animation: sesc-os-in .18s ease-out; }
@keyframes sesc-os-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

#sesc-os-modal .sesc-os-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: #f4f6fb; border-bottom: 1px solid #e5e8f0; }
#sesc-os-modal .sesc-os-head h2 { margin: 0; padding: 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: #0b2a64; text-transform: none; }
#sesc-os-modal .sesc-os-x { margin: 0; padding: 0 6px; border: 0; background: transparent; cursor: pointer;
  font-size: 28px; line-height: 1; color: #4b5563 !important; background: transparent !important; border-radius: 6px; }
#sesc-os-modal .sesc-os-x:hover { color: #111 !important; background: #e5e7eb !important; }

#sesc-os-modal form { margin: 0; padding: 16px 18px 18px; }
#sesc-os-modal .sesc-os-intro { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: #4b5563; }
#sesc-os-modal .sesc-os-field { margin: 0 0 12px; }
#sesc-os-modal label { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #0b2a64; }
#sesc-os-modal input[type=text], #sesc-os-modal input[type=tel], #sesc-os-modal input[type=email], #sesc-os-modal textarea {
  display: block; width: 100%; height: auto; margin: 0; padding: 10px 12px; box-sizing: border-box;
  font: 400 15px/1.4 "Open Sans", Arial, sans-serif; color: #111827; background: #fff;
  border: 1px solid #c4c9d6; border-radius: 8px; box-shadow: none; }
#sesc-os-modal textarea { resize: vertical; min-height: 96px; }
#sesc-os-modal input:focus, #sesc-os-modal textarea:focus { outline: 0; border-color: #0b4a8f; box-shadow: 0 0 0 3px rgba(11, 74, 143, .2); }
#sesc-os-modal .sesc-os-field.invalid input, #sesc-os-modal .sesc-os-field.invalid textarea { border-color: #c62828; background: #fff8f8; }
#sesc-os-modal .sesc-os-err { display: block; min-height: 0; margin-top: 3px; font-size: 12.5px; color: #c62828; }
#sesc-os-modal .sesc-os-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
#sesc-os-modal .sesc-os-count { margin-top: 3px; font-size: 12px; color: #6b7280; white-space: nowrap; }
#sesc-os-modal .sesc-os-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#sesc-os-modal .sesc-os-lgpd { margin: 4px 0 10px; font-size: 12px; line-height: 1.4; color: #6b7280; }
#sesc-os-modal .sesc-os-status { min-height: 0; margin: 0 0 8px; font-size: 13.5px; color: #c62828; }
#sesc-os-modal .sesc-os-actions { display: flex; justify-content: flex-end; gap: 10px; }
#sesc-os-modal .sesc-os-btn { margin: 0; text-transform: none; text-shadow: none; padding: 10px 22px; border: 0; border-radius: 10px; cursor: pointer;
  font: 700 14.5px/1.2 "Open Sans", Arial, sans-serif; transition: background .15s ease; }
#sesc-os-modal .sesc-os-btn-sec { background: #e8eaf0 !important; color: #1f2937 !important; }
#sesc-os-modal .sesc-os-btn-sec:hover { background: #d9dce6 !important; }
#sesc-os-modal .sesc-os-btn-pri { background: #0b4a8f !important; color: #fff !important; }
#sesc-os-modal .sesc-os-btn-pri:hover { background: #083a73 !important; }
#sesc-os-modal .sesc-os-btn[disabled] { opacity: .65; cursor: progress; }
#sesc-os-modal .sesc-os-btn:focus-visible, #sesc-os-modal .sesc-os-x:focus-visible { outline: 3px solid #ffd400; outline-offset: 2px; }

#sesc-os-modal .sesc-os-ok { padding: 28px 22px 24px; text-align: center; outline: 0; }
#sesc-os-modal .sesc-os-ok h3 { margin: 10px 0 6px; font-size: 20px; color: #0b2a64; }
#sesc-os-modal .sesc-os-ok p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: #4b5563; }

body.sesc-os-open { overflow: hidden; }

@media (max-width: 575px) {
  .sesc-os-fab .sesc-os-fab-l { display: none; }
  .sesc-os-fab .sesc-os-fab-s { display: inline; }
  .sesc-os-fab { right: 12px; bottom: 12px; padding: 12px 16px 12px 13px; font-size: 14px; }
  #sesc-os-modal.sesc-os-overlay { padding: 10px; align-items: flex-end; }
  #sesc-os-modal .sesc-os-dialog { border-radius: 16px 16px 12px 12px; }
  #sesc-os-modal .sesc-os-actions .sesc-os-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .sesc-os-fab, #sesc-os-modal .sesc-os-btn { transition: none; }
  #sesc-os-modal .sesc-os-dialog { animation: none; }
}
