.ehm-service-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Long domains must remain inside cards/tables in themes that do not ship the
 * Tailwind word-break utilities used by newer Perfex layouts. */
.ehm-domain-text {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ehm-client-actions-split {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.ehm-service-sidebar-link,
button.ehm-service-sidebar-link {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1.5;
    text-align: left;
}

.ehm-service-sidebar-link:hover,
.ehm-service-sidebar-link:focus,
.ehm-service-sidebar-link.active {
    border: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
}

.ehm-service-sidebar-link.active {
    font-weight: 600;
}

.ehm-upgrade-products {
    display: flex;
    flex-wrap: wrap;
}

.ehm-upgrade-product-column {
    display: flex;
    margin-bottom: 20px;
}

.ehm-upgrade-product-card,
.ehm-upgrade-product-card > .panel-body {
    width: 100%;
}

.ehm-upgrade-product-card > .panel-body {
    display: flex;
    flex-direction: column;
}

.ehm-upgrade-product-description {
    flex: 1 1 auto;
}

.ehm-upgrade-product-card form {
    margin-top: auto;
}

.ehm-upgrade-payment-type {
    margin-bottom: 15px;
}

.ehm-status-component-header,
.ehm-status-component-summary,
.ehm-status-history-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ehm-status-overview-list {
    width: 100%;
}

.ehm-status-overview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.ehm-status-overview-row:first-child {
    padding-top: 0;
}

.ehm-status-overview-state {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    text-align: right;
}

.ehm-status-indicator {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #9ca3af;
}

.ehm-status-indicator-operational {
    background: #84c529;
}

.ehm-status-indicator-degraded {
    background: #ffb900;
}

.ehm-status-indicator-unavailable {
    background: #fc2d42;
}

.ehm-status-overview-footer {
    padding-top: 14px;
}

.ehm-status-component-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--panel-subtle-bg, #f3f4f6);
}

.ehm-status-history {
    display: flex;
    gap: 2px;
    height: 34px;
    margin-top: 24px;
}

.ehm-status-day {
    min-width: 2px;
    flex: 1 1 0;
    border-radius: 2px;
    background: #d1d5db;
}

.ehm-status-day-operational {
    background: #84c529;
}

.ehm-status-day-degraded {
    background: #ffb900;
}

.ehm-status-day-unavailable {
    background: #fc2d42;
}

.ehm-status-day-insufficient {
    background: #9ca3af;
}

.ehm-status-history-footer {
    margin-top: 6px;
}

.ehm-status-component-summary {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.ehm-status-center-heading,
.ehm-status-server-row,
.ehm-status-server-name,
.ehm-status-server-components {
    display: flex;
    align-items: center;
}

.ehm-status-center-heading,
.ehm-status-server-row {
    justify-content: space-between;
    gap: 20px;
}

.ehm-status-center-heading {
    margin-bottom: 20px;
}

.ehm-status-notices {
    margin-bottom: 20px;
}

.ehm-status-notices > .panel-body {
    padding: 20px;
}

.ehm-status-notices-heading,
.ehm-status-notice-heading,
.ehm-status-notices-empty,
.ehm-status-notices-pagination {
    display: flex;
    align-items: center;
}

.ehm-status-notices-heading,
.ehm-status-notice-heading {
    justify-content: space-between;
    gap: 20px;
}

.ehm-status-notices-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 38px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.ehm-status-notices-heading > h4 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 15px;
    line-height: 36px;
}

.ehm-status-notices-filter {
    display: flex;
    align-items: center;
}

.ehm-status-notices-filter-button {
    display: flex;
    min-width: 132px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px 7px 13px;
    border-color: var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: var(--panel-bg, #fff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-weight: 500;
}

.ehm-status-notices-filter-button .fa {
    margin-left: 2px;
    color: var(--text-muted, #64748b);
    font-size: 10px;
}

.ehm-status-notices-filter-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 11px;
    background: var(--panel-subtle-bg, #f1f5f9);
    color: var(--text-muted, #475569);
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
}

.ehm-status-notices-filter .dropdown-menu {
    min-width: 178px;
    margin-top: 7px;
    padding: 6px;
    border-color: var(--border-color, #e5e7eb);
    border-radius: 8px;
}

.ehm-status-notices-filter .dropdown-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 10px;
    border-radius: 5px;
}

.ehm-status-notice-list {
    margin: 0;
}

.ehm-status-notice-row {
    padding: 18px 8px 16px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.ehm-status-notice-copy {
    min-width: 0;
}

.ehm-status-notice-title,
.ehm-status-notice-date {
    display: block;
}

.ehm-status-notice-title {
    line-height: 1.4;
}

.ehm-status-notice-date {
    margin-top: 3px;
    line-height: 1.4;
}

.ehm-status-notice-toggle {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ehm-status-notice-toggle .fa {
    margin-left: 5px;
    font-size: 11px;
}

.ehm-status-notice-message {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 7px;
    background: var(--panel-subtle-bg, #f8fafc);
    line-height: 1.6;
}

.ehm-status-notices-empty {
    gap: 12px;
    padding: 18px 8px 0;
}

.ehm-status-notices-pagination {
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.ehm-status-group > .panel-body {
    padding-bottom: 8px;
}

.ehm-status-group > .panel-body > h4 {
    font-size: 15px;
    line-height: 20px;
}

.ehm-status-server-list {
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.ehm-status-server-row {
    padding: 14px 8px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    color: inherit;
    text-decoration: none;
}

.ehm-status-server-row:hover,
.ehm-status-server-row:focus,
.ehm-status-server-row.active {
    background: var(--panel-subtle-bg, #f8fafc);
    color: inherit;
    text-decoration: none;
}

.ehm-status-server-name,
.ehm-status-server-components {
    gap: 12px;
}

.ehm-status-server-components {
    justify-content: flex-end;
}

.ehm-status-server-component {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted, #64748b);
}


.ehm-store-products {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.ehm-store-product-column {
    display: flex;
    margin-bottom: 24px;
}

.ehm-store-products-page .ehm-store-product-card {
    width: 100%;
    margin-bottom: 0;
}

.ehm-store-products-page .ehm-store-product-card > .panel-body {
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: 24px;
}

.ehm-store-products-page .ehm-store-product-name {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
}

.ehm-store-products-page .ehm-store-product-description {
    margin-bottom: 20px;
    line-height: 1.55;
}

.ehm-store-product-pricing {
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.ehm-store-product-payment-type,
.ehm-store-product-setup-fee {
    display: block;
    font-size: 12px;
}

.ehm-store-category-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ehm-store-category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 4px;
    color: inherit;
}

.ehm-store-category-link:hover,
.ehm-store-category-link:focus,
.ehm-store-category-link.active {
    background: var(--panel-subtle-bg, #f3f4f6);
    text-decoration: none;
}

.ehm-store-category-link.active {
    font-weight: 600;
}

.ehm-store-category-link .fa {
    width: 14px;
    flex: 0 0 14px;
    text-align: center;
}

.ehm-store-product-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin: 4px 0;
}

.ehm-store-products-page .ehm-store-product-price {
    font-size: 24px;
    line-height: 1.25;
}

.ehm-store-product-cycle {
    font-size: 13px;
}

.ehm-store-product-action {
    margin-top: 20px;
}

.ehm-store-order-layout {
    display: flex;
    align-items: flex-start;
}

.ehm-store-order-layout > [class*="col-"] {
    float: none;
}

.ehm-store-order-main,
.ehm-store-order-summary,
.ehm-store-empty-cart {
    margin-bottom: 20px;
}

.ehm-store-order-product-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ehm-store-order-product-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--panel-subtle-bg, #f3f4f6);
}

.ehm-store-domain-input {
    position: relative;
}

.ehm-store-domain-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    transform: translateY(-50%);
    pointer-events: none;
}

.ehm-store-domain-input .form-control {
    padding-left: 46px;
}

[dir="rtl"] .ehm-store-domain-icon {
    right: 16px;
    left: auto;
}

[dir="rtl"] .ehm-store-domain-input .form-control {
    padding-right: 46px;
    padding-left: 12px;
}

.ehm-store-order-summary {
    position: sticky;
    top: 20px;
}

.ehm-store-summary-product {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.ehm-store-summary-items {
    margin-bottom: 2px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.ehm-store-summary-item {
    padding: 0 0 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.ehm-store-summary-item:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.ehm-store-summary-item-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.ehm-store-summary-item-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ehm-store-summary-item-header {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    color: inherit;
}

.ehm-store-summary-item-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.ehm-store-summary-item-toggle:hover,
.ehm-store-summary-item-toggle:focus,
.ehm-store-summary-item-toggle:active {
    background: transparent;
    color: inherit;
    text-decoration: none;
}

.ehm-store-summary-item-amount {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ehm-store-summary-item-breakdown {
    display: grid;
    gap: 4px;
    padding-top: 6px;
    margin-top: 2px;
    font-size: 12px;
}

.ehm-store-summary-item-breakdown span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-muted, #64748b);
}

.ehm-store-summary-item-breakdown strong {
    color: var(--text-color, #1f2937);
}

.ehm-store-summary-line,
.ehm-store-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.ehm-store-summary-line {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.ehm-store-summary-total {
    padding: 18px 0;
    font-size: 16px;
}

.ehm-store-summary-total strong {
    font-size: 22px;
}

.ehm-store-summary-cart-link {
    display: block;
    margin-top: 14px;
    text-align: center;
}

.ehm-store-cart-domain {
    display: block;
    margin-top: 3px;
    font-size: 12px;
}

.ehm-store-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.ehm-store-terms {
    margin: 0 0 16px;
}

.ehm-store-checkout-form .btn-block {
    min-height: 36px;
}

@media (max-width: 991px) {
    .ehm-status-component-header,
    .ehm-status-component-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .ehm-status-component-header .text-right,
    .ehm-status-component-summary .text-right {
        text-align: left;
    }

    .ehm-status-center-heading,
    .ehm-status-server-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .ehm-status-notice-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ehm-status-notices-heading {
        gap: 14px;
    }

    .ehm-status-server-components {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-left: 52px;
    }

    .ehm-status-overview-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .ehm-status-overview-state {
        justify-content: flex-start;
        padding-left: 52px;
        text-align: left;
    }

    .ehm-store-category-sidebar {
        margin-bottom: 24px;
    }

    .ehm-store-category-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ehm-store-product-column {
        width: 100%;
    }

    .ehm-store-order-layout {
        display: block;
    }

    .ehm-store-order-summary {
        position: static;
    }

    .ehm-store-cart-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .ehm-store-cart-footer .btn,
    .ehm-store-cart-footer form {
        width: 100%;
    }
}
