/*
Theme Name: Anubis Fitness
Theme URI: https://anubisfitness.co.uk
Author: Denzel Nwankwo
Author URI: https://example.com
Description: Custom WordPress theme for Anubis Fitness built with Tailwind CSS and GSAP.
Version: 1.0.0
Text Domain: anubisfitness
*/

/* CSS Reset + Variables */
:root {
    --main-accent: #B4151B;
    --dark-bg: #010101;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background: var(--dark-bg);
    color: #F7F7F7;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

/* Custom Crosshair Cursor */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999999;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    opacity: 0;
}

#cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999998;
    transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
    opacity: 0;
}

#cursor-cross {
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999999;
    transition: opacity 0.2s;
    opacity: 0;
}

#cursor-cross::before,
#cursor-cross::after {
    content: '';
    position: absolute;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#cursor-cross::before {
    width: 100%;
    height: 1px;
}

#cursor-cross::after {
    width: 1px;
    height: 100%;
}

/* Restore system cursors for inputs so users can type securely */
input,
textarea,
select,
iframe {
    cursor: auto !important;
}

/* Hover effect on interactive elements */
.is-hovering #cursor-dot {
    width: 0px;
    height: 0px;
}

.is-hovering #cursor-cross {
    opacity: 0;
}

.is-hovering #cursor-outline {
    width: 60px;
    height: 60px;
    border-color: rgba(180, 21, 27, 0.8);
    background-color: rgba(180, 21, 27, 0.15);
    mix-blend-mode: normal;
}

/* Disable Custom Cursor on Mobile & Tablet */
@media (max-width: 1024px) {

    #cursor-dot,
    #cursor-outline,
    #cursor-cross {
        display: none !important;
        visibility: hidden !important;
    }

    body {
        cursor: auto !important;
    }
}

/* Force Default Cursor on Account & Registration Pages */
body.page-id-2075,
body.page-template-default.page,
body[class*="mepr-account"],
body[class*="mepr-signup"],
.mepr-account-container,
.mepr-signup-form,
.mepr-form {
    cursor: auto !important;
}

body.page-id-2075 #cursor-dot,
body.page-id-2075 #cursor-outline,
body.page-id-2075 #cursor-cross,
body[class*="mepr-account"] #cursor-dot,
body[class*="mepr-account"] #cursor-outline,
body[class*="mepr-account"] #cursor-cross,
body[class*="mepr-signup"] #cursor-dot,
body[class*="mepr-signup"] #cursor-outline,
body[class*="mepr-signup"] #cursor-cross {
    display: none !important;
}

/* Texture Overlays */
.noise-texture {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Decorative utilities */
.cta-cutout {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.cta-cutout-small {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.text-outline-white {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    color: transparent;
}

/* Parallax Box */
.heavy-layer {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.8);
}

.reveal-mask {
    display: block;
    overflow: hidden;
}

/* Marquee setup */
.marquee-wrapper {
    position: absolute;
    bottom: 8vh;
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 15;
    mix-blend-mode: overlay;
    opacity: 0.8;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    width: max-content;
}

.marquee-content span {
    font-size: 8rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    padding-right: 4rem;
    text-transform: uppercase;
    line-height: 1;
}

.text-stroke-gold {
    -webkit-text-stroke: 1px #F2C043;
    color: transparent;
}

.text-stroke-white {
    -webkit-text-stroke: 1px #FFF;
    color: transparent;
}

.text-stroke-crimson {
    -webkit-text-stroke: 1px #B4151B;
    color: transparent;
}

/* Map Filter overlay */
#custom-map-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
}

#custom-map-wrap iframe {
    position: relative;
    z-index: 10;
    filter: grayscale(100%) contrast(1.2) sepia(10%) hue-rotate(200deg);
    mix-blend-mode: luminosity;
}

.map-dark-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(1, 1, 1, 1) 0%, rgba(1, 1, 1, 0.2) 100%);
    z-index: 20;
    pointer-events: none;
}

/* Scrollbar hide for slickness */
::-webkit-scrollbar {
    display: none;
}

/* Loader Overrides */
#preloader {
    transform-origin: top;
    background: var(--dark-bg);
}

#load-bar {
    transform-origin: left;
}

/* Membership slider scroll container logic */
#membership-slider {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

