/**
 * PAF Custom Styles
 * Custom CSS for Publications Agora France
 * Modern Menu - Sharp Design
 */

/* =========================
   MY ACCOUNT DROPDOWN - SHARP MODERN DESIGN
   ========================= */

/* Dropdown container */
#menu-item-88097 > ul.sub-menu {
    width: auto !important;
    min-width: 280px !important;
    max-width: 400px !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    box-sizing: border-box !important;
    text-align: left !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

/* List items */
#menu-item-88097 > ul.sub-menu > li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

#menu-item-88097 > ul.sub-menu > li:last-child {
    border-bottom: none !important;
}

/* Links */
#menu-item-88097 > ul.sub-menu > li > a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 18px !important;
    text-align: left !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #2d2d2d !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    transition: all 0.12s ease !important;
    text-decoration: none !important;
}

/* Hover state */
#menu-item-88097 > ul.sub-menu > li > a:hover,
#menu-item-88097 > ul.sub-menu > li > a:focus {
    background: #f7f7f7 !important;
    color: #2d2d2d !important;
}

/* Remove Salient hover interference */
#menu-item-88097 > ul.sub-menu > li:hover,
#menu-item-88097 > ul.sub-menu > li.sfHover {
    background: transparent !important;
}

/* ========================================
   SUBSCRIPTION ICONS
   ======================================== */

/* Subscription featured image icons */
#menu-item-88097 .subscription-icon,
#menu-item-88097 .menu-item-icon,
#menu-item-88097 img.subscription-icon,
#menu-item-88097 img.menu-item-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    margin-right: 14px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* Font Awesome icons in menu */
#menu-item-88097 .nectar-menu-icon {
    width: 24px !important;
    margin-right: 14px !important;
    font-size: 16px !important;
    color: #666 !important;
    flex-shrink: 0 !important;
    transition: color 0.12s ease !important;
}

/* Keep the "My Account" profile icon visible everywhere (incl. /mon-compte/) */
#header-secondary-outer #menu-item-88097 > a .nectar-menu-icon,
#header-secondary-outer #menu-item-88097 > a i,
#header-secondary-outer #menu-item-88097 > a .nectar-menu-icon-img {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure Font Awesome icons render in secondary header dropdown items (e.g. My Profile). */
#header-secondary-outer a.nectar-menu-item-with-icon i.nectar-menu-icon.fa {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-family: FontAwesome !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Stronger override for /mon-compte/ where global typography can clobber <i> */
#header-secondary-outer ul ul li a i.nectar-menu-icon.fa,
#header-secondary-outer ul ul li a i.nectar-menu-icon[class*="fa-"] {
    font-family: FontAwesome !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
    speak: none;
}

/* Icon hover state */
#menu-item-88097 > ul.sub-menu > li > a:hover .nectar-menu-icon,
#menu-item-88097 > ul.sub-menu > li > a:focus .nectar-menu-icon {
    color: #2d2d2d !important;
}

/* Icon/text wrapper */
#menu-item-88097 .nectar-menu-icon-text {
    display: inline-flex !important;
    align-items: center !important;
    text-align: left !important;
}

/* Menu item text wrapper */
#menu-item-88097 .menu-item-text {
    flex: 1 !important;
}

/* ========================================
   HEADING STYLES - GENERIC SECTION HEADINGS
   Any menu item with .menu-item-heading class
   ======================================== */

/* Section headings - generic class for all headings */
#menu-item-88097 > ul.sub-menu > li.menu-item-heading > a,
#header-secondary-outer ul ul li.menu-item-heading > a,
.menu-item-heading > a {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #999 !important;
    padding: 14px 18px 8px !important;
    pointer-events: none !important;
    cursor: default !important;
    background: #fafafa !important;
    border-bottom: none !important;
    border-left: none !important;
}

#menu-item-88097 > ul.sub-menu > li.menu-item-heading,
.menu-item-heading {
    border-bottom: none !important;
}

