
.cly-sales-terms-card,
.cly-sales-terms-card * {
    box-sizing: border-box;
}

.cly-sales-terms-card {
    margin: 22px 0 18px;
    padding: 24px;
    color: #111;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(0, 0, 0, .045),
            transparent 240px
        ),
        #f7f7f4;
    border: 1px solid #dedbd5;
    border-radius: 18px;
}

.cly-sales-terms-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.cly-sales-terms-card__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #8a837a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.cly-sales-terms-card__top h4 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.cly-sales-terms-card__version {
    flex: 0 0 auto;
    padding: 7px 10px;
    color: #111;
    background: #fff;
    border: 1px solid #dedbd5;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
}

.cly-sales-terms-card__intro {
    max-width: 700px;
    margin: 10px 0 20px;
    color: #686159;
    font-size: 12px;
    line-height: 1.55;
}

.cly-sales-terms-card__points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0ddd7;
    border-radius: 14px;
}

.cly-sales-terms-card__points > div {
    min-height: 112px;
    padding: 17px;
    border-right: 1px solid #ece9e4;
    border-bottom: 1px solid #ece9e4;
}

.cly-sales-terms-card__points > div:nth-child(2n) {
    border-right: 0;
}

.cly-sales-terms-card__points > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.cly-sales-terms-card__points span {
    display: block;
    margin-bottom: 13px;
    color: #a09a91;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
}

.cly-sales-terms-card__points strong {
    display: block;
    font-size: 11px;
    font-weight: 750;
}

.cly-sales-terms-card__points small {
    display: block;
    margin-top: 5px;
    color: #7a736a;
    font-size: 9px;
    line-height: 1.45;
}

.cly-sales-terms-card__read {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 0 15px;
    color: #fff;
    background: #0a0a0a;
    border: 0;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.cly-sales-terms-card__accept {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
    padding: 16px;
    color: #111;
    background: #fff;
    border: 1px solid #dcd8d2;
    border-radius: 12px;
    cursor: pointer;
}

.cly-sales-terms-card__accept input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
    accent-color: #0a0a0a;
}

.cly-sales-terms-card__accept span {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .015em;
}

.cly-sales-terms-modal[hidden] {
    display: none !important;
}

.cly-sales-terms-is-open {
    overflow: hidden;
}

.cly-sales-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.cly-sales-terms-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(0, 0, 0, .72);
    border: 0;
    backdrop-filter: blur(10px);
}

.cly-sales-terms-modal__panel {
    position: relative;
    z-index: 2;
    width: min(980px, 100%);
    max-height: min(860px, calc(100vh - 48px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, .28);
}

.cly-sales-terms-modal__header,
.cly-sales-terms-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
}

.cly-sales-terms-modal__header {
    border-bottom: 1px solid #ece9e4;
}

.cly-sales-terms-modal__header span {
    display: block;
    margin-bottom: 5px;
    color: #8b847b;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .16em;
}

.cly-sales-terms-modal__header h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.cly-sales-terms-modal__header small {
    display: block;
    margin-top: 5px;
    color: #777067;
    font-size: 9px;
}

.cly-sales-terms-modal__close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    color: #111;
    background: #f5f4f1;
    border: 0;
    border-radius: 50%;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.cly-sales-terms-modal__body {
    overflow-y: auto;
    padding: 28px 32px 40px;
    overscroll-behavior: contain;
}

.cly-sales-terms-modal__footer {
    border-top: 1px solid #ece9e4;
}

.cly-sales-terms-modal__footer strong,
.cly-sales-terms-modal__footer span {
    display: block;
}

.cly-sales-terms-modal__footer strong {
    font-size: 10px;
}

.cly-sales-terms-modal__footer span {
    margin-top: 3px;
    color: #7c756d;
    font-size: 9px;
}

