.craymelo-consent[hidden] { display: none; }

.craymelo-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--cr-color-border-strong, #c9d5ee);
  border-radius: var(--cr-radius-card, 16px);
  background: #fff;
  color: var(--cr-color-text, #202b49);
  box-shadow: 0 16px 45px rgb(32 43 73 / 20%);
  font: 400 15px/1.5 var(--cr-font-body, "Nunito Sans", "Segoe UI", sans-serif);
}

.craymelo-consent h2,
.craymelo-consent-dialog h2 { margin: 0; color: var(--cr-color-text, #202b49); font-size: 21px; line-height: 1.2; }
.craymelo-consent p { margin: 5px 0 0; color: var(--cr-color-text-muted, #52617c); }
.craymelo-consent a { color: var(--cr-color-primary, #5745dc); font-weight: 750; }
.craymelo-consent__actions { display: grid; grid-template-columns: repeat(3, minmax(128px, 1fr)); gap: 8px; }
.craymelo-consent__actions button,
.craymelo-consent-dialog__actions button {
  min-height: 46px;
  padding: 9px 14px;
  border: 2px solid var(--cr-color-text, #202b49);
  border-radius: var(--cr-radius-control, 12px);
  background: #fff;
  color: var(--cr-color-text, #202b49);
  font-weight: 850;
  line-height: 1.2;
}
.craymelo-consent__actions button:nth-child(1) { background: var(--cr-color-yellow-soft, #fff6dd); }
.craymelo-consent__actions button:nth-child(2) { background: var(--cr-color-blue-soft, #eaf4ff); }
.craymelo-consent__actions button:nth-child(3) { background: var(--cr-color-lavender-soft, #f4f1ff); }
.craymelo-consent__actions button:hover,
.craymelo-consent-dialog__actions button:hover { box-shadow: 0 4px 12px rgb(32 43 73 / 12%); transform: translateY(-1px); }

.craymelo-consent-dialog {
  width: min(600px, calc(100% - 32px));
  max-height: min(720px, calc(100vh - 32px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--cr-color-border-strong, #c9d5ee);
  border-radius: var(--cr-radius-card, 16px);
  background: #fff;
  color: var(--cr-color-text, #202b49);
  box-shadow: 0 24px 70px rgb(32 43 73 / 25%);
  font: 400 15px/1.5 var(--cr-font-body, "Nunito Sans", "Segoe UI", sans-serif);
}
.craymelo-consent-dialog::backdrop { background: rgb(32 43 73 / 42%); }
.craymelo-consent-dialog form { padding: 24px; }
.craymelo-consent-dialog__header { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; }
.craymelo-consent-dialog__header p { margin: 7px 0 0; color: var(--cr-color-text-muted, #52617c); }
.craymelo-consent-dialog__close { flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--cr-color-border-strong, #c9d5ee); border-radius: 999px; background: #fff; color: var(--cr-color-text, #202b49); font-size: 26px; line-height: 1; }
.craymelo-consent-category { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--cr-color-border, #dce4f5); }
.craymelo-consent-category strong { font-size: 16px; }
.craymelo-consent-category p { margin: 4px 0 0; color: var(--cr-color-text-muted, #52617c); font-size: 14px; }
.craymelo-consent-toggle { position: relative; flex: none; }
.craymelo-consent-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.craymelo-consent-toggle span[aria-hidden] { width: 52px; height: 30px; display: block; padding: 3px; border: 2px solid #7785a1; border-radius: 999px; background: #fff; transition: background .15s ease, border-color .15s ease; }
.craymelo-consent-toggle span[aria-hidden]::after { content: ""; width: 20px; height: 20px; display: block; border-radius: 50%; background: #687690; transition: transform .15s ease, background .15s ease; }
.craymelo-consent-toggle input:checked + span { border-color: var(--cr-color-primary, #5745dc); background: var(--cr-color-primary-soft, #f0edff); }
.craymelo-consent-toggle input:checked + span::after { background: var(--cr-color-primary, #5745dc); transform: translateX(22px); }
.craymelo-consent-toggle input:focus-visible + span { outline: 3px solid var(--cr-color-focus, #2f61d7); outline-offset: 3px; }
.craymelo-consent-toggle input:disabled + span { opacity: .7; }
.craymelo-consent-dialog__actions { display: flex; justify-content: flex-end; padding-top: 18px; border-top: 1px solid var(--cr-color-border, #dce4f5); }
.craymelo-consent-dialog__actions button { background: var(--cr-color-primary, #5745dc); border-color: var(--cr-color-primary, #5745dc); color: #fff; }
.craymelo-cookie-settings { min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--cr-color-text-muted, #52617c); font-size: 14px; text-align: left; }
.craymelo-cookie-settings:hover { color: var(--cr-color-primary, #5745dc); text-decoration: underline; }

@media (max-width: 760px) {
  .craymelo-consent { bottom: 10px; width: calc(100% - 20px); padding: 16px; grid-template-columns: 1fr; gap: 14px; }
  .craymelo-consent__actions { grid-template-columns: 1fr; }
  .craymelo-consent__actions button { width: 100%; }
  .craymelo-consent-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); }
  .craymelo-consent-dialog form { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .craymelo-consent *, .craymelo-consent-dialog * { transition: none !important; }
}