#menu-item-88097 > ul.sub-menu > li.menu-item-heading > a:hover,
#header-secondary-outer ul ul li.menu-item-heading:hover > a,
#header-secondary-outer ul ul li.menu-item-heading > a:hover,
.menu-item-heading > a:hover,
.menu-item-heading:hover > a {
    background: #fafafa !important;
    color: #999 !important;
}

/* ========================================
   SEPARATOR
   ======================================== */

/* Separator */
#menu-item-88097 > ul.sub-menu > li.menu-item-separator,
#header-secondary-outer ul ul li.menu-item-separator {
    padding: 0 !important;
    margin: 0 !important;
    height: 1px !important;
    border-bottom: none !important;
}

#menu-item-88097 > ul.sub-menu > li.menu-item-separator > a,
#header-secondary-outer ul ul li.menu-item-separator > a {
    display: block !important;
    height: 1px !important;
    background: #e5e5e5 !important;
    padding: 0 !important;
    font-size: 0 !important;
    color: transparent !important;
    pointer-events: none !important;
    cursor: default !important;
    margin: 8px 18px !important;
}

#menu-item-88097 > ul.sub-menu > li.menu-item-separator > a:hover,
#header-secondary-outer ul ul li.menu-item-separator:hover > a,
#header-secondary-outer ul ul li.menu-item-separator > a:hover {
    background: #e5e5e5 !important;
}

/* ========================================
   SUBMENU ICONS - SECONDARY NAV
   ======================================== */

/* All submenu icons - default state */
#header-secondary-outer ul ul li a .nectar-menu-icon {
    color: #666 !important;
    opacity: 1 !important;
    transition: color 0.12s ease !important;
}

/* All submenu icons - hover state */
#header-secondary-outer ul ul li:hover > a .nectar-menu-icon,
#header-secondary-outer ul ul li.sfHover > a .nectar-menu-icon {
    color: #2d2d2d !important;
}

/* ========================================
   LOGOUT BUTTON
   ======================================== */

/* Logout item - target by class or URL containing logout */
#menu-item-88097 > ul.sub-menu > li[class*="logout"] > a {
    color: #c41e3a !important;
    background: #fff !important;
}

#menu-item-88097 > ul.sub-menu > li[class*="logout"] > a:hover,
#menu-item-88097 > ul.sub-menu > li[class*="logout"] > a:focus,
#menu-item-88097 > ul.sub-menu > li[class*="logout"]:hover > a {
    background: #f7f7f7 !important;
    color: #c41e3a !important;
}

#menu-item-88097 > ul.sub-menu > li[class*="logout"] .nectar-menu-icon {
    color: #c41e3a !important;
}

#menu-item-88097 > ul.sub-menu > li[class*="logout"]:hover .nectar-menu-icon,
#menu-item-88097 > ul.sub-menu > li[class*="logout"] > a:hover .nectar-menu-icon {
    color: #fff !important;
}

/* ========================================
   PRIMARY NAV - MES ABONNEMENTS DROPDOWN
   ======================================== */

/* ========================================
   LAYOUT FIXES
   ======================================== */
   
.tabbed[data-style*=vertical] > div {
    padding-left: 0 !important;
}

.tabbed[data-style=vertical_modern] .wpb_tabs_nav li {
    margin-bottom: 8px !important;
}

.tabbed[data-style=vertical_modern] .wpb_tabs_nav li a {
    padding: 8px 15px;
}

/* ========================================
   SUBSCRIPTIONS PAGE - [mes_abonnements]
   ======================================== */

.paf-subscriptions-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.paf-sub-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.paf-sub-card:first-child {
    border-top: 1px solid #eee;
}

.paf-sub-card:hover {
    background: #f9f9f9;
    padding-left: 12px;
    margin-left: -12px;
    padding-right: 12px;
    margin-right: -12px;
}

.paf-sub-card-image {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paf-sub-card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.paf-sub-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #333;
    border-radius: 50%;
}