.cly-sales-terms-modal__footer button {
    min-height: 42px;
    padding: 0 17px;
    color: #fff;
    background: #0a0a0a;
    border: 0;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.cly-terms-doc {
    max-width: 780px;
    margin: 0 auto;
    color: #171717;
}

.cly-terms-doc__brand {
    color: #8b847b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.cly-terms-doc h2 {
    margin: 8px 0 4px;
    font-size: 31px;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.cly-terms-doc__version {
    display: inline-flex;
    margin: 8px 0 18px;
    padding: 7px 10px;
    background: #f3f2ef;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
}

.cly-terms-doc h3 {
    margin: 34px 0 12px;
    padding-top: 25px;
    border-top: 1px solid #e8e4de;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.cly-terms-doc h3.is-commercial-update {
    padding: 20px;
    color: #fff;
    background: #0b0b0b;
    border: 0;
    border-radius: 14px 14px 0 0;
}

.cly-terms-doc h3.is-commercial-update + p {
    margin-top: -12px;
    padding: 0 20px 20px;
    color: rgba(255, 255, 255, .74);
    background: #0b0b0b;
    border-radius: 0 0 14px 14px;
}

.cly-terms-doc h4 {
    margin: 30px 0 12px;
    font-size: 13px;
    letter-spacing: .08em;
}

.cly-terms-doc h5 {
    margin: 18px 0 4px;
    font-size: 12px;
}

.cly-terms-doc p,
.cly-terms-doc li {
    color: #5f5951;
    font-size: 11px;
    line-height: 1.7;
}

.cly-terms-doc p {
    margin: 8px 0;
}

.cly-terms-doc ul {
    margin: 8px 0 14px 19px;
    padding: 0;
}

.cly-terms-doc li {
    margin: 4px 0;
}

.cly-terms-doc__flow {
    margin: 12px 0;
    padding: 13px 15px;
    color: #111;
    background: #f4f3f0;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.45;
}

.cly-terms-doc__acceptance {
    margin-top: 14px;
    padding: 18px;
    color: #fff;
    background: #0b0b0b;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .cly-sales-terms-card {
        padding: 18px;
    }

    .cly-sales-terms-card__top {
        flex-direction: column;
    }

    .cly-sales-terms-card__points {
        grid-template-columns: 1fr;
    }

    .cly-sales-terms-card__points > div {
        border-right: 0;
        border-bottom: 1px solid #ece9e4;
    }

    .cly-sales-terms-card__points > div:nth-last-child(-n + 2) {
        border-bottom: 1px solid #ece9e4;
    }

    .cly-sales-terms-card__points > div:last-child {
        border-bottom: 0;
    }

    .cly-sales-terms-modal {
        padding: 8px;
    }

    .cly-sales-terms-modal__panel {
        max-height: calc(100vh - 16px);
        border-radius: 18px;
    }

    .cly-sales-terms-modal__header,
    .cly-sales-terms-modal__footer {
        padding: 16px;
    }

    .cly-sales-terms-modal__header h3 {
        font-size: 19px;
    }

    .cly-sales-terms-modal__body {
        padding: 22px 18px 30px;
    }

    .cly-sales-terms-modal__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .cly-sales-terms-modal__footer button {
        width: 100%;
    }

    .cly-terms-doc h2 {
        font-size: 24px;
    }
}

/* ==========================================================
   Clyftic Terms UI v1.0.2
   Modal scroll isolation + one combined visible consent
   ========================================================== */

html.cly-sales-terms-is-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body.cly-sales-terms-body-locked {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

.cly-sales-terms-background-locked {
    overscroll-behavior: none !important;
}

.cly-sales-terms-modal {
    overscroll-behavior: none !important;
    touch-action: none;
}

.cly-sales-terms-modal__panel {
    min-height: 0;
    overscroll-behavior: contain !important;
}

.cly-sales-terms-modal__body {
    min-height: 0;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    scrollbar-gutter: stable;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    outline: none;
}

.cly-sales-terms-modal__body:focus {
    outline: none;
}

.cly-sales-terms-legacy-consent {
    display: none !important;
}

.cly-sales-terms-card__accept > span {
    display: block;
}

.cly-sales-terms-card__accept > span > strong {
    display: block;
    color: #111;
    font-size: 10px;
    font-weight: 760;
    line-height: 1.5;
    letter-spacing: .015em;
}

.cly-sales-terms-card__accept > span > small {
    display: block;
    margin-top: 6px;
    color: #777067;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0;
}

/* CLYFTIC LEFT PANEL POSITION FIX START */
.cly-apply {
    align-items: flex-start !important;
}
.cly-apply__intro {
    align-self: flex-start !important;
    position: sticky !important;
    top: 74px !important;

    height: calc(100vh - 74px) !important;
    height: calc(100svh - 74px) !important;

    min-height: calc(100vh - 74px) !important;
    min-height: calc(100svh - 74px) !important;

    max-height: calc(100vh - 74px) !important;
    max-height: calc(100svh - 74px) !important;

    overflow: hidden !important;
}

/*
 * The right form can grow as long as required.
 * The left brand panel must not stretch with it.
 */
@media (max-width: 900px) {
    .cly-apply__intro {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        min-height: 520px !important;
        max-height: none !important;
        overflow: hidden !important;
    }
}
/* CLYFTIC LEFT PANEL POSITION FIX END */

/* CLYFTIC LEFT CONTENT TOP ALIGN START */

/*
 * Keep the left sales panel visually anchored to the upper third
 * of the viewport instead of vertically centering it.
 *
 * This makes the panel feel stable across short and long form steps.
 */
@media (min-width: 901px) {
    .cly-apply__intro {
        justify-content: flex-start !important;
        padding-top: clamp(110px, 13vh, 150px) !important;
        padding-bottom: 42px !important;
    }
}

/*
 * Mobile remains in normal document flow.
 */
@media (max-width: 900px) {
    .cly-apply__intro {
        justify-content: flex-start !important;
        padding-top: 64px !important;
        padding-bottom: 48px !important;
    }
}

/* CLYFTIC LEFT CONTENT TOP ALIGN END */
