/* ============================================================
   STESENPRINT MY ACCOUNT — PROFESSIONAL UI v2.0.2
   Scoped to WooCommerce My Account only.
   ============================================================ */

body.sp-account-pro-ui {
    --sp-account-navy: #101a3a;
    --sp-account-text: #5d6682;
    --sp-account-purple: #7a31ff;
    --sp-account-blue: #3154ff;
    --sp-account-line: #e1e5f2;
    --sp-account-soft: #f7f8ff;
    --sp-account-shadow: 0 22px 60px rgba(30, 37, 82, .09);
    background: #f7f8ff;
}

body.sp-account-pro-ui .sp-site-main {
    overflow: visible;
}

/* Compact page hero */
body.sp-account-pro-ui .sp-page-hero {
    min-height: 0;
    padding: 52px 0 44px;
    border-bottom: 1px solid rgba(222, 226, 242, .85);
    background:
        radial-gradient(circle at 84% 18%, rgba(111, 73, 255, .13), transparent 27%),
        linear-gradient(135deg, #fff 0%, #f1f2ff 100%);
}

body.sp-account-pro-ui .sp-page-hero::after {
    right: 8%;
    bottom: -115px;
    width: 270px;
    height: 270px;
    opacity: .72;
}

body.sp-account-pro-ui .sp-page-hero .sp-eyebrow {
    margin-bottom: 10px;
    color: #693cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
}

body.sp-account-pro-ui .sp-page-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--sp-account-navy);
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
    font-size: clamp(44px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .98;
}

/* Remove the generic oversized content card */
body.sp-account-pro-ui .sp-page-shell {
    padding: 38px 0 78px;
}

body.sp-account-pro-ui .sp-page-shell > .sp-content-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.sp-account-pro-ui .sp-entry-content,
body.sp-account-pro-ui .woocommerce {
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
}

body.sp-account-pro-ui .woocommerce {
    max-width: 1180px;
    margin: 0 auto;
}

/* Welcome strip */
body.sp-account-pro-ui .sp-account-welcome {
    display: grid;
    grid-template-columns: 54px minmax(240px, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid #dddff3;
    border-radius: 18px;
    background: linear-gradient(100deg, #fff 0%, #f7f5ff 100%);
    box-shadow: 0 12px 30px rgba(33, 40, 84, .055);
}

body.sp-account-pro-ui .sp-account-welcome-icon {
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--sp-account-purple), var(--sp-account-blue));
    box-shadow: 0 10px 22px rgba(91, 58, 242, .22);
    color: #fff;
}

body.sp-account-pro-ui .sp-account-welcome-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.sp-account-pro-ui .sp-account-welcome-copy strong,
body.sp-account-pro-ui .sp-account-welcome-copy span {
    display: block;
}

body.sp-account-pro-ui .sp-account-welcome-copy strong {
    margin-bottom: 2px;
    color: var(--sp-account-navy);
    font-size: 17px;
    font-weight: 800;
}

body.sp-account-pro-ui .sp-account-welcome-copy span {
    color: var(--sp-account-text);
    font-size: 13px;
    line-height: 1.5;
}

body.sp-account-pro-ui .sp-account-welcome-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

body.sp-account-pro-ui .sp-account-welcome-badges span {
    padding: 7px 10px;
    border: 1px solid #ddd8ff;
    border-radius: 999px;
    background: #fff;
    color: #5130d9;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

/* Guest login/register layout */
body.sp-account-is-guest .woocommerce .u-columns.col2-set,
body.sp-account-is-guest .woocommerce .col2-set {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 24px;
    align-items: start;
    clear: both;
    margin: 0 !important;
}

/* WooCommerce clearfix pseudo-elements become grid items unless disabled. */
body.sp-account-is-guest .woocommerce .u-columns.col2-set::before,
body.sp-account-is-guest .woocommerce .u-columns.col2-set::after,
body.sp-account-is-guest .woocommerce .col2-set::before,
body.sp-account-is-guest .woocommerce .col2-set::after {
    display: none !important;
    content: none !important;
}

body.sp-account-is-guest .woocommerce .u-column1,
body.sp-account-is-guest .woocommerce .u-column2,
body.sp-account-is-guest .woocommerce .col-1,
body.sp-account-is-guest .woocommerce .col-2 {
    position: relative;
    display: flex;
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    flex-direction: column;
    float: none !important;
    clear: none !important;
    overflow: hidden;
    padding: 0;
    margin: 0 !important;
    border: 1px solid var(--sp-account-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--sp-account-shadow);
}

body.sp-account-is-guest .woocommerce .u-column1,
body.sp-account-is-guest .woocommerce .col-1 {
    grid-column: 1;
}

body.sp-account-is-guest .woocommerce .u-column2,
body.sp-account-is-guest .woocommerce .col-2 {
    grid-column: 2;
}

body.sp-account-is-guest .woocommerce .u-column1::before,
body.sp-account-is-guest .woocommerce .u-column2::before {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--sp-account-purple), var(--sp-account-blue));
    content: "";
}