.paf-sub-card-placeholder span {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.paf-sub-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.paf-sub-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.paf-sub-card:hover .paf-sub-card-title {
    color: #1a1a1a;
}

.paf-sub-card-link {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.01em;
}

.paf-sub-card:hover .paf-sub-card-link {
    color: #333;
}

/* Notices */
.paf-login-notice,
.paf-error-notice,
.paf-no-subs-notice {
    padding: 20px 24px;
    background: #f7f7f7;
    border-left: 4px solid #333;
    font-size: 16px;
    color: #333;
}

.paf-login-notice a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .paf-sub-card {
        gap: 16px;
    }
    
    .paf-sub-card-image {
        width: 60px;
    }
    
    .paf-sub-card-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .paf-sub-card-placeholder span {
        font-size: 24px;
    }
    
    .paf-sub-card-title {
        font-size: 16px;
    }
}

/* Desktop: 2-column layout for [mes_abonnements] */
@media (min-width: 769px) {
    .paf-subscriptions-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        max-width: 1100px;
    }

    .paf-sub-card {
        padding: 18px;
        border: 1px solid #eee;
        border-radius: 10px;
        background: #fff;
    }

    .paf-sub-card:first-child {
        border-top: 1px solid #eee; /* keep harmless; overridden by full border */
    }

    .paf-sub-card:hover {
        padding-left: 18px;
        padding-right: 18px;
        margin-left: 0;
        margin-right: 0;
        background: #f9f9f9;
    }
}

/* ========================================
   MOBILE MENU - MON COMPTE SIMPLIFICATION
   ======================================== */

/* Hide the complex Mon Compte dropdown in mobile menu */
@media (max-width: 999px) {
    /* Hide the Mon Compte dropdown entirely in mobile off-canvas menu */
    #slide-out-widget-area #menu-item-88097,
    #slide-out-widget-area .menu-item-88097,
    .slide-out-widget-area-toggle + .slide-out-widget-area #menu-item-88097,
    .off-canvas-menu-container #menu-item-88097,
    #mobile-menu #menu-item-88097,
    .nectar-mobile-menu #menu-item-88097 {
        display: none !important;
    }
    
    /* Hide the dynamically added subscription items in mobile */
    #slide-out-widget-area [id^="menu-item-899"],
    #slide-out-widget-area [id^="menu-item-900"],
    .off-canvas-menu-container [id^="menu-item-899"],
    .off-canvas-menu-container [id^="menu-item-900"] {
        display: none !important;
    }
}

/* Mobile menu styling improvements */
@media (max-width: 999px) {
    /* Style any green background override */
    #slide-out-widget-area .menu-item a,
    .off-canvas-menu-container .menu-item a {
        background: transparent !important;
    }
}

/* ========================================
   MOBILE ACCOUNT MENU
   ======================================== */

/* Mobile account menu - uses Salient's native menu classes */
#slide-out-widget-area .paf-mobile-account-menu {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Section headings */
#slide-out-widget-area .paf-mobile-section-heading {
    pointer-events: none;
}

#slide-out-widget-area .paf-mobile-section-heading > span {
    display: block;
    padding: 15px 0 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
}

/* Logout item styling */
#slide-out-widget-area .paf-mobile-logout-item > a {
    color: #ff6b6b !important;
}

#slide-out-widget-area .paf-mobile-logout-item > a:hover {
    color: #ff4444 !important;
}

/* ========================================
   CREATE PASSWORD / FORGOT PASSWORD PAGE
   ======================================== */

.paf-password-wrapper {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.paf-password-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    text-align: center;
}

.paf-password-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    text-align: center;
}

.paf-password-messages {
    margin-bottom: 20px;
}

.paf-password-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.paf-password-message.paf-password-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.paf-password-message.paf-password-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.paf-password-form-container,
.paf-forgot-password-container {
    width: 100%;
}

.paf-form-field {
    margin-bottom: 20px;
}

.paf-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.paf-user-email {
    font-size: 16px;
    color: #1a1a1a;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
    margin: 0;
}

.paf-password-input-wrapper,
.paf-form-field input[type="email"] {
    position: relative;
    width: 100%;
}

