/* Registration page /my-account/register/ (woocommerce/myaccount/register.php): what an account gives next to the form. */
.tb-signup {
    --tb-signup-ink: #1e293b;
    --tb-signup-text: #475569;
    --tb-signup-accent: #046bd2;
    --tb-signup-tint: #f0f5fa;
    --tb-signup-line: #e2e8f0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 48px;
    align-items: start;
    max-width: 1040px;
    margin: 0 auto;
    padding: 40px 0 64px;
}

.tb-signup--member {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
}

.tb-signup__intro {
    padding: 8px 0 0;
}

.tb-signup__eyebrow {
    margin: 0 0 10px;
    color: var(--tb-signup-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 18px;
    text-transform: uppercase;
}

.entry-content .tb-signup__title {
    margin: 0 0 12px;
    color: var(--tb-signup-ink);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.tb-signup__lead {
    margin: 0 0 28px;
    color: var(--tb-signup-text);
    font-size: 17px;
    line-height: 1.55;
}

.entry-content ul.tb-signup__benefits {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tb-signup__benefit {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0;
    padding: 16px;
    border-radius: 14px;
    background: var(--tb-signup-tint);
}

.tb-signup__icon-wrap {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    color: var(--tb-signup-accent);
}

.tb-signup__benefit:first-child .tb-signup__icon-wrap {
    color: #b45309;
}

.tb-signup__benefit:first-child {
    background: #fff4e5;
}

.tb-signup__benefit-text {
    display: grid;
    gap: 2px;
    color: var(--tb-signup-text);
    font-size: 15px;
    line-height: 1.5;
}

.tb-signup__benefit-text strong {
    color: var(--tb-signup-ink);
    font-size: 16px;
    line-height: 1.4;
}

/* The benefits' summary row (register.php <details>): shown only on narrow screens, where the list folds behind it. */
.tb-signup__summary {
    display: none;
}

.tb-signup__summary::-webkit-details-marker {
    display: none;
}

.tb-signup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 28px;
}

.entry-content a.tb-signup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid var(--tb-signup-accent);
    border-radius: 10px;
    background: var(--tb-signup-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.entry-content a.tb-signup__button--ghost {
    background: #fff;
    color: var(--tb-signup-accent);
}

/* The form keeps its fields and validation; only its card is restyled (Astra frames .woocommerce on account pages at 540 px). */
.woocommerce-account .entry-content .tb-signup__form .woocommerce {
    max-width: none;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--tb-signup-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.tb-signup__form #customer_login {
    display: block;
    margin: 0;
}

.tb-signup__form #customer_login .u-column2 {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.tb-signup__form .tb-registration-title {
    margin: 0 0 18px;
    color: var(--tb-signup-ink);
    font-size: 24px;
    line-height: 1.3;
}

.tb-signup__form .ast-woo-form-actions {
    display: none;
}

.tb-signup__login {
    margin: 16px 0 0;
    color: var(--tb-signup-text);
    font-size: 15px;
    text-align: center;
}

.entry-content .tb-signup__login a {
    color: var(--tb-signup-accent);
    font-weight: 600;
}

@media (max-width: 921px) {
    .tb-signup {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        max-width: 560px;
        padding: 20px 0 48px;
    }

    .entry-content .tb-signup__title {
        font-size: 26px;
    }

    .tb-signup__lead {
        margin-bottom: 18px;
        font-size: 16px;
    }

    .tb-signup__benefit {
        gap: 12px;
        padding: 12px;
    }

    .tb-signup__icon-wrap {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .tb-signup__icon-wrap .tb-signup__icon {
        width: 20px;
        height: 20px;
    }

    .tb-signup__benefit-text {
        font-size: 14px;
    }

    .tb-signup__benefit-text strong {
        font-size: 15px;
    }

    .woocommerce-account .entry-content .tb-signup__form .woocommerce {
        padding: 20px 16px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
    }
}

/* Narrow screens: the four benefits fold into one row (Що дає акаунт), so the form starts on the first screen. */
@media (max-width: 921px) {
    .tb-signup__summary {
        display: flex;
        gap: 12px;
        align-items: center;
        padding: 10px 12px;
        border-radius: 14px;
        background: #fff4e5;
        color: var(--tb-signup-text);
        cursor: pointer;
        list-style: none;
    }

    .tb-signup__summary .tb-signup__icon-wrap {
        color: #b45309;
    }

    .tb-signup__summary-text {
        display: grid;
        flex: 1;
        gap: 2px;
        font-size: 14px;
        line-height: 1.4;
    }

    .tb-signup__summary-text strong {
        color: var(--tb-signup-ink);
        font-size: 15px;
    }

    .tb-signup__chevron {
        flex: 0 0 20px;
        color: var(--tb-signup-ink);
        transition: transform .2s ease;
    }

    .tb-signup__more[open] .tb-signup__chevron {
        transform: rotate(180deg);
    }

    .tb-signup__summary:focus-visible {
        outline: 2px solid var(--tb-signup-accent);
        outline-offset: 2px;
    }

    .tb-signup__more[open] .tb-signup__benefits {
        margin-top: 8px;
    }

    .tb-signup__more .tb-signup__benefit:first-child {
        background: var(--tb-signup-tint);
    }
}

@media (max-width: 600px) {
    .tb-signup {
        gap: 16px;
        padding-top: 12px;
    }

    .tb-signup__eyebrow {
        margin-bottom: 6px;
    }

    .entry-content .tb-signup__title {
        margin-bottom: 6px;
        font-size: 22px;
    }

    .tb-signup__lead {
        margin-bottom: 12px;
        font-size: 15px;
    }

    .entry-content ul.tb-signup__benefits {
        gap: 8px;
    }
}
