.cm-entry-summary .menews-cpbg-gate,
.cm-entry-summary .menews-cpbg-profile,
.cm-entry-summary .menews-cpbg-portal {
    border: 1px solid #d7dde5;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    background: #fff;
}

.cm-entry-summary .menews-cpbg-auth-grid,
.cm-entry-summary .menews-cpbg-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.cm-entry-summary .menews-cpbg-auth-actions {
    display: flex;
    margin: 4px 0;
}

.cm-entry-summary .menews-cpbg-auth-single {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.cm-entry-summary .menews-cpbg-login-panel {
    width: min(420px, 100%);
    padding: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.cm-entry-summary .menews-cpbg-login-panel h2 {
    text-align: center;
}

.cm-entry-summary .menews-cpbg-panel,
.cm-entry-summary .menews-cpbg-package {
    border: 1px solid #d7dde5;
    border-radius: 8px;
    padding: 16px;
    background: #f8fafc;
}

.cm-entry-summary .menews-cpbg-panel h2,
.cm-entry-summary .menews-cpbg-package h3 {
    margin: 0 0 14px;
}

.cm-entry-summary .menews-cpbg-panel label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.cm-entry-summary .menews-cpbg-panel input[type="text"],
.cm-entry-summary .menews-cpbg-panel input[type="password"] {
    display: block;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 15px;
    padding: 9px 10px;
    border: 1px solid #b8c1cc;
    border-radius: 4px;
    background: #fff;
}

.cm-entry-summary .menews-cpbg-login-panel .menews-cpbg-modal-actions {
    justify-content: center;
}

.cm-entry-summary .menews-cpbg-inline {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
}

.cm-entry-summary .menews-cpbg-inline input {
    margin: 0;
}

.cm-entry-summary .menews-cpbg-account-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cm-entry-summary .menews-cpbg-notice {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    background: #eef6ff;
}

.cm-entry-summary .menews-cpbg-notice-info {
    border-color: #bfdbfe;
    border-left-color: #2271b1;
    background: #eef6ff;
    color: #1e3a8a;
}

.cm-entry-summary .menews-cpbg-notice-success {
    border-color: #bbf7d0;
    border-left-color: #16a34a;
    background: #f0fdf4;
    color: #14532d;
}

.cm-entry-summary .menews-cpbg-notice-error {
    border-color: #fecaca;
    border-left-color: #d63638;
    background: #fff2f2;
    color: #7f1d1d;
}

.cm-entry-summary .menews-cpbg-notice-warning {
    border-color: #fde68a;
    border-left-color: #d97706;
    background: #fffbeb;
    color: #78350f;
}

.menews-cpbg-toast,
.cm-entry-summary .menews-cpbg-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100001;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(380px, calc(100vw - 32px));
    padding: 14px 16px;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    background: #f0fdf4;
    color: #14532d;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
    font-weight: 600;
    line-height: 1.45;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease;
}

.menews-cpbg-toast.is-hiding,
.cm-entry-summary .menews-cpbg-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.menews-cpbg-toast-warning,
.cm-entry-summary .menews-cpbg-toast-warning {
    border-color: #fde68a;
    border-left-color: #d97706;
    background: #fffbeb;
    color: #78350f;
}

.menews-cpbg-toast-icon,
.cm-entry-summary .menews-cpbg-toast-icon {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1.35;
}

.menews-cpbg-toast-close,
.cm-entry-summary .menews-cpbg-toast-close {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #14532d;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.menews-cpbg-toast-warning .menews-cpbg-toast-close,
.cm-entry-summary .menews-cpbg-toast-warning .menews-cpbg-toast-close {
    color: #78350f;
}

.cm-entry-summary .menews-cpbg-price {
    font-weight: 700;
}

.cm-entry-summary .menews-cpbg-package-section {
    margin-top: 30px;
}

.cm-entry-summary .menews-cpbg-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #1f2937;
    font-weight: 700;
}

.cm-entry-summary .menews-cpbg-section-title::before,
.cm-entry-summary .menews-cpbg-section-title::after {
    content: "";
    height: 2px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--cm-color-2), transparent);
}

