.ycc-panel,
.ycc-reopen { box-sizing: border-box; font-family: inherit; }
.ycc-panel {
  --ycc-accent: #de3b00; --ycc-bg: #fff; --ycc-text: #202020; --ycc-border: #e5e5e5;
  --ycc-button-text: #fff; --ycc-radius: 16px;
  position: fixed; z-index: 999999; width: min(440px, calc(100vw - 32px));
  padding: 16px; color: var(--ycc-text); background: var(--ycc-bg);
  border: 1px solid var(--ycc-border); border-radius: var(--ycc-radius);
  box-shadow: 0 12px 38px rgba(0,0,0,.12); opacity: 40; visibility: hidden;
  transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.ycc-panel.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.ycc-bottom-left { left: 20px; bottom: 20px; }
.ycc-bottom-center { left: 50%; bottom: 20px; transform: translate(-50%,10px); }
.ycc-bottom-center.is-visible { transform: translate(-50%,0); }
.ycc-bottom-right { right: 20px; bottom: 20px; }
.ycc-top-left { left: 20px; top: 20px; }
.ycc-top-center { left: 50%; top: 20px; transform: translate(-50%,-10px); }
.ycc-top-center.is-visible { transform: translate(-50%,0); }
.ycc-top-right { right: 20px; top: 20px; }
.ycc-summary p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; }
.ycc-policy { color: var(--ycc-accent); text-decoration: underline; text-underline-offset: 2px; }
.ycc-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.ycc-button { min-height: 42px; padding: 9px 12px; border-radius: calc(var(--ycc-radius) * .55); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.ycc-button:hover { transform: translateY(-1px); }
.ycc-button:focus-visible, .ycc-close:focus-visible, .ycc-switch input:focus-visible + i { outline: 3px solid var(--ycc-accent); outline: 3px solid color-mix(in srgb, var(--ycc-accent) 34%, transparent); outline-offset: 2px; }
.ycc-button-secondary { color: var(--ycc-text); background: transparent; border: 1px solid var(--ycc-border); }
.ycc-button-primary { color: var(--ycc-button-text); background: var(--ycc-accent); border: 1px solid var(--ycc-accent); }
.ycc-details-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ycc-details h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.ycc-close { width: 34px; height: 34px; color: var(--ycc-text); background: transparent; border: 0; font-size: 26px; line-height: 1; cursor: pointer; }
.ycc-necessary { margin: 10px 0 12px; font-size: 13px; line-height: 1.5; opacity: .72; }
.ycc-category { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--ycc-border); cursor: pointer; }
.ycc-category strong, .ycc-category small { display: block; }
.ycc-category strong { margin-bottom: 3px; font-size: 14px; }
.ycc-category small { font-size: 12px; line-height: 1.4; opacity: .72; }
.ycc-switch { position: relative; flex: 0 0 44px; width: 44px; height: 24px; }
.ycc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ycc-switch i { display: block; width: 44px; height: 24px; border-radius: 999px; background: #b8b8b8; transition: background .2s; }
.ycc-switch i::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform .2s; }
.ycc-switch input:checked + i { background: var(--ycc-accent); }
.ycc-switch input:checked + i::after { transform: translateX(20px); }
.ycc-save { width: 100%; margin-top: 8px; }
.ycc-reopen { position: fixed; z-index: 999998; left: 12px; bottom: 10px; padding: 5px 9px; color: #555; background: rgba(255,255,255,.92); border: 1px solid #d8d8d8; border-radius: 999px; font-size: 11px; line-height: 1.2; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
html.ycc-open .ycc-reopen { opacity: 0; pointer-events: none; }
@media (max-width: 540px) {
  .ycc-panel { left: 12px !important; right: 12px !important; bottom: 12px !important; top: auto !important; width: auto; transform: translateY(10px) !important; }
  .ycc-panel.is-visible { transform: translateY(0) !important; }
  .ycc-actions { grid-template-columns: 1fr 1fr; }
  .ycc-actions .ycc-button-primary { grid-column: 1 / -1; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .ycc-panel, .ycc-button, .ycc-switch i, .ycc-switch i::after { transition: none; } }