#membership-slider>div {
    scroll-snap-align: start;
}

/* Membership Card Base Styles */
.membership-card-inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    transition: all 0.5s cubic-bezier(0.2, 0, 0.3, 1);
}

.glow-offpeak:hover {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-10px);
}

.glow-offpeak:hover .membership-card-title {
    color: #fff;
    opacity: 1;
}

.glow-standard:hover {
    filter: drop-shadow(0 0 40px rgba(242, 192, 67, 0.5));
    border-color: rgba(242, 192, 67, 0.7);
    transform: translateY(-10px);
}

.glow-standard:hover .membership-card-title {
    color: #F2C043;
    opacity: 1;
}

.glow-platinum:hover {
    filter: drop-shadow(0 0 40px rgba(180, 21, 27, 0.6));
    border-color: rgba(180, 21, 27, 0.8);
    transform: translateY(-10px);
}

.glow-platinum:hover .membership-card-title {
    color: #B4151B;
    opacity: 1;
}

/* Slashed Decoration */
.slashed-decor {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: -2px;
    color: #fff;
}

/* Quantity Pop Animation */
@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        filter: brightness(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.quantity-pop {
    animation: pop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- MemberPress UI Overrides --- */

/* Form Wrapper container */
.mp_wrapper .mepr-form,
.mp_wrapper .mepr-login-form,
.mp_wrapper .mepr-signup-form,
#mepr_loginform,
form.mepr-signup-form {
    width: 100%;
    max-width: 850px !important;
    margin: 0 auto;
    font-family: 'JetBrains Mono', monospace;
    background: #0A0A0A !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 4rem 3rem !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
}

/* Fix for side-by-side squishing on Desktop */
.mepr-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100% !important;
}

/* Force full width for rows that shouldn't be split - ULTRA SPECIFIC */
html body .mp_wrapper .mepr-form .mepr-form-row.mepr-email,
html body .mp_wrapper .mepr-form .mepr-form-row.mepr-password,
html body .mp_wrapper .mepr-form .mepr-form-row.mepr-address-one,
html body .mp_wrapper .mepr-form .mepr-form-row.mepr_coupon,
html body .mp_wrapper .mepr-form .mepr-payment-field,
html body .mp_wrapper .mepr-form .mepr-stripe-elements-fields,
html body .mp_wrapper .mepr-form .mepr-form-row {
    grid-template-columns: 1fr !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* Allow split for specific name rows only */
html body .mp_wrapper .mepr-form .mepr-form-row.mepr-first-name,
html body .mp_wrapper .mepr-form .mepr-form-row.mepr-last-name {
    display: inline-block !important;
    width: 48% !important;
}

@media (max-width: 768px) {
    html body .mp_wrapper .mepr-form .mepr-form-row {
        width: 100% !important;
        display: block !important;
    }
}

@media (max-width: 640px) {

    .mp_wrapper .mepr-form,
    .mp_wrapper .mepr-login-form,
    .mp_wrapper .mepr-signup-form,
    #mepr_loginform,
    form.mepr-signup-form {
        padding: 2rem 1rem !important;
        border-radius: 1rem !important;
    }
}

/* Hide default annoying borders in MP */
.mp_wrapper {
    border: none !important;
}

/* Form Labels - Ultra High Specificity */
html body .mp_wrapper .mepr-form label,
html body .mepr-form label,
html body .mepr-payment-field label,
html body .mepr-stripe-elements-fields label,
html body #mepr-stripe-elements-form label,
html body #mepr_loginform label,
html body form.mepr-signup-form label {
    display: block !important;
    color: #F2C043 !important;
    /* Gold */
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 0.8rem !important;
    opacity: 1 !important;
}

/* Form Inputs & Payment Fields - High Specificity */
html body .mp_wrapper .mepr-form input[type="text"],
html body .mp_wrapper .mepr-form input[type="password"],
html body .mp_wrapper .mepr-form input[type="email"],
html body .mp_wrapper .mepr-form input[type="tel"],
html body .mp_wrapper .mepr-form select,
html body .mepr-form .mepr-countries-select,
html body .StripeElement,
html body .mepr-stripe-elements-fields .StripeElement,
html body #mepr_loginform input[type="text"],
html body #mepr_loginform input[type="password"],
html body form.mepr-signup-form input[type="email"],
html body form.mepr-signup-form input[type="text"],
html body form.mepr-signup-form input[type="password"] {
    width: 100% !important;
    background: #0A0A0A !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #F7F7F7 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    padding: 0.8rem 1rem !important;
    margin-bottom: 1.2rem !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    min-height: 48px !important;
}

/* Ensure Stripe Payment Box matches exactly */
.StripeElement,
.mepr-stripe-elements-fields .StripeElement {
    padding: 12px 1rem !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
}

/* Fix for icons and placeholders inside dark inputs */
html body .StripeElement--focus {
    border-color: #F2C043 !important;
}

html body ::placeholder {
    color: #555555 !important;
}

.mp_wrapper .mepr-form input[type="text"]:focus,
.mp_wrapper .mepr-form input[type="password"]:focus,
.mepr-form input[type="email"]:focus,
.mepr-form input[type="tel"]:focus,
.mepr-form select:focus,
#mepr_loginform input[type="text"]:focus,
#mepr_loginform input[type="password"]:focus,
form.mepr-signup-form input[type="text"]:focus,
form.mepr-signup-form input[type="password"]:focus,
form.mepr-signup-form input[type="email"]:focus {
    outline: none !important;
    border-color: #F2C043 !important;
    /* Gold */
    background: #0F0F0F !important;
    box-shadow: 0 0 15px rgba(242, 192, 67, 0.2) !important;
}

/* Fix for International Telephone Input (iti) and Select dropdowns */
.iti__country-list {
    background-color: #0F0F0F !important;
    border: 1px solid #333 !important;
    color: #F7F7F7 !important;
}

.iti__selected-flag {
    background-color: transparent !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mepr-form select option {
    background-color: #0F0F0F !important;
    color: #F7F7F7 !important;
}

/* Submit Button */
.mp_wrapper .mepr-form input[type="submit"],
#mepr_loginform input[type="submit"],
form.mepr-signup-form input[type="submit"] {
    background: #F2C043 !important;
    color: #010101 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: none !important;
    padding: 1.2rem 2.5rem !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    width: 100% !important;
    margin-top: 1rem !important;
}

.mp_wrapper .mepr-form input[type="submit"]:hover,
#mepr_loginform input[type="submit"]:hover,
form.mepr-signup-form input[type="submit"]:hover {
    background: #fff !important;
}

/* Links (Forgot Password, etc.) */
.mp_wrapper .mepr-login-actions,
#mepr_loginform .mepr-login-actions {
    margin-top: 2rem !important;
    font-size: 0.8rem !important;
    text-align: center !important;
}

.mp_wrapper .mepr-form a,
#mepr_loginform a,
form.mepr-signup-form a {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mp_wrapper .mepr-form a:hover,
#mepr_loginform a:hover,
form.mepr-signup-form a:hover {
    color: #F2C043 !important;
}

/* --- MemberPress Account Page Table --- */
.mepr-account-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    background: transparent !important;
    margin-top: 2rem !important;
}

.mepr-account-table th {
    background: #000 !important;
    color: #F2C043 !important;
    /* Gold */
    font-family: 'JetBrains Mono', monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    font-size: 0.75rem !important;
    padding: 1.5rem 1rem !important;
    border: none !important;
    border-bottom: 2px solid #F2C043 !important;
    text-align: left !important;
}

.mepr-account-table td {
    background: #0A0A0A !important;
    color: #F7F7F7 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    padding: 1.2rem 1rem !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Force dark background on alternating rows to fix the "white-out" issue */
.mepr-account-table tr.mepr-account-row-even td,
.mepr-account-table tr.mepr-account-row-odd td,
.mepr-account-table tr:nth-child(even) td,
.mepr-account-table tr:nth-child(odd) td {
    background: #0A0A0A !important;
    color: #F7F7F7 !important;
}

/* Hover effect for rows */
.mepr-account-table tr:hover td {
    background: #111 !important;
    color: #F2C043 !important;
}

/* Account Navigation Tabs */
#mepr-account-nav {
    display: flex !important;
    gap: 1rem !important;
    margin-bottom: 3rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 1rem !important;
}

#mepr-account-nav a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-family: 'JetBrains Mono', monospace !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease !important;
}

#mepr-account-nav a.mepr-active-nav-tab,
#mepr-account-nav a:hover {
    color: #F2C043 !important;
    background: rgba(242, 192, 67, 0.1) !important;
}