.paf-password-input,
.paf-email-input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.paf-password-input:focus,
.paf-email-input:focus {
    outline: none;
    border-color: #333;
}

.paf-password-input-wrapper {
    position: relative;
}

.mw-password-field-masking {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.paf-form-submit {
    margin-top: 30px;
}

.paf-password-submit-button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #1a1a1a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.paf-password-submit-button:hover {
    background: #333;
}

.paf-password-success {
    text-align: center;
    padding: 20px;
    background: #efe;
    color: #3c3;
    border-radius: 4px;
    margin-bottom: 20px;
}

.paf-password-home-link {
    display: inline-block;
    margin-top: 20px;
    color: #1a1a1a;
    text-decoration: underline;
}

.paf-magic-link-section {
    margin-top: 20px;
    text-align: center;
}

.paf-divider {
    margin: 20px 0;
    color: #999;
    font-size: 14px;
}

.paf-magic-link-button {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.paf-magic-link-button:hover {
    background: #1a1a1a;
    color: #fff;
}

.paf-recaptcha-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.paf-traffic-light-alert {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .paf-password-wrapper {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .paf-password-title {
        font-size: 24px;
    }
}
/* ==========================================================================
   PAF login card – salient-child/includes/partials/paf-login-card.php
   ========================================================================== */
.tfs-mw-wrapper-block.paf-secure-login {
    --paf-login-blue: #1144bb;        /* footer "Je m'abonne" button */
    --paf-login-blue-dark: #0d3591;
    --paf-login-blue-tint: #eef2fb;
    --paf-login-text: #333;
    --paf-login-muted: #555;
    --paf-login-border: #ccc;
    --paf-login-line: #e2e2e2;

    max-width: 650px;
    margin: 25px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    color: var(--paf-login-text);
    box-sizing: border-box;
}

.tfs-mw-wrapper-block.paf-secure-login #tfs-mw-wrapper-block-title h2 {
    margin: 0 0 18px;
    padding: 0;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--paf-login-text);
}

/* Salient switches headings and form labels to Roboto; keep one font across the card. */
.tfs-mw-wrapper-block.paf-secure-login h2,
.tfs-mw-wrapper-block.paf-secure-login label,
.tfs-mw-wrapper-block.paf-secure-login input,
.tfs-mw-wrapper-block.paf-secure-login button,
.tfs-mw-wrapper-block.paf-secure-login a {
    font-family: inherit;
}

/* Salient pads every <p>; the plugin adds a 50px subtitle margin. */
.tfs-mw-wrapper-block.paf-secure-login p {
    padding: 0;
}

.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-wrapper-block-messages p {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.5;
    color: var(--paf-login-text);
}

.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-wrapper-block-messages .tfs-mw-wrapper-block-error,
.tfs-mw-wrapper-block.paf-secure-login label.error {
    color: #c0392b;
}

.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-wrapper-block-messages .tfs-mw-wrapper-block-success {
    color: #2e7d32;
}

/* The plugin shrinks every link in the block to 13px; keep message links at the text size. */
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-wrapper-block-messages a {
    font-size: inherit;
    color: var(--paf-login-blue);
    text-decoration: underline;
    overflow-wrap: anywhere;
}

/* Form fields – both forms. #secure-link-form beats the plugin's ID-based field rules. */
.tfs-mw-wrapper-block.paf-secure-login #secure-link-form .user-email label[for="user_email"],
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-username label,
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-password label {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    color: var(--paf-login-muted);
}

.tfs-mw-wrapper-block.paf-secure-login #secure-link-form .user-email input[type="email"],
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-username input[type="text"],
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-password input[type="password"],
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-password input[type="text"] {
    width: 100%;
    height: 58px;
    margin: 0;
    padding: 0 12px;
    font-size: 17px;
    color: var(--paf-login-text);
    background: #fff;
    border: 1px solid var(--paf-login-border);
    border-radius: 4px;
    box-shadow: none;
    box-sizing: border-box;
}

.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-password input {
    padding-right: 60px;
}