body.sp-account-is-guest .woocommerce .u-column1 {
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
}

body.sp-account-is-guest .woocommerce .u-column2 {
    background:
        radial-gradient(circle at 92% 2%, rgba(126, 67, 255, .09), transparent 25%),
        linear-gradient(180deg, #fff 0%, #faf9ff 100%);
}

body.sp-account-is-guest .woocommerce .u-column1 > form,
body.sp-account-is-guest .woocommerce .u-column2 > form,
body.sp-account-is-guest .woocommerce .col-1 > form,
body.sp-account-is-guest .woocommerce .col-2 > form {
    width: 100%;
}

body.sp-account-is-guest .woocommerce .u-column1 > h2,
body.sp-account-is-guest .woocommerce .u-column2 > h2 {
    margin: 0 !important;
    padding: 30px 30px 10px;
    color: var(--sp-account-navy);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
}

body.sp-account-is-guest form.woocommerce-form-login,
body.sp-account-is-guest form.woocommerce-form-register,
body.sp-account-is-guest .woocommerce form.login,
body.sp-account-is-guest .woocommerce form.register {
    min-height: 0;
    padding: 0 30px 30px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.sp-account-pro-ui .sp-account-form-intro {
    margin-bottom: 22px;
}

body.sp-account-pro-ui .sp-account-form-tag {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eee9ff;
    color: #6236e8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

body.sp-account-pro-ui .sp-account-form-intro p {
    max-width: 520px;
    margin: 0;
    color: var(--sp-account-text);
    font-size: 13px;
    line-height: 1.55;
}

body.sp-account-pro-ui .sp-account-register-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

body.sp-account-pro-ui .sp-account-register-benefits span {
    color: #38415e;
    font-size: 11px;
    font-weight: 700;
}

/* Form fields */
body.sp-account-pro-ui .woocommerce form .form-row {
    margin: 0 0 17px !important;
    padding: 0;
}

body.sp-account-pro-ui .woocommerce form .form-row label,
body.sp-account-pro-ui .sp-agent-register-fields label {
    display: block;
    margin: 0 0 7px;
    color: #17213f;
    font-size: 12px;
    font-weight: 800;
}

body.sp-account-pro-ui .woocommerce form input.input-text,
body.sp-account-pro-ui .woocommerce form input[type="text"],
body.sp-account-pro-ui .woocommerce form input[type="email"],
body.sp-account-pro-ui .woocommerce form input[type="password"],
body.sp-account-pro-ui .woocommerce form input[type="tel"],
body.sp-account-pro-ui .woocommerce form input[type="number"],
body.sp-account-pro-ui .woocommerce form select,
body.sp-account-pro-ui .woocommerce form textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px !important;
    border: 1.5px solid #dce1f0 !important;
    border-radius: 13px !important;
    background: #fbfcff !important;
    color: #19213d !important;
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
    font-size: 14px !important;
    box-shadow: none !important;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body.sp-account-pro-ui .woocommerce form input:focus,
body.sp-account-pro-ui .woocommerce form select:focus,
body.sp-account-pro-ui .woocommerce form textarea:focus {
    border-color: #7a45ff !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(116, 66, 255, .10) !important;
}

body.sp-account-pro-ui .woocommerce form textarea {
    min-height: 105px;
    resize: vertical;
}

body.sp-account-pro-ui .woocommerce .password-input {
    width: 100%;
}

body.sp-account-pro-ui .woocommerce .show-password-input {
    top: 50% !important;
    right: 15px !important;
    transform: translateY(-50%);
}

body.sp-account-pro-ui .woocommerce input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #6d3cff;
}

body.sp-account-pro-ui .woocommerce .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 12px 12px 0 !important;
    color: #48516c !important;
    font-size: 12px !important;
}

/* Agent selector panel */
body.sp-account-pro-ui .sp-agent-register-fields {
    margin: 3px 0 16px;
    padding: 15px;
    border: 1px solid #e0dcf6;
    border-radius: 15px;
    background: rgba(247, 245, 255, .82);
}

body.sp-account-pro-ui .sp-agent-register-fields .form-row:last-child {
    margin-bottom: 0 !important;
}

body.sp-account-pro-ui .sp-agent-register-note {
    margin: 2px 0 14px;
    padding: 10px 12px;
    border-left: 3px solid #7840ff;
    border-radius: 8px;
    background: #fff;
    color: #525c78;
    font-size: 11px;
    line-height: 1.5;
}

body.sp-account-pro-ui .sp-agent-extra-fields[hidden] {
    display: none !important;
}

body.sp-account-pro-ui .sp-agent-extra-fields:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    margin-top: 14px;
}

