:root {
    --mentorqa-ink: #264842;
    --mentorqa-ink-strong: #1d3833;
    --mentorqa-paper: #edeeec;
    --mentorqa-blue: #dce9ee;
    --mentorqa-white: #fff;
    --mentorqa-line: rgba(38, 72, 66, .16);
    --mentorqa-muted: #66736f;
    --mentorqa-positive: #2f735f;
    --mentorqa-radius: 14px;
}

.mentorqa-commerce {
    min-height: 70vh;
    padding: clamp(110px, 12vw, 170px) 0 clamp(72px, 9vw, 120px);
    color: var(--mentorqa-ink);
    background:
        radial-gradient(circle at 100% 0, rgba(220, 233, 238, .82), transparent 34rem),
        var(--mentorqa-paper);
}

.mentorqa-commerce-shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.mentorqa-commerce h1,
.mentorqa-commerce h2,
.mentorqa-commerce h3 {
    color: var(--mentorqa-ink-strong);
    line-height: 1.08;
}

.mentorqa-commerce h1 {
    max-width: 920px;
    margin: 0 0 36px;
    font-size: clamp(42px, 7vw, 82px);
    letter-spacing: -.055em;
}

.mentorqa-commerce a {
    color: var(--mentorqa-ink);
}

.mentorqa-commerce :is(input, select, textarea) {
    min-height: 48px;
    border: 1px solid var(--mentorqa-line);
    border-radius: 8px;
    color: var(--mentorqa-ink-strong);
    background: var(--mentorqa-white);
    box-shadow: none;
}

.mentorqa-commerce :is(input, select, textarea):focus {
    border-color: var(--mentorqa-ink);
    outline: 2px solid rgba(38, 72, 66, .12);
    outline-offset: 1px;
}

.mentorqa-commerce :is(button, .button, .wp-element-button, .wc-block-components-button),
.mentorqa-commerce-button {
    min-height: 48px;
    padding: 13px 22px;
    border: 1px solid var(--mentorqa-ink) !important;
    border-radius: 999px !important;
    color: var(--mentorqa-white) !important;
    background: var(--mentorqa-ink) !important;
    box-shadow: none !important;
    font: inherit;
    font-weight: 700 !important;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.mentorqa-commerce :is(button, .button, .wp-element-button, .wc-block-components-button):hover,
.mentorqa-commerce-button:hover {
    color: var(--mentorqa-ink) !important;
    background: transparent !important;
    transform: translateY(-1px);
}

.woocommerce-notices-wrapper,
.wc-block-components-notice-banner {
    margin-bottom: 24px;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
.wc-block-components-notice-banner {
    border: 1px solid var(--mentorqa-line) !important;
    border-left: 4px solid var(--mentorqa-ink) !important;
    border-radius: 10px !important;
    color: var(--mentorqa-ink-strong) !important;
    background: var(--mentorqa-white) !important;
    box-shadow: none !important;
}

.woocommerce-error {
    border-left-color: #9d493f !important;
}

.woocommerce-message,
.wc-block-components-notice-banner.is-success {
    border-left-color: var(--mentorqa-positive) !important;
}

/* Cart and Checkout Blocks. */
.mentorqa-commerce :is(.wc-block-cart, .wc-block-checkout) {
    font-family: inherit;
}

.mentorqa-commerce :is(.wc-block-cart-items, .wc-block-components-order-summary, .wc-block-components-sidebar, .wc-block-checkout__main) {
    border-color: var(--mentorqa-line) !important;
}

.mentorqa-commerce :is(.wc-block-components-sidebar, .wc-block-checkout__main) {
    padding: clamp(22px, 4vw, 40px) !important;
    border: 1px solid var(--mentorqa-line);
    border-radius: var(--mentorqa-radius);
    background: rgba(255, 255, 255, .76);
}

.mentorqa-commerce .wc-block-checkout__main {
    margin-right: 0;
}

.mentorqa-commerce .wc-block-components-sidebar {
    top: 110px;
}

.mentorqa-commerce .wc-block-components-product-name,
.mentorqa-commerce .wc-block-components-title {
    color: var(--mentorqa-ink-strong);
    font-weight: 700;
}

.mentorqa-commerce .wc-block-components-totals-wrapper {
    border-color: var(--mentorqa-line) !important;
}

/* Classic WooCommerce forms and account screens. */
.mentorqa-commerce .woocommerce {
    width: 100%;
}

.mentorqa-commerce .woocommerce-form-login,
.mentorqa-commerce .woocommerce-ResetPassword {
    max-width: 620px;
    padding: clamp(24px, 4vw, 42px) !important;
    border: 1px solid var(--mentorqa-line) !important;
    border-radius: var(--mentorqa-radius) !important;
    background: rgba(255, 255, 255, .78);
}

.mentorqa-commerce .woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
}

.mentorqa-commerce .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.mentorqa-commerce .woocommerce-MyAccount-navigation li {
    margin: 0;
}

.mentorqa-commerce .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 10px 16px;
    border: 1px solid var(--mentorqa-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    font-weight: 650;
    text-decoration: none;
}

.mentorqa-commerce .woocommerce-MyAccount-navigation .is-active a,
.mentorqa-commerce .woocommerce-MyAccount-navigation a:hover {
    border-color: var(--mentorqa-ink);
    color: var(--mentorqa-white);
    background: var(--mentorqa-ink);
}

.mentorqa-commerce .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
    clear: both;
}

