/* Layout modal estilo "cartão branco" com sombra e bordas arredondadas */
.dwc-hidden { display: none !important; }
#dwc-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99998;
}
#dwc-modal {
  position: fixed; z-index: 99999; max-width: 640px; width: calc(100% - 32px);
  background: var(--dwc-bg, #fff); color: var(--dwc-text, #1a1a1a);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
  padding: 24px; line-height: 1.5; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
#dwc-modal.dwc-pos-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
#dwc-modal.dwc-pos-bottom { left: 50%; bottom: 16px; transform: translateX(-50%); }

#dwc-modal.dwc-bar { max-width: 920px; }
#dwc-modal.dwc-bar .dwc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.dwc-header h2 { margin: 0 0 8px 0; text-align: center; letter-spacing: .02em; }
.dwc-desc { margin: 0 0 12px 0; text-align: center; }
.dwc-close { position: absolute; right: 12px; top: 8px; border: 0; background: transparent; font-size: 24px; cursor: pointer; }

.dwc-switch { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.dwc-small { margin: 4px 0 8px 28px; opacity: .8; font-size: 14px; }

.dwc-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.dwc-btn { padding: 12px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; border: 1px solid currentColor; background: transparent; }
.dwc-accept { background: var(--dwc-primary, #000); color: var(--dwc-btn-text, #fff); border-color: var(--dwc-primary, #000); }
.dwc-save { border-color: var(--dwc-primary, #000); color: var(--dwc-primary, #000); }
.dwc-reject { color: #444; border-color: #ccc; }

.dwc-policy { text-align: center; margin-top: 8px; }
.dwc-policy a { color: inherit; text-decoration: underline; }
.dwc-brand { text-align: center; font-size: 12px; opacity: .6; margin-top: 10px; }

.dwc-cat summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.dwc-cat p { margin: 6px 0 8px; }
@media (max-width: 480px){
  .dwc-actions { grid-template-columns: 1fr; }
}