/* Payment Status Badges */
.mepr-account-table .mepr-status-complete {
    color: #4ADE80 !important;
    /* Green */
    font-weight: bold !important;
}

.mepr-account-table .mepr-status-pending {
    color: #F2C043 !important;
    /* Gold */
}

/* --- QR Code Visibility Fix --- */
/* For standard QR code containers and images */
.mepr-qr-code,
.mepr-qr-code-field,
.qrcode,
.qr-code,
.qr_code,
.mepr-barcode,
[id*="qr-code"],
[class*="qr-code"] {
    background: #FFFFFF !important;
    padding: 1.5rem !important;
    border-radius: 1rem !important;
    display: inline-block !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    margin: 1rem auto !important;
}

.mepr-qr-code img,
.mepr-qr-code-field img,
.qrcode img,
.qr-code img,
.qr_code img {
    display: block !important;
    max-width: 250px !important;
    height: auto !important;
}

/* If QR code is an SVG rendered directly */
.mepr-qr-code svg,
.mepr-qr-code-field svg,
.qrcode svg,
.qr-code svg {
    background: #FFFFFF !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
}

/* =========================================================================
   RESTORED THEME ADDITIONAL CSS (From WordPress Customizer)
   ========================================================================= */

/* Main form container styling */
.mb-0,
.mb-0 p {
    margin-bottom: 0 !important;
}

