.license-warning {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 16px 24px 0;
    padding: 12px 16px;
    color: #713f12;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 10px;
}

.license-warning a,
.license-renewal-link {
    color: #30297f;
    font-weight: 600;
    text-decoration: underline;
}

.license-renewal-error,
.license-plan-dialog__state--error {
    color: #dc2626;
}

.license-plan-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(880px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: hidden;
    color: #25396f;
    background: #fff;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(30, 34, 90, .22);
    transform: translate(-50%, -50%);
}

.license-plan-dialog::backdrop {
    background: rgba(20, 24, 50, .68);
    backdrop-filter: blur(2px);
}

.license-plan-dialog__header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

.license-plan-dialog__header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.license-plan-dialog__header p {
    margin: 4px 0 0;
    color: #607080;
}

.license-plan-dialog__close {
    width: 34px;
    height: 34px;
    padding: 0;
    color: #607080;
    font-size: 25px;
    line-height: 30px;
    background: transparent;
    border: 0;
    border-radius: 8px;
}

.license-plan-dialog__close:hover {
    background: #f2f4f7;
}

.license-plan-dialog__body {
    max-height: calc(100vh - 145px);
    padding: 24px;
    overflow-y: auto;
}

.license-plan-dialog__state {
    margin: 24px 0;
    color: #607080;
    text-align: center;
}

.license-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.license-plan-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    background: #f8f9fc;
    border: 1px solid #dce2ea;
    border-radius: 12px;
}

.license-plan-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.license-plan-card__price {
    margin-top: 12px;
    font-size: 1.75rem;
    font-weight: 700;
}

.license-plan-card__duration {
    margin: 4px 0 20px;
    color: #607080;
}

.license-plan-card__select {
    width: 100%;
    margin-top: auto;
    padding: 10px 16px;
    color: #fff;
    font-weight: 600;
    background: #30297f;
    border: 0;
    border-radius: 8px;
}

.license-plan-card__select:disabled {
    cursor: wait;
    opacity: .65;
}

@media (max-width: 640px) {
    .license-warning {
        flex-wrap: wrap;
        margin-inline: 12px;
    }

    .license-plan-dialog__header,
    .license-plan-dialog__body {
        padding: 16px;
    }

    .license-plan-grid {
        grid-template-columns: 1fr;
    }
}
