/* Brand tokens matched to pocketmsp.com, October 2026. */
:root {
    --pmsp-ink: #08111f;
    --pmsp-night: #0d1929;
    --pmsp-surface-2: #122238;
    --pmsp-surface-3: #172a43;
    --pmsp-blue: #48b5ff;
    --pmsp-cyan: #48b5ff;
    --pmsp-text: #f5f8fc;
    --pmsp-muted: #9eb0c6;
    --pmsp-border: #223854;
    --pmsp-line-soft: rgba(124, 160, 199, 0.16);
    --pmsp-panel: #0d1929;
    --pmsp-danger: #ff788c;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--pmsp-ink);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: var(--pmsp-ink);
    color: var(--pmsp-text);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.am-common h1,
.am-common h2,
.am-common h3,
.pmsp-auth-heading {
    font-family: inherit;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--pmsp-text);
}

.am-common,
.am-common legend,
.am-body-content input,
.am-body-content textarea,
.am-body-content select,
.am-body-content button,
.am-popup input,
.am-popup textarea,
.am-popup select,
.am-popup button,
.am-form input,
.am-form textarea,
.am-form select,
.am-form button {
    color: var(--pmsp-text);
    font-family: inherit;
}

.am-common a,
.am-form a,
.am-signup a,
.am-signup-login-wrapper a {
    color: var(--pmsp-cyan);
    text-decoration-color: rgba(124, 160, 199, 0.45);
}

.am-signup .am-errors a,
.am-signup .am-errors a:visited {
    color: #7f1d1d;
    text-decoration: underline;
    text-decoration-color: currentColor;
}

.am-signup .am-errors a:hover,
.am-signup .am-errors a:focus-visible {
    color: #450a0a;
}

.am-signup span.am-error a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: currentColor;
}

.am-main {
    max-width: 1180px;
}

.am-layout {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    width: 100%;
    min-height: initial;
    margin: 0;
    background: none;
}

.am-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid var(--pmsp-line-soft);
    background: rgba(8, 17, 31, 0.84);
    backdrop-filter: blur(18px);
}

.am-header .am-header-content-wrapper,
.am-body .am-body-content-wrapper,
.am-footer .am-footer-content-wrapper {
    border: 0;
    box-shadow: none;
    background: none;
}

.am-header-line {
    border: 0;
    background: none;
}

.am-header .am-header-content-wrapper {
    box-sizing: border-box;
    padding: 16px;
}

.am-header .am-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 48px;
    padding: 0;
}

.am-header-logo-wrapper {
    flex: 0 0 auto;
    height: 48px;
}

.am-header-logo-wrapper a {
    display: flex;
    align-items: center;
    height: 48px;
}

.am-header .am-header-content .am-header-content-logo {
    display: block;
    float: none;
    width: auto;
    height: 48px;
    margin: 0;
    object-fit: contain;
}

.am-header-content-content {
    flex: 1 1 auto;
}

.am-header-menu-wrapper a,
ul.am-header-menu a,
ul.am-header-menu-narrow a {
    color: var(--pmsp-text);
}

ul.am-header-menu li ul,
ul.am-header-menu-narrow li ul {
    border-color: var(--pmsp-border);
    background: var(--pmsp-ink);
}

.am-body {
    background: none;
}

