.oc-widget {
  --oc-blue: var(--blue-600, #1a5fd0);
  --oc-right: max(16px, env(safe-area-inset-right));
  --oc-bottom: max(16px, env(safe-area-inset-bottom));
  font-family: var(--font-body, system-ui, sans-serif);
  color: #141820;
}
.oc-widget *, .oc-widget *::after { box-sizing: border-box; }
.oc-widget button, .oc-widget summary { cursor: pointer; }
.oc-widget svg { width: 24px; height: 24px; }
.oc-launch, .oc-close {
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
}
.oc-launch {
  position: fixed; right: var(--oc-right); bottom: var(--oc-bottom); z-index: 80;
  width: 56px; height: 56px; background: var(--oc-blue); color: white;
  box-shadow: 0 5px 20px #14366740;
}
.oc-launch svg { width: 28px; height: 28px; }
#oc-panel {
  position: fixed; inset: auto var(--oc-right) calc(var(--oc-bottom) + 66px) auto; margin: 0;
  width: min(352px, calc(100vw - var(--oc-right) - 12px)); max-height: calc(100dvh - var(--oc-bottom) - 82px);
  overflow: auto; padding: 20px; border: 1px solid #d9e1ec; border-radius: 22px;
  color: inherit; background: #fff; box-shadow: 0 16px 52px #162c4a26;
}
#oc-panel:not(:popover-open) { display: none; }
#oc-panel header { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; position: static; }
#oc-panel header img { border-radius: 50%; object-fit: cover; object-position: center 30%; }
#oc-name { display: block; font-size: 22px; line-height: 1.12; }
#oc-panel small { display: block; margin-top: 3px; color: #586471; font-size: 13px; line-height: 1.35; }
.oc-close { margin-left: auto; align-self: flex-start; width: 32px; height: 32px; background: #f1f4f9; color: #435065; }
.oc-close svg { width: 17px; height: 17px; }
#oc-panel .oc-row {
  display: flex; align-items: center; gap: 12px; margin: 7px 0 0; padding: 10px 12px;
  text-decoration: none; color: inherit; border: 1px solid #e2e7ef; border-radius: 13px; background: white;
  font-size: 16px; line-height: 1.2;
}
#oc-panel .oc-row:hover { background: #f3f7ff; border-color: #b7d0fa; }
.oc-row::-webkit-details-marker { display: none; }
.oc-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; }
.oc-telegram { background: #208dc3; }
.oc-max { background: linear-gradient(45deg,#3094ea,#6756dd,#8a38c9); }
.oc-whatsapp { background: #188751; }
.oc-arrow { margin-left: auto; color: #626f82; font-size: 22px; }
details[open] > .oc-row .oc-arrow { transform: rotate(90deg); }
.oc-help { padding: 10px 12px; font-size: 14px; line-height: 1.5; }
.oc-help strong { display: block; user-select: all; }
.oc-help a { color: var(--oc-blue); }
#oc-panel p { margin: 16px 0 0; padding-top: 13px; border-top: 1px solid #e2e7ef; color: #485567; font-size: 14px; line-height: 1.45; }
.oc-widget :focus-visible { outline: 2px solid var(--oc-blue); outline-offset: 2px; }
@media print { .oc-widget { display: none; } }
