:root {
	--mem-border-color: #1164cb;
	--mem-primary-color: #1164cb;
	--mem-secondary-color: #fff;
}
.wrapper{
	display: grid;
	grid-template-columns: auto auto auto;
	column-gap: 10px;
	align-items: center;
	padding: 7px 0;
}
.single-block{
	padding-bottom: 5px;
	cursor: pointer;
}
.ml-1{
	margin-left: 1%;
}
.mt-3{
	margin-top: 3%;
}
.see_all{
	text-align: center;
}
/* membership plans start*/
.membership-plans {
    label {
        font-weight: 500;
    }

    .item {
        font-size: 14px;
        display: grid;
        grid-template-columns: 155px auto;
        column-gap: 10px;
        align-items: center;
        padding: 12px 0;

        &:not(:last-child) {
            border-bottom: 1px solid #D1D5DB;
        }
    }
}
.success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: rgb(22 101 52);
	background-color: rgb(240, 253, 244);
    border: 1px solid rgb(187, 247, 208);
    border-radius: 999px; /* pill style */
    white-space: nowrap;
}
.error {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: rgb(153 27 27);          /* red-800 */
    background-color: rgb(254 242 242); /* red-50 */
    border: 1px solid rgb(254 202 202); /* red-200 */
    border-radius: 999px; /* pill style */
    white-space: nowrap;
}
.tag{
	display: inline;
	font-size: 13px;
	border-radius: 4px;
	padding: 6px 12px;
}
.cancel-membership {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cancel-membership:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}
.non_member_msg{
    display: inline-block;
    padding: 2px 8px;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #065f46;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;       
}
/* membership plans end*/

/* ── My Account redesign ─────────────────────────────────── */

/* Hide the default WooCommerce nav list — our .mhp-nav replaces it */
nav.woocommerce-MyAccount-navigation {
    display: none !important;
}

/* Remove Astra's container padding so sidebar aligns with the page title */
.woocommerce-account .ast-woocommerce-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Two-column layout: our nav sidebar + WooCommerce content */
.woocommerce-account .woocommerce {
    display: flex !important;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: nowrap;
}
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    float: none !important;
    width: auto !important;
}

/* Dashboard content wrapper */
.mh-dashboard {
    width: 100%;
}
.mh-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Styled sidebar nav ──────────────────────── */
.mhp-nav {
    flex: 0 0 240px;
    width: 240px;
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* Profile strip */
.mhp-nav__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px 16px;
    border-bottom: 1px solid #f3f4f6;
}
.mhp-nav__avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}
.mhp-nav__avatar-wrap img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 2px solid #e5e7eb !important;
}
.mhp-nav__online {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
}
.mhp-nav__profile-text {}
.mhp-nav__name {
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0 !important;
}
.mhp-nav__role {
    display: inline-block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 999px;
    padding: 2px 8px;
    line-height: 1.5;
}

/* Nav links */
.mhp-nav__menu {
    display: flex;
    flex-direction: column;
    padding: 8px 8px 8px 0;
    gap: 1px;
}
.mhp-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 14px;
    text-decoration: none !important;
    color: #4b5563;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: background .14s, color .14s;
    position: relative;
}
.mhp-nav__item svg {
    flex-shrink: 0;
    opacity: .55;
    transition: opacity .14s;
}
.mhp-nav__item:hover {
    background: #f9fafb;
    color: #111827;
}
.mhp-nav__item:hover svg { opacity: .85; }
.mhp-nav__item.is-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}
.mhp-nav__item.is-active svg { opacity: 1; }
.mhp-nav__item.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: #1d4ed8;
    border-radius: 0 3px 3px 0;
}


.mh-account-wrap {
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Top box */
.mh-top-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(135deg, #1164cb 0%, #2a85e8 100%);
    border-radius: 12px;
    padding: 20px 24px;
    color: #fff;
    box-sizing: border-box;
}
.mh-top-box__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
}
.mh-top-box__subtitle {
    font-size: 12px;
    opacity: 0.82;
    margin: 0;
    color: #fff;
}
.mh-top-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mh-top-buttons__form {
    margin: 0 !important;
    display: inline-flex;
}
.mh-btn-top-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 7px;
    background: #fff;
    color: #1164cb;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.mh-btn-top-primary:hover { background: #f0f7ff; color: #0d52a8; }
.mh-btn-top-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.mh-btn-top-ghost:hover { background: rgba(255, 255, 255, 0.22); }

/* Stats grid */
.mh-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.mh-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    box-sizing: border-box;
}
.mh-stat-card__label {
    color: #6b7280;
    font-size: 11px;
    margin: 0 0 7px;
    font-weight: 500;
}
.mh-stat-card__value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

/* Status badges */
.mh-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.mh-status-badge--active    { background: #dcfce7; color: #166534; }
.mh-status-badge--cancelled { background: #fee2e2; color: #dc2626; }
.mh-status-badge--expired   { background: #fef9c3; color: #854d0e; }

/* Membership History */
.mh-history {
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    margin-bottom: 8px;
}
.mh-history__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 12px;
}
.mh-history__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
}
.mh-history__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mh-history__plan {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.mh-history__date {
    font-size: 12px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 820px) {
    .woocommerce-account .woocommerce {
        flex-wrap: wrap !important;
    }
    .mhp-nav {
        flex: 0 0 100%;
        width: 100%;
        position: static;
    }
}
@media (max-width: 640px) {
    .mh-stats-grid { grid-template-columns: 1fr; }
    .mh-top-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .mh-top-buttons { width: 100%; }
    .mh-btn-top-primary,
    .mh-btn-top-ghost { width: 100%; justify-content: center; }
    .mh-top-buttons__form { width: 100%; }
}
/* ── End My Account redesign ──────────────────────────────── */

/* Form css start */
.reg-form{
	max-width: 500px;
	margin: 0 35%;
	display: table;
}
.group-field{
	margin-bottom: 15px;
	.form-label{
		font-size: 13px;
		line-height: 1.625rem;
		margin-bottom: 5px;
	}
}

.input-wrap select,
.input-wrap textarea{
	border: 1px solid #E6E6E6 !important;
	font-size: 13px !important;
	border-radius: 4px !important;
	margin: 0;
}

.input-wrap select,
.wp-core-ui select {
	height: 40px;
}
/* Form css end */

.docs{
    font-size: 13px;
}

/* Restricted content message */
.mh-restricted-content {
    max-width: 600px;
    margin: 30px auto;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.mh-restricted-content__body {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.mh-restricted-content__body a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--mem-primary-color);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mh-restricted-content__body a:hover {
    background: color-mix(in srgb, var(--mem-primary-color) 85%, #000);
    transform: translateY(-1px);
    color: #fff;
}
