.cv-cookie-dialog {
  color-scheme: light;
  box-sizing: border-box;
  width: min(460px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100svh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid #e9e3e9;
  border-radius: 24px;
  background: #fffafd;
  color: #352e38;
  box-shadow: 0 24px 80px #20152433;
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Segoe UI", sans-serif;
  letter-spacing: 0;
  overscroll-behavior: contain;
}
.cv-cookie-dialog[open] { animation: cv-cookie-enter 300ms cubic-bezier(.2,.75,.25,1) both; }
.cv-cookie-dialog::backdrop {
  background: #22172766;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: cv-cookie-backdrop 240ms ease both;
}
.cv-cookie-dialog[data-closing] { animation: cv-cookie-exit 220ms ease both; pointer-events: none; }
.cv-cookie-dialog[data-closing]::backdrop { animation: cv-cookie-backdrop 220ms ease reverse both; }
.cv-cookie-panel { box-sizing: border-box; padding: 24px; min-width: 0; }
.cv-cookie-panel > * { box-sizing: border-box; }
.cv-cookie-panel img.cv-cookie-logo { display: block; width: 152px; height: 76px; object-fit: contain; margin: -8px 0 12px; filter: brightness(0); opacity: .8; }
.cv-cookie-panel h2 { margin: 0 0 12px; padding: 0; font-size: 24px; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.cv-cookie-panel h2:focus { outline: none; }
.cv-cookie-panel p { font-size: 16px; margin: 0 0 20px; color: #716974; line-height: 1.65; }
.cv-cookie-summary { margin: 0 0 16px; border-block: 1px solid #e9e3e9; }
.cv-cookie-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.cv-cookie-summary > div + div { border-top: 1px solid #e9e3e9; }
.cv-cookie-summary span { min-width: 0; font-size: 14px; font-weight: 600; }
.cv-cookie-summary small { flex-shrink: 0; font-size: 12px; color: #716974; }
.cv-cookie-panel p.cv-cookie-condition { font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.cv-cookie-panel button, .cv-cookie-panel a { -webkit-tap-highlight-color: transparent; letter-spacing: 0; }
.cv-cookie-panel button { font-family: inherit; cursor: pointer; }
.cv-cookie-panel button:focus-visible, .cv-cookie-panel a:focus-visible { outline: 3px solid #276fa7; outline-offset: 3px; }
.cv-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cv-cookie-actions.single { grid-template-columns: 1fr; margin-top: 24px; }
.cv-cookie-actions button {
  min-width: 0;
  min-height: 50px;
  padding: 12px 8px;
  border: 1px solid #b52060;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  white-space: normal;
  transition: background-color 160ms ease, transform 160ms ease;
}
.cv-cookie-primary { background: #b52060; color: #fff; }
.cv-cookie-secondary { background: #fff; color: #a71b55; }
.cv-cookie-panel .cv-cookie-help { display: flex; justify-content: center; align-items: center; min-height: 44px; width: 100%; padding: 8px 0; margin: 8px 0 0; border: 0; background: none; color: #a71b55; font-size: 14px; font-weight: 500; text-decoration: none; text-align: center; }
.cv-cookie-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: #c5bdc7; }
.cv-cookie-links button, .cv-cookie-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 0; border: 0; background: none; color: #716974; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.cv-cookie-panel .cv-cookie-status { display: block; margin: 0 0 12px; color: #287564; font-size: 13px; font-weight: 600; }
.cv-cookie-panel[data-view="rejected"] { min-height: 390px; }
.cv-cookie-back { min-height: 44px; padding: 0; margin-bottom: 12px; border: 0; background: none; color: #a71b55; font-size: 15px; }
.cv-cookie-details { margin: 0; }
.cv-cookie-details dt { font-size: 15px; font-weight: 650; margin: 20px 0 6px; }
.cv-cookie-details dd { margin: 0; font-size: 14px; color: #716974; line-height: 1.75; overflow-wrap: anywhere; }
.cv-cookie-details a { color: #a71b55; }
.cv-cookie-settings-footer > button.cv-cookie-settings-link { appearance: none; display: inline-flex; justify-content: center; align-items: center; width: auto; min-height: 44px; padding: 8px 12px; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #b52060; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; cursor: pointer; text-decoration: none; text-underline-offset: 4px; transition: color 160ms ease; }
.cv-cookie-settings-footer > button.cv-cookie-settings-link:hover { background: transparent; color: #97184d; text-decoration: underline; box-shadow: none; }
.cv-cookie-settings-footer > button.cv-cookie-settings-link:focus-visible { outline: 2px solid #b52060; outline-offset: 2px; border-radius: 4px; }
.cv-cookie-settings-footer { text-align: center; margin: 12px 0; }
@media (hover: hover) {
  .cv-cookie-primary:hover { background: #97184d; }
  .cv-cookie-secondary:hover { background: #fff0f6; }
}
.cv-cookie-actions button:active { transform: scale(.98); }
@keyframes cv-cookie-enter { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cv-cookie-exit { to { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes cv-cookie-backdrop { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  .cv-cookie-dialog { width: 100%; max-height: calc(100svh - 16px); margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0; }
  .cv-cookie-panel { padding: 22px 22px max(14px, env(safe-area-inset-bottom)); }
  .cv-cookie-dialog[open] { animation-name: cv-cookie-sheet-enter; animation-duration: 340ms; }
  .cv-cookie-dialog[data-closing] { animation-name: cv-cookie-sheet-exit; animation-duration: 220ms; }
  .cv-cookie-panel h2 { font-size: 22px; }
  .cv-cookie-panel p { font-size: 15px; }
  .cv-cookie-panel p.cv-cookie-condition { font-size: 13px; }
}
@media (max-width: 359px) { .cv-cookie-panel { padding-inline: 16px; } .cv-cookie-actions { grid-template-columns: 1fr; } }
@keyframes cv-cookie-sheet-enter { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cv-cookie-sheet-exit { to { opacity: 0; transform: translateY(32px); } }
@media (prefers-reduced-motion: reduce) {
  .cv-cookie-settings-footer > button.cv-cookie-settings-link { transition: none; }
  .cv-cookie-dialog[open], .cv-cookie-dialog[data-closing], .cv-cookie-dialog::backdrop, .cv-cookie-dialog[data-closing]::backdrop { animation: none; }
  .cv-cookie-actions button { transition: none; }
  .cv-cookie-actions button:active { transform: none; }
}