.page-header .entry-title,
.site-footer .footer-inner,
.site-footer:not(.dynamic-footer),
.site-header .header-inner,
.site-header:not(.dynamic-header),
body:not([class*=elementor-page-]) .site-main {
    max-width: 100%;
}

.mepr-signup-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, .5);
    row-gap: 0;
}

.mepr-signup-form .mepr-hidden {
    display: none;
}

.single-memberpressproduct .page-content,
.page-id-2075 .page-content,
.page-id-1951 .page-content,
.page-id-1952 .page-content,
.page-id-1960 .page-content {
    padding: 0 15px !important;
}

/* Page header styling */
.page-header {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0;
}

.single-memberpressproduct .entry-title,
.page-id-2075 .entry-title,
.page-id-1951 .entry-title,
.page-id-1952 .entry-title,
.page-id-1960 .entry-title,
.page-id-2343 .entry-title {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    margin: 0 !important;
    margin-top: 40px;
}

.single-memberpressproduct .page-header,
.page-id-2075 .page-header,
.page-id-1951 .page-header,
.page-id-1952 .page-header,
.page-id-1960 .page-header,
.page-id-2343 .page-header {
    background-image: url('https://anubisfitness.co.uk/wp-content/uploads/2025/07/BG-1920x10800-1.webp');
    padding: 10% 0;
    margin-bottom: 60px;
}

.page-id-2343 .page-header,
.page-id-2343 footer {
    margin-bottom: 0px !important;
    margin-top: 0 !important;
}

/* Price section */
.mepr_price {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #E3CB98, #d4b97a);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(227, 203, 152, 0.3);
    margin-bottom: 20px;
    border: 2px solid #E3CB98;
}

