/* Autospected Connector - pricing cards and checkout add-ons */

/*
 * Wraps to as many cards as there are. A row that is not full stays centred
 * rather than one card stretching across the page, and no card grows past a
 * readable width - so three packages today and six next year both look right.
 */
.as2-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 28px;
}

.as2-card {
    flex: 1 1 280px;
    max-width: 400px;
    min-width: 260px;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.as2-card.is-featured {
    border-color: var(--as-accent, #1eabe8);
    box-shadow: 0 12px 34px rgba(30, 171, 232, .14);
}

.as2-ribbon {
    background: var(--as-accent, #1eabe8);
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 10px 8px;
}

/* keeps the unfeatured cards level with the ribboned one */
.as2-ribbon-spacer {
    background: transparent;
    visibility: hidden;
}

.as2-body {
    padding: 30px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.as2-name {
    margin: 0 0 6px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--as-heading, #0f2340);
}

.as2-blurb {
    margin: 0 0 18px;
    text-align: center;
    color: #6b7a8d;
}

.as2-price {
    margin-bottom: 22px;
    text-align: center;
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    color: var(--as-accent, #1eabe8);
}

.as2-meta {
    margin: -12px 0 20px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

.as2-list {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.as2-list li {
    position: relative;
    padding: 6px 0 6px 28px;
    color: #2b3a4a;
}

.as2-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 13px;
    width: 12px;
    height: 6px;
    border-left: 2.5px solid var(--as-accent, #1eabe8);
    border-bottom: 2.5px solid var(--as-accent, #1eabe8);
    transform: rotate(-45deg);
}

.as2-btn {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: 14px 18px;
    border: 2px solid var(--as-accent, #1eabe8);
    border-radius: 8px;
    background: #fff;
    color: var(--as-accent, #1eabe8);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
}

.as2-card.is-featured .as2-btn {
    background: var(--as-accent, #1eabe8);
    color: #fff;
}

.as2-btn:hover {
    background: var(--as-accent, #1eabe8);
    color: #fff;
}

.as2-addons {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
}

.as2-addons-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a0aec0;
}

.as2-addon {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 12px;
    color: #475569;
}

.autospected-error {
    color: #b32d2e;
}

@media (max-width: 640px) {
    .as2-price { font-size: 38px; }
    .as2-ribbon-spacer { display: none; }
}

/* ---------------------------------------------------------- checkout box */

.autospected-addons {
    border: 1px solid #cfe4f5;
    background: #f4fbff;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.autospected-addons .as-addon-group + .as-addon-group {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #dbeafe;
}

.autospected-addons .as-addon-group-title {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: .06em;
    color: #3d4a5c;
    font-weight: 600;
}

.autospected-addons .as-addon-row {
    display: block;
    padding: 6px 0;
    cursor: pointer;
}

.autospected-addons .as-addon-checkbox {
    margin-right: 10px;
}

.autospected-addons .as-addon-name {
    color: #1f2933;
}

.autospected-addons .as-addon-price {
    color: #1f6feb;
    font-weight: 600;
}

.autospected-addons .as-addon-blurb {
    display: block;
    margin: 2px 0 0 26px;
    font-size: 12px;
    color: #6b7a8d;
}

@media (max-width: 640px) {
    .autospected-pricing .as-price {
        font-size: 32px;
    }
}

.autospected-addons.as-busy {
    opacity: .55;
    pointer-events: none;
}

/* ------------------------------------------------------ consent tick box */

.autospected-consent {
    margin: 14px 0 24px;
    padding: 14px 16px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #fff;
}

.autospected-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #1f2933;
}

.autospected-consent input[type="checkbox"] {
    margin-top: 4px;
    flex: none;
}

.autospected-consent .as-consent-note {
    display: block;
    margin: 6px 0 0 26px;
    font-size: 12px;
    color: #7a8899;
}

/* ===================================================== the add-on step === */

.as2-card.is-chosen {
    border-color: var(--as-accent, #1eabe8);
    box-shadow: 0 0 0 3px rgba(30, 171, 232, .18);
}

.as2-chooser {
    margin: 40px auto 0;
    max-width: 880px;
    animation: as2-rise .28s ease-out;
}

@keyframes as2-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.as2-chooser-inner {
    position: relative;
    background: #fff;
    border: 1px solid #e3eaf3;
    border-radius: 18px;
    padding: 34px 36px 28px;
    box-shadow: 0 18px 48px rgba(15, 35, 64, .10);
}

.as2-chooser-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.as2-chooser-close:hover { background: #e2e8f0; color: #334155; }

.as2-chooser-eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--as-accent, #1eabe8);
}

.as2-chooser-title {
    margin: 0 0 6px;
    font-size: 25px;
    font-weight: 800;
    color: var(--as-heading, #0f2340);
}

.as2-chooser-sub {
    margin: 0 0 26px;
    color: #62748b;
}

.as2-group + .as2-group {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #eef2f7;
}

.as2-group-title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7a8a9d;
}

.as2-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.as2-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e3eaf3;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.as2-tile:hover { border-color: #c7d7e6; }

.as2-tile.is-on {
    border-color: var(--as-accent, #1eabe8);
    background: #f5fbff;
    box-shadow: 0 4px 14px rgba(30, 171, 232, .12);
}

.as2-tick {
    flex: none;
    width: 24px;
    height: 24px;
    border: 2px solid #cbd6e2;
    border-radius: 7px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.as2-tick svg { width: 14px; height: 14px; opacity: 0; }

.as2-tile.is-on .as2-tick {
    background: var(--as-accent, #1eabe8);
    border-color: var(--as-accent, #1eabe8);
}

.as2-tile.is-on .as2-tick svg { opacity: 1; }

.as2-tile-text { flex: 1; min-width: 0; }

.as2-tile-name {
    display: block;
    font-weight: 600;
    color: #1f2d3f;
}

.as2-tile-blurb {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #7a8a9d;
}

.as2-tile-price {
    flex: none;
    font-weight: 700;
    color: var(--as-accent, #1eabe8);
}

.as2-empty { color: #7a8a9d; margin: 0; }

.as2-chooser-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #eef2f7;
}

.as2-chooser-sum {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: #62748b;
    min-width: 0;
}

/* the running total can be a long line; let it wrap rather than push the
   button onto a row of its own */
.as2-chooser-sum span {
    white-space: normal;
    overflow-wrap: anywhere;
}

.as2-chooser-sum strong {
    font-size: 27px;
    font-weight: 800;
    color: var(--as-heading, #0f2340);
    line-height: 1.1;
}

.as2-go {
    flex: none;
    padding: 15px 28px;
    border: 0;
    border-radius: 10px;
    background: var(--as-accent, #1eabe8);
    color: #fff;
    font: inherit;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(30, 171, 232, .28);
}

.as2-go:hover:not(:disabled) { filter: brightness(.94); }
.as2-go:disabled { opacity: .6; cursor: default; box-shadow: none; }

.as2-chooser-note {
    margin: 14px 0 0;
    color: #b32d2e;
    font-size: 13px;
}

@media (max-width: 640px) {
    .as2-chooser-inner { padding: 26px 20px 22px; }
    .as2-chooser-title { font-size: 21px; }
    .as2-chooser-foot { flex-direction: column; align-items: stretch; }
    .as2-go { width: 100%; }
}

/* ---------------------------------------- the promo box and the credit tick */

.autospected-incentives {
    padding: 14px 0 6px;
    font-size: 14px;
}

.autospected-incentives .as-inc-block + .as-inc-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, .07);
}

.autospected-incentives label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.autospected-incentives .as-inc-row {
    display: flex;
    gap: 8px;
}

.autospected-incentives input[type="text"] {
    flex: 1;
    min-width: 0;                 /* or a long code stretches the totals table */
    padding: 9px 11px;
    border: 1px solid #d0d5dc;
    border-radius: 6px;
    font-size: 14px;
    text-transform: uppercase;
}

.autospected-incentives .as-inc-apply {
    background: #02ADE6;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.autospected-incentives .as-inc-apply:hover { background: #0298c9; }

.autospected-incentives .as-inc-busy { opacity: .6; cursor: default; }

.autospected-incentives .as-inc-note {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #5f6b76;
}

.autospected-incentives .as-inc-note.as-inc-bad { color: #b32d2e; }

.autospected-incentives .as-inc-block label input[type="checkbox"] {
    margin-right: 7px;
}

/* ------------------------------------------- the credit balance on My Account */

.autospected-credit-panel {
    background: #eaf8fe;
    border: 1px solid #b9e6f7;
    border-left: 4px solid #02ADE6;
    border-radius: 6px;
    padding: 13px 16px;
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.5;
}

/* ------------------------------------------------ sign in / sign up links */

.autospected-account-links {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.autospected-account-links .as-account-link {
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.autospected-account-links .as-account-link:hover { color: #02ADE6; }

.autospected-account-links .as-account-btn {
    background: #02ADE6;
    color: #fff;
    border-radius: 6px;
    padding: 9px 18px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
}

.autospected-account-links .as-account-btn:hover { background: #0298c9; color: #fff; }

/* the sign-up half of My Account, when arrived at from a Sign up button */
.autospected-signup-first .u-column1 { order: 2; }
.autospected-signup-first .u-column2 { order: 1; }

/* ------------------------------------- the sign in / sign up page itself */

.autospected-account-forms {
    max-width: 1080px;
    margin: 40px auto 60px;
    padding: 0 18px;
}

.autospected-account-forms .u-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
}

.autospected-account-forms .u-column1,
.autospected-account-forms .u-column2 {
    flex: 1 1 320px;
    min-width: 0;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    padding: 26px 28px;
}

.autospected-account-forms h2 {
    font-size: 20px;
    margin: 0 0 18px;
}

.autospected-account-forms label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.autospected-account-forms .input-text,
.autospected-account-forms input[type="text"],
.autospected-account-forms input[type="tel"],
.autospected-account-forms input[type="email"],
.autospected-account-forms input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dc;
    border-radius: 7px;
    font-size: 15px;
}

.autospected-account-forms .form-row { margin-bottom: 16px; }

.autospected-account-forms .description {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #5f6b76;
}

.autospected-account-forms .button {
    background: #02ADE6;
    color: #fff;
    border: 0;
    border-radius: 7px;
    padding: 11px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.autospected-account-forms .button:hover { background: #0298c9; }

.autospected-account-forms .required { color: #b32d2e; }
.autospected-account-forms .optional { color: #9ca3af; font-weight: 400; }

/* two columns side by side, sign-up first when they asked to sign up */
.autospected-signup-first .autospected-account-forms .u-columns { flex-direction: row-reverse; }

@media (max-width: 760px) {
    .autospected-account-forms .u-columns { flex-direction: column; }
    .autospected-signup-first .autospected-account-forms .u-columns { flex-direction: column-reverse; }
}