.tfs-mw-wrapper-block.paf-secure-login #secure-link-form .user-email input[type="email"]:focus,
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-username input:focus,
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-password input:focus {
    border-color: var(--paf-login-blue);
    outline: none;
}

.tfs-mw-wrapper-block.paf-secure-login #secure-link-form .user-email label.error,
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform label.error {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #c0392b;
}

/* The plugin sets the button wrapper to 80% wide with a 35px top margin. */
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-wrapper-block-magic-link {
    width: 100%;
    margin: 10px 0 0;
    text-align: center;
}

/* Buttons – one size, weight and case for all three. */
.tfs-mw-wrapper-block.paf-secure-login .paf-secure-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    color: #fff;
    background: var(--paf-login-blue);
    border: 1px solid var(--paf-login-blue);
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tfs-mw-wrapper-block.paf-secure-login .paf-secure-login-button:hover,
.tfs-mw-wrapper-block.paf-secure-login .paf-secure-login-button:focus {
    color: #fff;
    background: var(--paf-login-blue-dark);
    border-color: var(--paf-login-blue-dark);
    box-shadow: none;
}

/* Secondary (outline) toggle for the email + password form. */
.tfs-mw-wrapper-block.paf-secure-login .paf-secure-login-button--alt {
    color: var(--paf-login-blue);
    background: #fff;
}

.tfs-mw-wrapper-block.paf-secure-login .paf-secure-login-button--alt:hover,
.tfs-mw-wrapper-block.paf-secure-login .paf-secure-login-button--alt:focus,
.tfs-mw-wrapper-block.paf-secure-login .paf-secure-login-button--alt[aria-expanded="true"] {
    color: var(--paf-login-blue);
    background: var(--paf-login-blue-tint);
    border-color: var(--paf-login-blue);
}

.tfs-mw-wrapper-block.paf-secure-login .paf-secure-login-note {
    margin: 12px 0 0;
    font-size: 16px;
    text-align: center;
    color: var(--paf-login-muted);
}

.tfs-mw-wrapper-block.paf-secure-login .paf-secure-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 22px;
    font-size: 15px;
    color: var(--paf-login-muted);
}

.tfs-mw-wrapper-block.paf-secure-login .paf-secure-login-divider::before,
.tfs-mw-wrapper-block.paf-secure-login .paf-secure-login-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--paf-login-line);
}

/* Email + password form, revealed in place by the toggle. */
.tfs-mw-wrapper-block.paf-secure-login .paf-password-login {
    margin-top: 24px;
}

.tfs-mw-wrapper-block.paf-secure-login .paf-password-login[hidden] {
    display: none;
}

.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform {
    margin: 0;
    padding: 0;
}

.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-username,
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-password {
    margin: 0 0 18px;
}

.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .tfs-mw-wrapper-block-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 0 18px;
}

.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .tfs-mw-wrapper-block-row::after {
    content: none;
}

.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-remember,
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-forgot-password-link {
    float: none;
    margin: 0;
}

.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--paf-login-muted);
}

.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-remember input {
    margin: 0;
}

.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-forgot-password-link a {
    font-size: 15px;
    color: var(--paf-login-blue);
    text-decoration: underline;
}

/* The plugin narrows the submit wrapper to 90%. */
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-submit {
    width: 100%;
    margin: 0;
}

/* The plugin styles the submit as a grey uppercase button; match the card's primary button. */
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-submit input.paf-secure-login-button {
    min-height: 58px;
    font-size: 16px;
    text-transform: none;
    color: #fff;
    background: var(--paf-login-blue);
    border: 1px solid var(--paf-login-blue);
}

.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-submit input.paf-secure-login-button:hover,
.tfs-mw-wrapper-block.paf-secure-login .tfs-mw-loginform .login-submit input.paf-secure-login-button:focus {
    background: var(--paf-login-blue-dark);
    border-color: var(--paf-login-blue-dark);
}

@media (max-width: 690px) {
    .tfs-mw-wrapper-block.paf-secure-login {
        margin: 16px;
        padding: 20px 16px;
    }
}