.mepr_price_cell_label {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.mepr_price_cell {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
}

/* Form rows styling */
.mp-form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.mepr_first_name,
.mepr_last_name {
    grid-column: span 1;
}

.mepr-address-one,
.mepr-address-two,
.mepr-address-city,
.mepr-address-country,
.mepr-address-state,
.mepr-address-zip {
    grid-column: span 1;
}

.mepr_profile_pic,
.mepr_mobile {
    grid-column: span 1;
}

.mepr_email {
    grid-column: 1 / -1;
}

.mepr_password,
.mepr_password_confirm {
    grid-column: span 1;
    margin-bottom: 20px;
}

/* Profile & Account Form Styling Specifics */
.mepr-account-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.mepr-account-form .mp-form-row {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 0px;
    box-sizing: border-box;
}

/* Make specific fields full width */
.mepr-account-form .mepr_spacer,
.mepr-account-form .mepr-account-change-password,
.mepr-account-form .mepr-share-button,
.mepr-account-form .mepr-qr-code-field {
    flex: 0 0 100% !important;
}

/* QR Code Custom Appended Styles */
.mepr-qr-code-field {
    background: #f8f9fa !important;
    padding: 25px !important;
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
    margin: 0px 0 !important;
}

.mepr-field-content {
    display: flex !important;
    align-items: flex-start !important;
    gap: 25px !important;
    flex-wrap: wrap !important;
}

.mepr-field-content img {
    border: 2px solid #E3CB98 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Add robust account table logic back in */
.mp_wrapper .mepr-account-form .mepr-submit {
    width: auto !important;
    display: inline-block !important;
    flex: none !important;
    background: #E3CB98 !important;
    color: #000 !important;
}

/* Subscriptions & Payments Tables Restoration */
#mepr-account-subscriptions-table,
#mepr-account-payments-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

#mepr-account-subscriptions-table thead,
#mepr-account-payments-table thead {
    background: linear-gradient(135deg, #E3CB98, #d4b87a);
}

#mepr-account-subscriptions-table th,
#mepr-account-payments-table th {
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    color: #000;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

#mepr-account-subscriptions-table td,
#mepr-account-payments-table td {
    padding: 20px 16px;
    border: none;
    vertical-align: top;
    color: #333;
}

/* MemberPress Mobile Layout Overrides */
@media (max-width: 768px) {
    .mepr-signup-form {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
        row-gap: 0;
    }

    .mepr_first_name,
    .mepr_last_name,
    .mepr_password,
    .mepr_password_confirm,
    .mepr-address-one,
    .mepr-address-two,
    .mepr-address-city,
    .mepr-address-country,
    .mepr-address-state,
    .mepr-address-zip,
    .mepr_profile_pic,
    .mepr_mobile {
        grid-column: 1 / -1;
    }

    .mepr-account-form .mp-form-row {
        flex: 0 0 100% !important;
    }

    .mepr-field-content {
        flex-direction: column !important;
        text-align: center !important;
    }
}
/* FORCE COUPON AND PAYMENT ONTO THEIR OWN LINES */
html body .mp_wrapper .mepr_coupon, html body .mp_wrapper .mepr-payment-field, html body .mp_wrapper #mepr-stripe-payment-fields-wrapper, html body .mp_wrapper .mepr-payment-method, html body .mp_wrapper #mepr-stripe-elements-form { display: block !important; width: 100% !important; clear: both !important; float: none !important; margin-top: 1.5rem !important; margin-bottom: 2rem !important; } .mepr_coupon { flex: 0 0 100% !important; max-width: 100% !important; }

/* ALIGN COUPON LEFT AND CENTER SIGN UP BUTTON */
html body .mp_wrapper .mepr-form .mepr_coupon { text-align: left !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; width: 100% !important; } html body .mp_wrapper .mepr-form .mepr_coupon label, html body .mp_wrapper .mepr-form .mepr_coupon input { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; } html body .mp_wrapper .mepr-form .mepr-submit { display: block !important; margin: 3rem auto 0 !important; width: 100% !important; max-width: 400px !important; text-align: center !important; } html body .mp_wrapper .mepr-form .mepr-stripe-elements-fields, html body .mp_wrapper .mepr-form #mepr-stripe-payment-fields-wrapper { width: 100% !important; max-width: 100% !important; }


/* -------------------------------------------------------------------------
   FINAL LAYOUT OVERRIDE - NO COLOR CHANGES
   ------------------------------------------------------------------------- */

/* Force Form to Vertical Flex for Order Control */
form.mepr-signup-form, 
.mepr-signup-form,
.mp_wrapper .mepr-form {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 850px !important;
    margin: 0 auto !important;
    float: none !important;
}

/* Row Reset */
.mepr-form-row {
    width: 100% !important;
    display: block !important;
    clear: both !important;
    margin-bottom: 25px !important;
    float: none !important;
}

/* Keep Names Side-by-Side but proportioned */
.mepr-form-row.mepr_first_name, 
.mepr-form-row.mepr_last_name {
    display: inline-block !important;
    width: 48% !important;
    margin-right: 1% !important;
    vertical-align: top !important;
}

/* 1. Aligned Coupon to Left */
.mepr_coupon {
    order: 10 !important;
    width: 100% !important;
    text-align: left !important;
    display: block !important;
    margin: 30px 0 !important;
    padding: 0 !important;
}

.mepr_coupon label, 
.mepr_coupon input,
.mepr-coupon-field {
    display: block !important;
    margin-left: 0 !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 2. Stripe Payment - LONGER and on own line */
.mepr-payment-field, 
#mepr-stripe-payment-fields-wrapper, 
.mepr-stripe-elements-fields,
.mepr-payment-method {
    order: 20 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    clear: both !important;
    margin: 30px 0 !important;
}

/* Ensure Stripe elements stretch to new 850px width */
.StripeElement {
    width: 100% !important;
}

/* 3. Centered Sign Up Button */
.mepr-submit, 
.mepr-form-submit,
.mp_wrapper .mepr-form input[type="submit"] {
    order: 30 !important;
    display: block !important;
    margin: 60px auto !important;
    width: 100% !important;
    max-width: 450px !important;
    text-align: center !important;
    float: none !important;
}

/* Ensure Mobile consistency */
@media (max-width: 768px) {
    .mepr-form-row.mepr_first_name, 
    .mepr-form-row.mepr_last_name {
        width: 100% !important;
        margin-right: 0 !important;
    }
}



/* FIXING STRIPE INPUTS AND COUPON POSITION */
.mepr-signup-form { display: flex !important; flex-direction: column !important; }
.mepr_coupon { order: 5 !important; margin-bottom: 20px !important; }
.mepr-payment-field, #mepr-stripe-payment-fields-wrapper { order: 10 !important; width: 100% !important; }
.mepr-form-submit, .mepr-submit { order: 20 !important; }
/* Ensure Stripe card number, country, and postal code inputs take up full width of the yellow box */
.StripeElement, .mepr-form #mepr-stripe-payment-fields-wrapper .StripeElement, .mepr-form #mepr_stripe_postal_code, .mepr-form .mepr_stripe_country { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
/* Fix specific Stripe field widths inside MemberPress layout */
.mepr-stripe-elements-form-field.mepr-stripe-elements-cc, .mepr-stripe-elements-form-field.mepr-stripe-elements-country, .mepr-stripe-elements-form-field.mepr-stripe-elements-zip { width: 100% !important; }
/* Coupon toggle text styling */
.mepr-have-coupon-link { display: inline-block !important; margin-bottom: 10px !important; cursor: pointer !important; text-decoration: none !important; }


/* FORCE STRIPE IFRAME FULL WIDTH */
.__PrivateStripeElement, .__PrivateStripeElement iframe, .mepr-stripe-card-element, .mepr-stripe-elements { width: 100% !important; min-width: 100% !important; max-width: 100% !important; display: block !important; box-sizing: border-box !important; }
.mepr-stripe-card-element { padding: 0 !important; border: none !important; }
.mepr_coupon { order: -1 !important; margin-bottom: 40px !important; }
.mepr-payment-field { order: 10 !important; }
.mepr-submit { order: 20 !important; }
/* Ensure the yellow container within MemberPress is also full width */
#mepr-stripe-payment-fields-wrapper, .mepr-stripe-elements-fields { width: 100% !important; max-width: 100% !important; }


/* FIXING COUPON TOGGLE VISIBILITY */
.mepr_coupon.mepr-hidden { display: none !important; }
.mepr_coupon:not(.mepr-hidden) { display: block !important; order: -1 !important; margin-bottom: 40px !important; }
.mepr-have-coupon-link { display: inline-block !important; cursor: pointer !important; text-decoration: underline !important; color: #F2C043 !important; }


/* FINAL STRIPE AND COUPON POSITIONING */
#mepr-stripe-payment-fields-wrapper, .mepr-payment-field { order: 10 !important; width: 100% !important; margin-top: 40px !important; }
.mepr-have-coupon-link { order: 15 !important; display: block !important; width: 100% !important; text-align: left !important; margin-bottom: 10px !important; }
.mepr_coupon { order: 20 !important; width: 100% !important; margin-bottom: 40px !important; }
.mepr-hidden { display: none !important; }
.mepr-form-submit, .mepr-submit { order: 30 !important; }
/* Ensure input boxes are full width in the yellow box */
.mepr-form .StripeElement, .mepr-form #mepr_stripe_postal_code, .mepr-form .mepr_stripe_country { width: 100% !important; max-width: 100% !important; }