body.sp-account-pro-ui .sp-agent-extra-fields:not([hidden]) .sp-agent-register-note,
body.sp-account-pro-ui .sp-agent-extra-fields:not([hidden]) .form-row:last-child {
    grid-column: 1 / -1;
}

/* Buttons and links */
body.sp-account-pro-ui .woocommerce button.button,
body.sp-account-pro-ui .woocommerce a.button,
body.sp-account-pro-ui .woocommerce input.button,
body.sp-account-pro-ui .woocommerce .woocommerce-Button {
    display: inline-flex;
    min-width: 138px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(90deg, var(--sp-account-purple), var(--sp-account-blue)) !important;
    box-shadow: 0 10px 22px rgba(83, 55, 231, .21) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

body.sp-account-pro-ui .woocommerce button.button:hover,
body.sp-account-pro-ui .woocommerce a.button:hover,
body.sp-account-pro-ui .woocommerce input.button:hover {
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(83, 55, 231, .29) !important;
    transform: translateY(-1px);
}

body.sp-account-pro-ui .woocommerce .lost_password,
body.sp-account-pro-ui .woocommerce .woocommerce-LostPassword {
    margin: 16px 0 0;
}

body.sp-account-pro-ui .woocommerce .lost_password a,
body.sp-account-pro-ui .woocommerce .woocommerce-LostPassword a,
body.sp-account-pro-ui .woocommerce .woocommerce-privacy-policy-link {
    color: #6337ed !important;
    font-weight: 700;
    text-decoration: none !important;
}

body.sp-account-pro-ui .woocommerce .lost_password a:hover,
body.sp-account-pro-ui .woocommerce .woocommerce-privacy-policy-link:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

body.sp-account-pro-ui .woocommerce .woocommerce-privacy-policy-text,
body.sp-account-pro-ui .woocommerce .woocommerce-privacy-policy-text p {
    margin: 12px 0 17px;
    color: #68708a;
    font-size: 12px;
    line-height: 1.55;
}

/* Notices */
body.sp-account-pro-ui .woocommerce-error,
body.sp-account-pro-ui .woocommerce-info,
body.sp-account-pro-ui .woocommerce-message {
    padding: 15px 17px 15px 48px !important;
    border: 1px solid #dde2f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(31, 38, 80, .05);
    color: #27304d;
}

/* Logged-in account dashboard */
body.sp-account-is-logged-in .woocommerce {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

body.sp-account-is-logged-in .woocommerce-MyAccount-navigation,
body.sp-account-is-logged-in .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    border: 1px solid var(--sp-account-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--sp-account-shadow);
}

body.sp-account-is-logged-in .woocommerce-MyAccount-navigation {
    position: sticky;
    top: 100px;
    padding: 14px;
}

body.sp-account-is-logged-in .woocommerce-MyAccount-navigation ul {
    display: grid;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

body.sp-account-is-logged-in .woocommerce-MyAccount-navigation a {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #27304d !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

body.sp-account-is-logged-in .woocommerce-MyAccount-navigation li.is-active a,
body.sp-account-is-logged-in .woocommerce-MyAccount-navigation a:hover {
    border-color: #ddd5ff;
    background: linear-gradient(90deg, #f1ecff, #eef2ff);
    color: #5730dd !important;
}

body.sp-account-is-logged-in .woocommerce-MyAccount-content {
    min-height: 420px;
    padding: 28px;
    color: #4e5873;
}

body.sp-account-is-logged-in .woocommerce-MyAccount-content h2,
body.sp-account-is-logged-in .woocommerce-MyAccount-content h3 {
    color: var(--sp-account-navy);
}

/* Tablet */
@media (max-width: 980px) {
    body.sp-account-pro-ui .sp-account-welcome {
        grid-template-columns: 50px 1fr;
    }

    body.sp-account-pro-ui .sp-account-welcome-badges {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    body.sp-account-is-guest .woocommerce .u-columns.col2-set,
    body.sp-account-is-guest .woocommerce .col2-set,
    body.sp-account-is-logged-in .woocommerce {
        grid-template-columns: 1fr !important;
    }

    body.sp-account-is-guest .woocommerce .u-column1,
    body.sp-account-is-guest .woocommerce .u-column2,
    body.sp-account-is-guest .woocommerce .col-1,
    body.sp-account-is-guest .woocommerce .col-2 {
        grid-column: 1 !important;
    }

    body.sp-account-is-logged-in .woocommerce-MyAccount-navigation {
        position: static;
    }
}

/* Mobile */
@media (max-width: 720px) {
    body.sp-account-pro-ui .sp-page-hero {
        padding: 34px 0 28px;
    }

    body.sp-account-pro-ui .sp-page-hero::after {
        display: none;
    }

    body.sp-account-pro-ui .sp-page-hero h1 {
        font-size: 39px;
        letter-spacing: -.035em;
        line-height: 1;
    }

    body.sp-account-pro-ui .sp-page-shell {
        padding: 20px 0 52px;
    }

    body.sp-account-pro-ui .sp-account-welcome {
        grid-template-columns: 44px 1fr;
        gap: 12px;
        padding: 15px;
        border-radius: 16px;
    }

    body.sp-account-pro-ui .sp-account-welcome-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    body.sp-account-pro-ui .sp-account-welcome-copy strong {
        font-size: 15px;
    }

    body.sp-account-pro-ui .sp-account-welcome-copy span {
        font-size: 12px;
    }

    body.sp-account-pro-ui .sp-account-welcome-badges {
        gap: 5px;
    }

    body.sp-account-pro-ui .sp-account-welcome-badges span {
        padding: 6px 8px;
        font-size: 9px;
    }

    body.sp-account-is-guest .woocommerce .u-columns.col2-set,
    body.sp-account-is-guest .woocommerce .col2-set {
        gap: 16px;
    }

    body.sp-account-is-guest .woocommerce .u-column1,
    body.sp-account-is-guest .woocommerce .u-column2,
    body.sp-account-is-logged-in .woocommerce-MyAccount-navigation,
    body.sp-account-is-logged-in .woocommerce-MyAccount-content {
        border-radius: 17px;
    }

    body.sp-account-is-guest .woocommerce .u-column1 > h2,
    body.sp-account-is-guest .woocommerce .u-column2 > h2 {
        padding: 25px 18px 8px;
        font-size: 24px;
    }

    body.sp-account-is-guest form.woocommerce-form-login,
    body.sp-account-is-guest form.woocommerce-form-register,
    body.sp-account-is-guest .woocommerce form.login,
    body.sp-account-is-guest .woocommerce form.register {
        padding: 0 18px 22px !important;
    }

    body.sp-account-pro-ui .sp-agent-extra-fields:not([hidden]) {
        grid-template-columns: 1fr;
    }

    body.sp-account-pro-ui .sp-agent-extra-fields:not([hidden]) .sp-agent-register-note,
    body.sp-account-pro-ui .sp-agent-extra-fields:not([hidden]) .form-row:last-child {
        grid-column: auto;
    }

    body.sp-account-pro-ui .woocommerce button.button,
    body.sp-account-pro-ui .woocommerce a.button,
    body.sp-account-pro-ui .woocommerce input.button,
    body.sp-account-pro-ui .woocommerce .woocommerce-Button {
        width: 100%;
    }

    body.sp-account-is-logged-in .woocommerce-MyAccount-content {
        min-height: 0;
        padding: 20px;
    }
}