.mentorqa-account-heading {
    margin-bottom: 30px;
}

.mentorqa-account-heading h1 {
    margin-bottom: 14px;
}

.mentorqa-eyebrow {
    margin: 0 0 10px;
    color: var(--mentorqa-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mentorqa-content-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    margin-top: 30px;
    padding: clamp(26px, 5vw, 52px);
    border: 1px solid var(--mentorqa-line);
    border-radius: var(--mentorqa-radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(220, 233, 238, .72));
}

.mentorqa-content-card h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -.035em;
}

.mentorqa-content-card p:not(.mentorqa-eyebrow) {
    max-width: 720px;
    margin: 0 0 18px;
}

.mentorqa-access-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mentorqa-muted);
    font-size: 13px;
    font-weight: 750;
}

.mentorqa-access-state::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #a78555;
    content: "";
}

.mentorqa-access-state.is-active::before {
    background: var(--mentorqa-positive);
}

.mentorqa-content-card .mentorqa-commerce-button {
    white-space: nowrap;
}

.mentorqa-commerce table.shop_table,
.mentorqa-commerce .woocommerce-orders-table {
    border-color: var(--mentorqa-line) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .72);
}

/* Protected Test Plan. */
.mentorqa-test-plan-main {
    position: relative;
    overflow: hidden;
}

.mentorqa-test-plan-shell {
    position: relative;
}

.mentorqa-test-plan-hero {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 36px;
    align-items: flex-start;
    margin-bottom: clamp(40px, 7vw, 76px);
    padding-bottom: 34px;
    border-bottom: 1px solid var(--mentorqa-line);
}

.mentorqa-test-plan-hero h1 {
    margin-bottom: 18px;
}

.mentorqa-test-plan-hero p:last-child {
    max-width: 760px;
    font-size: clamp(18px, 2.2vw, 24px);
}

.mentorqa-quiet-link {
    flex: 0 0 auto;
    padding-top: 9px;
    font-weight: 700;
    text-decoration: none;
}

.mentorqa-quiet-link:hover {
    text-decoration: underline;
}

.mentorqa-watermark {
    position: absolute;
    z-index: 0;
    inset: 230px -80px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 150px 80px;
    overflow: hidden;
    pointer-events: none;
    transform: rotate(-18deg) scale(1.1);
}

.mentorqa-watermark span {
    color: rgba(38, 72, 66, .045);
    font-size: clamp(18px, 2.2vw, 30px);
    font-weight: 800;
    white-space: nowrap;
}

.mentorqa-test-plan-content {
    position: relative;
    z-index: 1;
    max-width: 980px;
}

.mentorqa-test-plan-content > * {
    position: relative;
}

.mentorqa-test-plan-content h2 {
    margin: clamp(54px, 8vw, 84px) 0 22px;
    font-size: clamp(30px, 4.8vw, 52px);
    letter-spacing: -.04em;
}

.mentorqa-test-plan-content h3 {
    margin: 36px 0 14px;
    font-size: clamp(22px, 3vw, 30px);
}

.mentorqa-test-plan-content p,
.mentorqa-test-plan-content li {
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.72;
}

.mentorqa-test-plan-content ul,
.mentorqa-test-plan-content ol {
    padding-left: 1.4em;
}

.mentorqa-test-plan-content .wp-block-table {
    width: 100%;
    margin: 28px 0 42px;
    overflow-x: auto;
    border: 1px solid var(--mentorqa-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .8);
}

.mentorqa-test-plan-content table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.mentorqa-test-plan-content th,
.mentorqa-test-plan-content td {
    padding: 15px 17px;
    border: 1px solid var(--mentorqa-line);
    text-align: left;
    vertical-align: top;
}

.mentorqa-test-plan-content th {
    background: var(--mentorqa-blue);
}

.mentorqa-test-plan-content pre,
.mentorqa-test-plan-content .wp-block-code {
    max-width: 100%;
    margin: 28px 0 42px;
    padding: clamp(20px, 4vw, 34px);
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    color: #edf5f2;
    background: var(--mentorqa-ink-strong);
    font: 14px/1.7 Consolas, Monaco, monospace;
    tab-size: 2;
}

.mentorqa-test-plan-content code {
    font-family: Consolas, Monaco, monospace;
}

@media (max-width: 781px) {
    .mentorqa-commerce-shell {
        width: min(100% - 30px, 1180px);
    }

    .mentorqa-commerce .wc-block-checkout__main {
        margin-right: 0;
        margin-bottom: 18px;
    }

    .mentorqa-content-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .mentorqa-content-card .mentorqa-commerce-button {
        width: 100%;
    }

    .mentorqa-test-plan-hero {
        display: block;
    }

    .mentorqa-quiet-link {
        display: inline-block;
        margin-top: 18px;
    }

    .mentorqa-watermark {
        grid-template-columns: repeat(2, 1fr);
        gap: 120px 40px;
    }
}

@media (max-width: 480px) {
    .mentorqa-commerce {
        padding-top: 96px;
    }

    .mentorqa-commerce-shell {
        width: min(100% - 22px, 1180px);
    }

    .mentorqa-commerce :is(.wc-block-components-sidebar, .wc-block-checkout__main) {
        padding: 18px !important;
    }

    .mentorqa-commerce .woocommerce-MyAccount-navigation ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .mentorqa-commerce .woocommerce-MyAccount-navigation a {
        height: 100%;
        text-align: center;
    }
}