.am-body-content {
    min-height: 300px;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.am-logged-in .am-body-content {
    display: grid;
    grid-template-columns: clamp(170px, 24vw, 260px) minmax(0, 1fr);
    gap: 1.25rem clamp(1rem, 2.2vw, 1.75rem);
    align-items: start;
}

.am-logged-in .am-body-content-top {
    display: contents;
}

.am-logged-in .am-member-sidebar {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.am-logged-in .am-account-toolbar {
    margin: 0;
}

.am-logged-in .am-account-toolbar .am-account-toolbar-items {
    display: block;
    overflow: hidden;
    box-sizing: border-box;
    min-height: auto;
    padding: 0.5rem;
    border: 1px solid rgba(124, 160, 199, 0.16);
    border-top: 0;
    border-radius: 0 0 0.9rem 0.9rem;
    background: var(--pmsp-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.am-logged-in .am-tabs-narrow-dashboard,
.am-logged-in .am-tabs-narrow-switch,
.am-logged-in .am-tabs-narrow-wrapper {
    display: none;
}

.am-logged-in .am-user-identity-block {
    float: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
    min-width: 0;
    padding: 0;
    background: none;
    color: #fff;
    font-weight: 800;
    line-height: 1.3;
}

.am-logged-in .am-user-identity-block::before {
    content: "Account";
    grid-column: 1 / -1;
    padding: 0.5rem 0.35rem 0;
    color: rgba(245, 248, 252, 0.52);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.am-logged-in .am-user-identity-block_login {
    overflow: hidden;
    min-width: 0;
    padding: 0.2rem 0.35rem 0.45rem;
    overflow-wrap: anywhere;
}

.am-logged-in .am-user-identity-block a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: stretch;
    min-height: 2.75rem;
    box-sizing: border-box;
    padding: 0.72rem 0.85rem;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: rgba(245, 248, 252, 0.78);
    font-size: inherit;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
}

.am-logged-in .am-user-identity-block a:hover {
    background: rgba(72, 181, 255, 0.18);
    color: #fff;
}

.am-page-profile .am-user-identity-block a[href="/profile"],
.am-page-integrations .am-user-identity-block a[href="/integrations"] {
    background: rgba(72, 181, 255, 0.18);
    box-shadow: inset 3px 0 0 var(--pmsp-blue);
    color: #fff;
}

.am-logged-in .am-tabs-wrapper {
    margin-top: 0;
}

.am-logged-in ul.am-tabs {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0.5rem;
    border: 1px solid rgba(124, 160, 199, 0.16);
    border-radius: 0.9rem 0.9rem 0 0;
    background: var(--pmsp-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.am-logged-in ul.am-tabs > li {
    float: none;
    width: 100%;
    background: transparent;
}

.am-logged-in ul.am-tabs li {
    white-space: normal;
}

.am-logged-in ul.am-tabs a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    height: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 0.72rem 0.85rem;
    border: 0;
    border-radius: 0.65rem;
    color: rgba(245, 248, 252, 0.78);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.am-logged-in ul.am-tabs #menu-member {
    width: auto;
}

.am-logged-in ul.am-tabs #menu-member::before {
    width: 1.15rem;
    margin-right: 0.65rem;
    color: currentColor;
}

.am-logged-in ul.am-tabs li.active,
.am-logged-in ul.am-tabs li.normal:hover {
    background: transparent;
}

.am-logged-in ul.am-tabs li.active > a,
.am-logged-in ul.am-tabs li.normal > a:hover {
    border-color: transparent;
    background: rgba(72, 181, 255, 0.18);
    color: #fff;
}

.am-logged-in ul.am-tabs li.active > a {
    box-shadow: inset 3px 0 0 var(--pmsp-blue);
}

.am-logged-in .am-body-content-top > .am-breadcrumbs,
.am-logged-in .am-body-content-top > h1,
.am-logged-in .am-body-content-top > .am-flash,
.am-logged-in .am-body-content-top > .am-info,
.am-logged-in .am-body-content-content {
    grid-column: 2;
    min-width: 0;
}

.am-logged-in .am-body-content-top > h1 {
    grid-row: 1;
    margin-top: 0;
}

.am-logged-in .am-body-content-content {
    grid-row: 2;
    align-self: stretch;
}

.am-logged-in .am-widget h2 {
    margin-top: 0;
    color: #fff;
}

.am-logged-in .am-widget .am-block,
.am-logged-in .am-block {
    border-color: rgba(124, 160, 199, 0.16);
    background: var(--pmsp-panel);
    color: rgba(245, 248, 252, 0.88);
}

.am-logged-in .am-layout-two-coll,
.am-logged-in .am-layout-two-coll .am-layout-two-coll-top,
.am-logged-in .am-layout-two-coll .am-layout-two-coll-bottom {
    border-color: rgba(124, 160, 199, 0.16);
    background: var(--pmsp-panel);
    box-shadow: none;
}

.am-logged-in .am-layout-two-coll {
    overflow: hidden;
    border-radius: 0.9rem;
}

.am-logged-in .am-layout-two-coll .am-layout-two-coll-top,
.am-logged-in .am-layout-two-coll .am-layout-two-coll-bottom {
    background: transparent;
}

.pmsp-integrations-page {
    width: min(100%, 48rem);
}

.pmsp-integrations-panel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: var(--pmsp-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pmsp-integrations-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.15rem 0.3rem;
}

.pmsp-integrations-heading h2,
.pmsp-integrations-kicker,
.pmsp-integrations-copy {
    margin: 0;
}

.pmsp-integrations-heading h2 {
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
}

.pmsp-integrations-kicker {
    color: rgba(245, 248, 252, 0.54);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
}

.pmsp-integrations-copy {
    padding: 0 1.15rem 1rem;
    color: var(--pmsp-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.pmsp-integrations-status {
    flex: 0 0 auto;
    border: 1px solid rgba(124, 160, 199, 0.18);
    border-radius: 999px;
    padding: 0.38rem 0.7rem;
    color: rgba(245, 248, 252, 0.84);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.pmsp-integrations-status.is-connected {
    border-color: rgba(126, 224, 195, 0.32);
    background: rgba(126, 224, 195, 0.12);
    color: #ccfff0;
}

.pmsp-integrations-status.is-empty {
    background: rgba(255, 255, 255, 0.045);
}

.pmsp-integrations-panel .errors {
    margin: 0 1.15rem 1rem;
}

.pmsp-integrations-success {
    margin: 0 1.15rem 1rem;
}

.pmsp-sync-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0 1.15rem 1rem;
}

.pmsp-sync-controls p {
    margin: 0;
    color: var(--pmsp-muted);
    line-height: 1.5;
}

.pmsp-sync-controls [data-sync-time] {
    flex: 1 1 12rem;
    order: 1;
}

.pmsp-sync-controls button {
    order: 2;
    padding: 0.65rem 1rem;
}

.pmsp-sync-controls [data-sync-error] {
    flex-basis: 100%;
    order: 3;
    color: #ffb4b4;
}

.am-body-content .pmsp-sync-controls button:disabled {
    cursor: default;
    opacity: 0.6;
    transform: none;
}

.pmsp-integrations-form {
    margin-bottom: 0;
}

.pmsp-integrations-form form {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.02);
}

.pmsp-secret-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.pmsp-secret-field input[type=password],
.pmsp-secret-field input[type=text] {
    min-width: 0;
}

.am-form .pmsp-secret-toggle,
.am-body-content .pmsp-secret-toggle {
    width: auto;
    min-width: 4.8rem;
    min-height: 2.85rem;
    padding: 0 1rem;
    border: 1px solid rgba(124, 160, 199, 0.22);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.am-form .pmsp-secret-toggle:hover,
.am-body-content .pmsp-secret-toggle:hover {
    background: rgba(72, 181, 255, 0.18);
    transform: none;
}

.pmsp-integrations-actions {
    background: transparent !important;
}

@media all and (min-width: 640px) {
    .pmsp-integrations-actions .am-element {
        display: flex;
        justify-content: flex-start;
    }

    .pmsp-integrations-actions input[type=submit] {
        width: auto;
        min-width: 15rem;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}

@media all and (max-width: 500px) {
    .pmsp-integrations-heading {
        display: grid;
    }

    .pmsp-integrations-status {
        justify-self: start;
    }

    .pmsp-secret-field {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pmsp-auth-heading {
    font-size: 1.5rem;
}

.am-page-login .am-auth-form {
    margin-right: auto;
    margin-left: auto;
}

.am-page-login .am-auth-form fieldset {
    gap: 0;
}

.am-page-login .am-signup-link {
    text-align: center;
}

.am-footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    height: auto;
    border-top: 1px solid var(--pmsp-line-soft);
    background: #060d17;
    color: rgba(255, 255, 255, 0.55);
}

.am-footer .am-footer-content-wrapper {
    height: auto;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
}

.am-footer .am-footer-content {
    padding-top: 0;
}

.am-footer .am-footer-content-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.am-footer .am-footer-content-content p {
    margin: 0;
    padding: 0;
}

.am-footer-actions {
    display: none;
}

@media (min-width: 640px) {
    .am-footer .am-footer-content-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.am-credits {
    color: rgba(255, 255, 255, 0.42);
}

.am-form {
    margin: 0 0 1rem;
}

.am-form form,
.am-popup,
.am-block,
.am-form-container .am-form-sidebar-sidebar {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: var(--pmsp-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.am-form form {
    overflow: hidden;
}

.am-form fieldset {
    display: grid;
    gap: 0.7rem;
}

.am-form fieldset legend {
    border: 0;
    background: transparent;
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    padding: 0.8rem 0.85rem 0.15rem;
}

.am-form div.am-row,
.am-form div.am-row.am-row-head,
.am-form .am-row.am-row-highlight {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.am-form div.am-element-title,
.am-form div.am-element {
    float: none;
    width: auto;
    margin-left: 0;
    padding: 0.55rem 0.85rem;
    text-align: left;
}

.am-form div.am-element-title {
    padding-bottom: 0.2rem;
}

.am-form div.am-element {
    padding-top: 0.2rem;
}

.am-form div.am-element-title label {
    color: rgba(245, 248, 252, 0.95);
    font-size: 0.88rem;
    font-weight: 700;
}

.am-form div.am-element-title .comment {
    color: var(--pmsp-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    opacity: 1;
}

.am-body-content select,
.am-body-content textarea,
.am-body-content input[type=email],
.am-body-content input[type=number],
.am-body-content input[type=text],
.am-body-content input[type=password],
.am-form select,
.am-form textarea,
.am-form input[type=email],
.am-form input[type=number],
.am-form input[type=text],
.am-form input[type=password],
.select2-container .select2-selection--single {
    min-height: 2.85rem;
    box-sizing: border-box;
    border: 1px solid var(--pmsp-border);
    border-radius: 9px;
    background: var(--pmsp-surface-2);
    color: #fff;
    box-shadow: none;
}

.am-form select,
.am-form textarea,
.am-form input[type=email],
.am-form input[type=number],
.am-form input[type=text],
.am-form input[type=password] {
    width: 100%;
}

.am-form div.am-element input + input,
.am-form div.am-element select + select,
.am-form div.am-element input + select,
.am-form div.am-element select + input {
    margin-top: 0.55rem;
}

.am-form .am-pass-indicator-wrap,
.am-form input.am-pass-indicator {
    display: block;
    width: 100%;
}

.am-invoice-summary {
    background: var(--pmsp-panel);
    color: var(--pmsp-text);
    border: 1px solid var(--pmsp-border);
    border-radius: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.am-invoice-summary table,
.am-invoice-summary tr,
.am-invoice-summary td {
    background: transparent;
    color: inherit;
}

.am-invoice-summary .am-invoice-summary-item-num,
.am-invoice-summary .am-invoice-summary-terms {
    color: var(--pmsp-muted);
}

.am-invoice-summary tr.am-invoice-summary-delimiter hr {
    border: 0;
    height: 1px;
    background: var(--pmsp-border);
}

.am-receipt {
    overflow: hidden;
    border: 1px solid var(--pmsp-border);
    border-radius: 15px;
    background: var(--pmsp-panel);
    color: var(--pmsp-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.am-receipt th,
.am-receipt td,
.am-receipt td.am-receipt-total {
    border-color: var(--pmsp-border);
    background: var(--pmsp-surface-2);
    color: var(--pmsp-text);
}

.am-receipt th,
.am-receipt td.am-receipt-terms {
    background: var(--pmsp-panel);
}

.am-receipt .am-receipt-terms__label {
    color: var(--pmsp-muted);
}

.am-page-cc .am-element.group:has(a[href*="/cancel?"]) {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0; /* Suppress the vendor's nonbreaking-space button separator. */
}

.am-page-cc .am-element.group a[href*="/cancel?"] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    box-sizing: border-box;
    border: 1px solid var(--pmsp-border);
    border-radius: 9px;
    background: var(--pmsp-surface-2);
    color: var(--pmsp-text);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.am-page-cc .am-element.group a[href*="/cancel?"]:hover {
    background: var(--pmsp-surface-3);
}

.am-page-cc .am-element.group a[href*="/cancel?"]:focus-visible {
    outline: 3px solid var(--pmsp-blue);
    outline-offset: 3px;
}

.am-form .StripeElement {
    min-height: 2.85rem;
    padding: 0.85rem 0.75rem;
    border: 1px solid var(--pmsp-border);
    border-radius: 9px;
    background: var(--pmsp-surface-2);
    color: var(--pmsp-text);
}

.am-form .StripeElement--focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--pmsp-cyan);
    box-shadow: 0 0 0 3px rgba(72, 181, 255, 0.14);
}

.am-form .StripeElement--invalid {
    border-color: var(--pmsp-danger);
}

.am-form .StripeElement--webkit-autofill {
    background: var(--pmsp-surface-2) !important;
}

.am-pass-indicator-bar {
    top: 0;
    background: rgba(255, 255, 255, 0.12);
}

.am-pass-indicator-bar_bar {
    height: 3px;
    border-radius: 999px;
}

.am-pass-indicator-bar_bar-weak {
    background: var(--pmsp-danger);
}

.am-pass-indicator-bar_bar-good {
    background: #ffd978;
}

.am-pass-indicator-bar_bar-strong {
    background: #7ee0a0;
}

.am-body-content textarea:focus,
.am-body-content input[type=email]:focus,
.am-body-content input[type=number]:focus,
.am-body-content input[type=text]:focus,
.am-body-content input[type=password]:focus,
.am-body-content select:focus,
.am-form textarea:focus,
.am-form input[type=email]:focus,
.am-form input[type=number]:focus,
.am-form input[type=text]:focus,
.am-form input[type=password]:focus,
.am-form select:focus,
.select2-container--focus .select2-selection--single,
.select2-container--open .select2-selection--single {
    border-color: rgba(124, 160, 199, 0.55);
    box-shadow: 0 0 0 3px rgba(72, 181, 255, 0.14);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff;
    line-height: 1.4;
    padding: 0.68rem 0.75rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.am-body-content textarea.am-error,
.am-body-content input.am-error,
.am-body-content select.am-error,
.am-form input.am-error,
.am-form textarea.am-error,
.am-form select.am-error {
    border-color: var(--pmsp-danger);
    background: rgba(255, 82, 82, 0.12);
}

.am-form span.error,
.am-form span.required,
.am-form span.am-error {
    color: #ffb4b4;
}

.am-error,
ul.errors,
.am-flash {
    color: #fff;
}

.am-info {
    border: 1px solid rgba(124, 160, 199, 0.18);
    border-radius: 9px;
    background: rgba(72, 181, 255, 0.12);
    color: rgba(245, 248, 252, 0.86);
}

.am-body-content a.button,
.am-body-content button,
.am-body-content input[type=button],
.am-body-content input[type=submit],
.am-form input[type=button],
.am-form input[type=submit],
.am-form button,
.am-popup a.button,
.am-popup button,
.am-popup input[type=button],
.am-popup input[type=submit] {
    min-height: 50px;
    box-sizing: border-box;
    border: 0;
    border-radius: 9px;
    background: var(--pmsp-blue);
    box-shadow: none;
    color: #04111f;
    font-size: 1rem;
    font-weight: 800;
}

.am-form input[type=button],
.am-form input[type=submit],
.am-form button {
    width: 100%;
}

.am-body-content a.button:hover,
.am-body-content button:hover,
.am-body-content input[type=button]:hover,
.am-body-content input[type=submit]:hover,
.am-form input[type=button]:hover,
.am-form input[type=submit]:hover,
.am-form button:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

@media all and (min-width: 640px) {
    .am-header .am-header-content-wrapper {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media all and (min-width: 1024px) {
    .am-header .am-header-content-wrapper {
        padding-right: 32px;
        padding-left: 32px;
    }
}

@media all and (max-width: 500px) {
    .am-logged-in .am-body-content {
        display: block;
    }

    .am-logged-in .am-body-content-top {
        display: block;
    }

    .am-logged-in .am-tabs-wrapper {
        display: block !important;
    }

    .am-logged-in .am-account-toolbar .am-account-toolbar-items {
        border-radius: 0 0 0.9rem 0.9rem;
    }

    .am-logged-in .am-tabs-wrapper {
        margin-top: 0;
        margin-bottom: 0;
    }

    .am-logged-in ul.am-tabs {
        border-top: 0;
    }
}

/* Shared controls and navigation use the marketing site's simpler surfaces. */
.am-form input::placeholder,
.am-form textarea::placeholder,
.am-body-content input::placeholder,
.am-body-content textarea::placeholder {
    color: var(--pmsp-muted);
    opacity: 1;
}

.am-header .am-header-content-wrapper {
    padding-top: 10px;
    padding-bottom: 10px;
}

.am-header .am-header-content,
.am-header-logo-wrapper,
.am-header-logo-wrapper a {
    height: 54px;
}

.am-header .am-header-content .am-header-content-logo {
    width: 184px;
    height: auto;
    max-height: 54px;
}

.am-form input[type=submit]:focus-visible,
.am-form button:focus-visible,
.am-body-content a.button:focus-visible {
    outline: 3px solid var(--pmsp-blue);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .am-form button:hover,
    .am-form input[type=submit]:hover { transform: none; }
}

/* Checkout has no member sidebar, even after signup logs the customer in. */
.pmsp-checkout .am-body-content {
    display: block;
    max-width: 46rem;
    margin: 0 auto;
}

.pmsp-checkout .am-body-content-top {
    display: block;
}

@media (max-width: 620px) {
    .pmsp-checkout .am-header {
        position: static;
        background: var(--pmsp-ink);
        backdrop-filter: none;
    }

    .pmsp-checkout .am-header .am-header-content-wrapper {
        padding: 8px 16px;
    }

    .pmsp-checkout .am-header-logo-wrapper,
    .pmsp-checkout .am-header-logo-wrapper a,
    .pmsp-checkout .am-header .am-header-content {
        height: 44px;
    }

    .pmsp-checkout .am-header .am-header-content .am-header-content-logo {
        width: 140px;
        height: auto;
    }

    .pmsp-checkout .am-body-content {
        padding: 20px 0 32px;
    }

    .pmsp-checkout .am-body .am-body-content-wrapper {
        padding: 0 16px;
    }

    .pmsp-checkout .am-body-content-top > h1 {
        margin: 0 0 20px;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

    .pmsp-checkout .am-receipt,
    .pmsp-checkout .am-form form,
    .pmsp-checkout .am-reuse-card-confirmation {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        overflow: visible;
    }

    .pmsp-checkout .am-receipt {
        margin-bottom: 24px;
    }

    .pmsp-checkout .am-receipt table,
    .pmsp-checkout .am-receipt tbody {
        display: block;
        width: 100%;
    }

    .pmsp-checkout .am-receipt thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .pmsp-checkout .am-receipt tr {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .pmsp-checkout .am-receipt td,
    .pmsp-checkout .am-receipt td.am-receipt-total {
        display: block;
        min-width: 0;
        width: auto;
        border: 0;
        background: transparent;
        padding: 6px 0;
        font-size: 16px;
        line-height: 1.4;
    }

    .pmsp-checkout .am-receipt tr.pmsp-receipt-item {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px 12px;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid var(--pmsp-border);
    }

    .pmsp-checkout .pmsp-receipt-item-title {
        grid-column: 1 / -1;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

    .pmsp-checkout .pmsp-receipt-item td[data-label] {
        text-align: left;
        overflow-wrap: anywhere;
    }

    .pmsp-checkout .pmsp-receipt-item td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--pmsp-muted);
        font-size: 12px;
    }

    .pmsp-checkout .am-receipt td.am-receipt-indent,
    .pmsp-checkout .am-receipt .am-receipt-row-delimiter {
        display: none;
    }

    .pmsp-checkout .am-receipt .am-receipt-row-total {
        border-top: 1px solid var(--pmsp-border);
        margin-top: 6px;
        padding-top: 6px;
    }

    .pmsp-checkout .am-receipt .am-receipt-terms {
        margin-top: 8px;
        font-size: 14px;
    }

    .pmsp-checkout .am-receipt-terms__label {
        display: block;
        color: var(--pmsp-muted);
    }

    .pmsp-checkout .am-form fieldset {
        min-width: 0;
        padding: 0;
        gap: 16px;
    }

    .pmsp-checkout .am-form div.am-row {
        margin-bottom: 16px;
        overflow: visible;
    }

    .pmsp-checkout .am-form fieldset > div.am-row {
        margin-bottom: 0;
    }

    .pmsp-checkout .am-form div.am-row::after {
        content: none;
    }

    .pmsp-checkout .am-form div.am-element-title,
    .pmsp-checkout .am-form div.am-element {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .pmsp-checkout .am-form div[id$="-card-element"],
    .pmsp-checkout .am-form div[id$="-address-element"] {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .pmsp-checkout .am-form div.am-element-title label {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;
    }

    .pmsp-checkout .am-form div.am-element-title .comment {
        font-size: 14px;
        line-height: 1.4;
    }

    .pmsp-checkout .am-form input[type=text],
    .pmsp-checkout .am-form input[type=email],
    .pmsp-checkout .am-form input[type=password],
    .pmsp-checkout .am-form input[type=number],
    .pmsp-checkout .am-form select,
    .pmsp-checkout .am-form textarea {
        min-height: 48px;
        padding: 12px;
        border-radius: 6px;
        font-size: 16px;
        line-height: 1.4;
    }

    .pmsp-checkout .am-form input[type=submit],
    .pmsp-checkout .am-form input[type=button],
    .pmsp-checkout .am-form button {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 6px;
        background: var(--pmsp-blue);
        color: var(--pmsp-ink);
        text-shadow: none;
    }
}