.cm-entry-summary .menews-cpbg-section-title span {
    white-space: nowrap;
}

.cm-entry-summary .menews-cpbg-button,
.cm-entry-summary .menews-cpbg-link-button {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 2px;
    background-color: var(--cm-color-2);
    border: 1px solid var(--cm-color-2);
    color: #fff;
    text-decoration: none;
}

.cm-entry-summary .menews-cpbg-link-button {
    cursor: pointer;
}

.cm-entry-summary .menews-cpbg-text-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cm-color-2);
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.cm-entry-summary .menews-cpbg-text-link:hover,
.cm-entry-summary .menews-cpbg-text-link:focus {
    text-decoration: underline;
}

.cm-entry-summary .menews-cpbg-button:hover,
.cm-entry-summary .menews-cpbg-button:focus,
.cm-entry-summary .menews-cpbg-link-button:hover,
.cm-entry-summary .menews-cpbg-link-button:focus {
    color: var(--cm-color-2);
    background-color: transparent;
    border: 1px solid var(--cm-color-2);
}

.cm-entry-summary .menews-cpbg-details {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 8px 16px;
}

.cm-entry-summary .menews-cpbg-details dt {
    font-weight: 700;
}

.cm-entry-summary .menews-cpbg-details dd {
    margin: 0;
}

.cm-entry-summary .menews-cpbg-history {
    margin-top: 16px;
}

.cm-entry-summary .menews-cpbg-history-scroll {
    /* overflow-x: auto; */
}

.cm-entry-summary .menews-cpbg-history-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: #fff;
}

.cm-entry-summary .menews-cpbg-history-table th,
.cm-entry-summary .menews-cpbg-history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #d7dde5;
    text-align: left;
    vertical-align: top;
}

.cm-entry-summary .menews-cpbg-history-table th {
    color: #1f2937;
    font-weight: 700;
}

.cm-entry-summary .menews-cpbg-history-status {
    display: inline-block;
}

.cm-entry-summary .menews-cpbg-status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border: 1px solid #bfdbfe;
    border-radius: 0;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    list-style: none;
    white-space: nowrap;
}

.cm-entry-summary .menews-cpbg-status-tag::-webkit-details-marker {
    display: none;
}

.cm-entry-summary .menews-cpbg-status-tag::after {
    content: "i";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    border-radius: 50%;
    background: #64748b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
}

.cm-entry-summary .menews-cpbg-status-success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #15803d;
}

.cm-entry-summary .menews-cpbg-status-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.cm-entry-summary .menews-cpbg-status-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #a16207;
}

.cm-entry-summary .menews-cpbg-status-muted {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.cm-entry-summary .menews-cpbg-history-message {
    width: min(360px, calc(100vw - 56px));
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px solid #d7dde5;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.cm-entry-summary .menews-cpbg-modal {
    display: none;
}

.cm-entry-summary .menews-cpbg-modal.is-open {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cm-entry-summary .menews-cpbg-modal-backdrop {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: default;
}

.cm-entry-summary .menews-cpbg-modal-panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 18px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.cm-entry-summary .menews-cpbg-modal-panel form + form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #d7dde5;
}

.cm-entry-summary .menews-cpbg-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.cm-entry-summary .menews-cpbg-modal-close {
    position: absolute;
    top: 6px;
    right: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f2937;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
}

.cm-entry-summary .menews-cpbg-reset-phone {
    margin: 0 0 10px;
    color: #1f2937;
}

@media (max-width: 640px) {
    .menews-cpbg-toast,
    .cm-entry-summary .menews-cpbg-toast {
        top: 14px;
        right: 16px;
        left: 16px;
        width: auto;
    }

    .cm-entry-summary .menews-cpbg-details {
        grid-template-columns: 1fr;
    }

    .cm-entry-summary .menews-cpbg-account-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
