.kzm-license-blocked body, .kzm-license-settings body { min-width: 0; overflow: auto; }
.kzm-license-blocked #calendar-app { display: none !important; }
.kzm-license { font: 13px/1.4 'PT Sans', Arial, sans-serif; color: #363b44; box-sizing: border-box; }
.kzm-license[hidden] { display: none !important; }
.cal-menu .kzm-license__menu-status { margin: 6px 0 0; padding: 10px 14px 8px; border-top: 1px solid #e5e7e9; color: #697583; font-size: 12px; line-height: 1.45; }
.kzm-license--panel { width: min(100%, 600px); margin: 24px auto; padding: 0 20px; }
.kzm-license--checking { display: flex; justify-content: center; align-items: center; min-height: 48px; }
.kzm-license__spinner { display: inline-block; width: 22px; height: 22px; box-sizing: border-box; border: 2px solid #e5e7e9; border-top-color: #4c8bf7; border-radius: 50%; animation: kzm-license-spin .8s linear infinite; }
@keyframes kzm-license-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .kzm-license__spinner { animation: none; } }
.kzm-license__title { margin: 0 0 12px; font-size: 18px; line-height: 1.25; font-weight: 700; }
.kzm-license__message { margin: 0 0 12px; color: #697583; }
.kzm-license__plans { --kzm-license-plan-count: 3; position: relative; display: grid; grid-template-columns: repeat(var(--kzm-license-plan-count), minmax(0, 1fr)); gap: 0; margin: 12px 0; }
.kzm-license__plans::before { content: ''; position: absolute; top: 31px; left: calc(50% / var(--kzm-license-plan-count)); right: calc(50% / var(--kzm-license-plan-count)); height: 2px; background: #d9dde1; }
.kzm-license__plan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; padding: 0 4px; color: #697583; text-align: center; cursor: pointer; }
.kzm-license__period { min-height: 18px; margin-bottom: 6px; font-size: 13px; line-height: 18px; white-space: nowrap; }
.kzm-license__radio { position: absolute; z-index: 2; top: 22px; left: calc(50% - 10px); width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.kzm-license__plan-icon { position: relative; display: block; flex: 0 0 16px; box-sizing: border-box; width: 16px; height: 16px; margin-bottom: 6px; border: 2px solid #c6cbd1; border-radius: 50%; background: #fff; }
.kzm-license__plan--selected .kzm-license__plan-icon { border-color: #697583; }
.kzm-license__plan--selected .kzm-license__plan-icon::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: #697583; }
.kzm-license__plan-summary { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 6px 8px; border-radius: 4px; }
.kzm-license__plan--selected .kzm-license__plan-summary { background: #f2f3f4; }
.kzm-license__plan--selected .kzm-license__period { color: #363b44; font-weight: 700; }
.kzm-license__plan:has(.kzm-license__radio:focus-visible) .kzm-license__period { background: #e8eaed; color: #273440; }
.kzm-license__plan:has(.kzm-license__radio:disabled) { cursor: default; opacity: .6; }
.kzm-license__radio:disabled { cursor: default; }
.kzm-license__radio:is(:focus, :focus-visible) { outline: none; box-shadow: none; }
.kzm-license__price { font-size: 18px; line-height: 24px; color: #363b44; font-weight: 700; white-space: nowrap; }
.kzm-license__button { min-height: 32px; max-width: 100%; padding: 6px 12px; border: 1px solid #d1d8e0; border-radius: 3px; background: #fff; color: #273440; font: 13px/18px 'PT Sans', Arial, sans-serif; cursor: pointer; }
.kzm-license__button:hover { background: #f5f7fa; }
.kzm-license__button:is(:focus, :focus-visible), .kzm-license__email:is(:focus, :focus-visible), .kzm-license__menu-button:is(:focus, :focus-visible) { outline: none; box-shadow: none; }
@media (max-width: 620px) {
  .kzm-license--panel { margin: 20px auto; padding: 0 12px; }
  .kzm-license__plan { padding: 0 2px; }
  .kzm-license__period { font-size: 13px; }
  .kzm-license__plan-summary { padding: 6px 4px; }
}

.kzm-license-settings #calendar-app { display: none !important; }
.kzm-license--settings { margin: 8px auto; padding: 0 8px; }
.kzm-license--renewal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; width: 100%; margin: 0; padding: 16px; overflow: auto; background: #26313a55; }
.kzm-license--renewal .kzm-license__content { width: min(100%, 600px); min-width: 0; max-height: 100%; box-sizing: border-box; overflow: auto; padding: 20px; background: #fff; border: 1px solid #e5e7e9; border-radius: 4px; }
.kzm-license__original-price { min-height: 16px; font-size: 11px; line-height: 16px; color: #8a929c; white-space: nowrap; }
.kzm-license__pay { display: block; margin: 12px 0; min-width: 150px; width: auto; }
.kzm-license__button { text-decoration: none; text-align: center; box-sizing: border-box; }
.kzm-license__button:disabled { opacity: .55; cursor: default; }
.kzm-license__email-label { display: block; max-width: 300px; color: #697583; font-size: 12px; }
.kzm-license__email { display: block; width: 100%; margin-top: 4px; min-height: 32px; padding: 6px 8px; border: 1px solid #d1d8e0; border-radius: 3px; background: #fff; color: #363b44; font: 13px/18px 'PT Sans', Arial, sans-serif; box-sizing: border-box; }
.kzm-license__payment-status:empty { display: none; }
.kzm-license__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.kzm-license__menu-button { display: block; padding: 6px 0 0; border: 0; background: transparent; color: #273440; font: inherit; cursor: pointer; text-decoration: none; }
@media (max-width: 620px) {
  .kzm-license--renewal { padding: 10px; }
  .kzm-license--renewal .kzm-license__content { padding: 16px; }
}

.kzm-license__invoice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; margin: 0 0 12px; border-top: 1px solid #e5e7e9; }
.kzm-license__invoice-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.kzm-license__invoice-title > span { color: #697583; }
.kzm-license__invoice-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.kzm-license__messenger { display: inline-flex; align-items: center; gap: 6px; color: #556270; font: inherit; text-decoration: none; }
.kzm-license__messenger:hover { color: #273440; }
.kzm-license__menu-button:focus-visible, .kzm-license__messenger:focus-visible { background: #e8eaed; color: #273440; outline: none; }
.kzm-license__messenger-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
