/* TCA Membership */

/* ═══════════════════════════════════════
   HEADER WIDGET
   ═══════════════════════════════════════ */

.tca-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    background: #fff;
    min-height: 100px;
    display: flex;
    align-items: center;
    font-family: inherit;
}

.tca-header * {
    font-family: inherit;
}

.tca-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    gap: 32px;
    box-sizing: border-box;
}

.tca-header__logo {
    flex-shrink: 0;
    min-width: 120px;
    max-width: 100%;
}

.tca-header__logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    width: auto;
    max-width: 100%;
    line-height: 0;
}
/* Height comes from the widget control. Width must stay auto so a theme
 * `img { width: 100% }` cannot stretch a short logo across the whole bar. */
.tca-header__logo-img {
    height: 20px;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center;
    display: block;
    flex: none;
    align-self: center;
}

.tca-header__right {
    flex-shrink: 0;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.tca-header__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 1;
}

.tca-header__step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

.tca-header__step--active {
    color: #000;
    font-weight: 600;
}

.tca-header__step--completed {
    color: #666;
}

.tca-header__dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e0e0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tca-header__dot-num {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    line-height: 1;
}

.tca-header__step--active .tca-header__dot {
    background: #000;
}

.tca-header__step--active .tca-header__dot-num {
    color: #fff;
}

.tca-header__step--completed .tca-header__dot {
    background: #000;
}

.tca-header__step--completed .tca-header__dot svg {
    display: block;
}

.tca-header__connector {
    display: inline-block;
    width: 48px;
    height: 1px;
    background: #e0e0e0;
    margin: 0 16px;
    vertical-align: middle;
}

.tca-header__step-label {
    white-space: nowrap;
}



/* ═══════════════════════════════════════
   FOOTER WIDGET
   ═══════════════════════════════════════ */

.tca-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
    font-size: 13px;
    color: #666;
    font-family: inherit;
}

.tca-footer * {
    font-family: inherit;
}

/* ═══════════════════════════════════════
   CHECKOUT WIDGET
   ═══════════════════════════════════════ */

.tca-checkout {
    padding: 60px 0;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    font-family: inherit;
}

.tca-checkout *,
.tca-checkout input,
.tca-checkout select,
.tca-checkout button,
.tca-checkout textarea {
    font-family: inherit;
}

.tca-checkout__layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 60px;
    align-items: start;
}

.tca-checkout__back {
    display: inline-block;
    margin-bottom: 24px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
}

.tca-checkout__back:hover {
    opacity: 0.7;
}

.tca-checkout__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 32px;
    line-height: 1.2;
}

.tca-checkout__section {
    margin-bottom: 32px;
}

.tca-checkout__section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
}

.tca-checkout__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.tca-checkout__field {
    display: flex;
    flex-direction: column;
}

.tca-checkout__field--full {
    margin-bottom: 16px;
}

label.tca-checkout__label,
.tca-checkout__label {
    display: block !important;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px !important;
    padding-bottom: 0;
    color: #333;
}

.tca-checkout__input,
.tca-checkout__select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
    color: #000;
    box-sizing: border-box;
}

.tca-checkout__input:focus,
.tca-checkout__select:focus {
    outline: none;
    border-color: #000;
}

.tca-checkout__input[readonly] {
    background: #f5f5f5;
    color: #666;
}

.tca-checkout__hint {
    font-size: 12px;
    color: #666;
    margin: 4px 0 0;
}

.tca-checkout__logged-in {
    font-size: 14px;
    color: #333;
    padding: 12px 16px;
    background: #f0f9ff;
    border-radius: 6px;
    border: 1px solid #bae6fd;
    margin: 0;
}

.tca-checkout__errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
}

.tca-checkout__errors ul {
    margin: 0;
    padding: 0 0 0 16px;
    color: #dc2626;
    font-size: 14px;
}

.tca-checkout__submit-row {
    text-align: right;
}

.tca-checkout__submit,
button.tca-checkout__submit,
input[type="submit"].tca-checkout__submit {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 8px;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-transform: none;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.tca-checkout__submit:hover,
button.tca-checkout__submit:hover {
    opacity: 0.85;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.tca-checkout__submit:focus,
button.tca-checkout__submit:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: #000 !important;
    color: #fff !important;
}

.tca-checkout__submit:active,
button.tca-checkout__submit:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.tca-checkout__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════
   SIDEBAR (within checkout widget)
   ═══════════════════════════════════════ */

.tca-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    position: sticky;
    top: 32px;
}

.tca-sidebar__heading {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin-bottom: 8px;
}

.tca-sidebar__name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #000;
}

.tca-sidebar__price {
    margin-bottom: 2px;
}

.tca-sidebar__amount {
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

.tca-sidebar__billing {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px;
}

.tca-sidebar__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.tca-sidebar__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    color: #333;
}

.tca-sidebar__check {
    flex-shrink: 0;
    color: #000;
}

.tca-sidebar__disclaimer {
    font-size: 12px;
    color: #999;
    margin: 0 0 16px;
    line-height: 1.5;
}

.tca-sidebar__change,
a.tca-sidebar__change {
    font-size: 14px;
    color: #000;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.tca-sidebar__change:hover {
    opacity: 0.7;
}

.tca-sidebar__cadence {
    border: 0;
    margin: 0 0 20px;
    padding: 0;
}

.tca-sidebar__cadence-heading {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin: 0 0 10px;
    padding: 0;
}

.tca-sidebar__cadence-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111;
    cursor: pointer;
}

.tca-sidebar__cadence-option.is-selected {
    border-color: #111;
    background: #f9fafb;
}

.tca-sidebar__cadence-input {
    margin-top: 3px;
    accent-color: #111;
    flex-shrink: 0;
}

.tca-sidebar__cadence-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tca-sidebar__cadence-label {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
}

.tca-sidebar__cadence-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    font-size: 13px;
    color: #4b5563;
}

.tca-sidebar__cadence-was {
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: 400;
}

.tca-sidebar__cadence-now {
    font-weight: 600;
    color: #111;
}

/* ═══════════════════════════════════════
   ACCOUNT WIDGET
   ═══════════════════════════════════════ */

.tca-account__status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.tca-account__status--active { background: #dcfce7; color: #166534; }
.tca-account__status--pending_payment { background: #fef9c3; color: #854d0e; }
.tca-account__status--cancelled { background: #fee2e2; color: #991b1b; }
.tca-account__status--expired { background: #f3f4f6; color: #374151; }

.tca-account__plan-name { font-size: 18px; font-weight: 600; display: block; }
.tca-account__plan-price { font-size: 14px; color: #666; }

.tca-account__details { border-top: 1px solid #e5e7eb; padding-top: 16px; margin-top: 16px; }
.tca-account__detail {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 8px 0;
    font-size: 14px;
    word-break: break-word;
}
.tca-account__detail-label { color: #666; flex: 0 0 auto; }
.tca-account__detail-value { text-align: right; word-break: break-word; }

@media (max-width: 600px) {
    .tca-account__detail {
        flex-direction: column;
        align-items: flex-start;
    }
    .tca-account__detail-value { text-align: left; }
}

.tca-manage__cancel-form {
    margin: 16px 0 0;
}

.tca-manage__cancel-btn {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    color: #dc2626;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    -webkit-appearance: none;
    appearance: none;
}

.tca-manage__cancel-btn:hover,
.tca-manage__cancel-btn:focus {
    background: transparent;
    color: #b91c1c;
    outline: none;
}

/* ═══════════════════════════════════════
   PRICING TABLE WIDGET
   ═══════════════════════════════════════ */

.tca-pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tca-pricing__plan {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.tca-pricing__name { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.tca-pricing__price { margin-bottom: 24px; }
.tca-pricing__amount { font-size: 32px; font-weight: 700; }
.tca-pricing__interval { font-size: 14px; color: #666; }

.tca-pricing__features { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.tca-pricing__feature { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
.tca-pricing__feature-icon { flex-shrink: 0; }

.tca-pricing__cta {
    display: inline-block;
    padding: 14px 32px;
    background: #000;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.tca-pricing__cta:hover { opacity: 0.85; color: #fff; }

/* ═══════════════════════════════════════
   PAYMENT STEP
   ═══════════════════════════════════════ */

.tca-payment__inline-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #991b1b;
}
.tca-payment__inline-notice-icon {
    flex-shrink: 0;
    line-height: 0;
    margin-top: 1px;
}
.tca-payment__inline-notice-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.tca-payment__methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tca-payment__method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #fff;
}

.tca-payment__method--selected,
.tca-payment__method:has(input:checked) {
    border-color: #000;
    background: #fff;
}

/* Custom radio dot */
.tca-payment__radio {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tca-payment__radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.tca-payment__radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}

.tca-payment__radio input[type="radio"]:checked + .tca-payment__radio-dot {
    border-color: #000;
}

.tca-payment__radio input[type="radio"]:checked + .tca-payment__radio-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000;
}

.tca-payment__method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 56px;
}

.tca-payment__method-icon img,
.tca-payment__method-icon .tca-payment__brand {
    height: 28px;
    width: auto;
    max-width: 56px;
    display: block;
    object-fit: contain;
}

.tca-payment__brand--text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 56px;
    padding: 0 10px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tca-payment__method-title {
    font-size: 14px;
    font-weight: 500;
}

/* Billing address options */
.tca-payment__billing-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tca-payment__billing-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
    background: #fff;
}

.tca-payment__billing-option--selected,
.tca-payment__billing-option:has(input:checked) {
    border-color: #000;
}

.tca-payment__billing-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    padding: 2px 0;
}

.tca-payment__billing-content strong {
    font-weight: 500;
}

.tca-payment__address-display {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.tca-payment__billing-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.tca-payment__billing-form .tca-checkout__field {
    margin-bottom: 20px;
}

.tca-payment__billing-form .tca-checkout__field:last-child {
    margin-bottom: 0;
}

.tca-payment__billing-form .tca-checkout__row {
    margin-bottom: 20px;
    gap: 16px;
}

.tca-payment__billing-form .tca-checkout__row:last-child {
    margin-bottom: 0;
}

.tca-payment__billing-form .tca-checkout__label,
.tca-payment__billing-form label.tca-checkout__label,
#tca-payment-form .tca-payment__billing-form .tca-checkout__label {
    margin-bottom: 10px !important;
    display: block !important;
    padding-bottom: 0;
}

.tca-payment__billing-form .tca-checkout__input,
.tca-payment__billing-form .tca-checkout__select {
    margin-top: 0;
}

.tca-payment__billing-form .tca-checkout__row .tca-checkout__field {
    margin-bottom: 0;
}

#tca-payment-form .tca-checkout__section {
    margin-bottom: 36px;
}

#tca-payment-form .tca-checkout__section-title {
    margin-bottom: 16px;
}

/* Terms checkbox */
.tca-payment__terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    line-height: 1.5;
}

.tca-payment__terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #000;
    border: 1px solid #ccc;
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.tca-payment__terms input[type="checkbox"]:checked {
    background: #000;
    border-color: #000;
}

.tca-payment__terms input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tca-payment__terms a {
    color: #000;
    text-decoration: underline;
}

/* Secure text */
.tca-payment__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-top: 16px;
}

/* Reset any WooCommerce default styles bleeding in */
#tca-payment-form input[type="radio"],
#tca-payment-form input[type="checkbox"] {
    box-shadow: none !important;
    outline: none !important;
}

#tca-payment-form label {
    margin: 0;
}

/* ═══════════════════════════════════════
   WELCOME STEP
   ═══════════════════════════════════════ */

.tca-checkout__welcome {
    text-align: center;
    padding: 80px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.tca-checkout__welcome-icon {
    margin-bottom: 24px;
}

.tca-checkout__welcome-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
}

.tca-checkout__welcome-order {
    font-size: 14px;
    color: #999;
    margin-bottom: 32px;
}

.tca-checkout__failed-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════
   ERROR
   ═══════════════════════════════════════ */

.tca-checkout__error {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.tca-checkout__error code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* ── Widescreen (1440px+) ── */
@media (min-width: 1440px) {
    .tca-checkout {
        padding: 80px 0;
    }

    .tca-checkout__layout {
        gap: 80px;
    }
}

/* ── Desktop (1025px - 1439px) ── */
@media (min-width: 1025px) and (max-width: 1439px) {
    .tca-checkout {
        padding: 60px 0;
    }

    .tca-checkout__layout {
        grid-template-columns: 1fr 340px;
        gap: 48px;
    }
}

/* ── Tablet landscape (769px - 1024px) ── */
@media (max-width: 1024px) {
    .tca-checkout {
        padding: 40px 0;
    }

    .tca-checkout__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tca-checkout__aside {
        order: -1;
    }

    .tca-sidebar {
        position: static;
        max-width: 100%;
    }

    .tca-header {
        padding: 16px 0;
        min-height: 80px;
    }

    .tca-header__inner {
        gap: 24px;
    }

    .tca-header__connector {
        width: 32px;
        margin: 0 10px;
    }
}

/* ── Tablet portrait (481px - 768px) ── */
@media (max-width: 768px) {
    .tca-checkout {
        padding: 32px 0;
    }

    .tca-checkout__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tca-checkout__row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tca-checkout__title {
        font-size: 22px;
    }

    .tca-checkout__section-title {
        font-size: 15px;
    }

    /* Header: logo center, lock right */
    .tca-header {
        padding: 16px 0;
        min-height: 60px;
    }

    .tca-header__inner {
        gap: 16px;
    }

    /* Centre the logo without giving it the full bar as a percentage width
     * (that is what stretched it when a theme set img { width: 100% }). */
    .tca-header__logo {
        min-width: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: calc(100% - 110px);
    }

    .tca-header__steps {
        display: none;
    }

    .tca-header__right {
        min-width: auto;
        margin-left: auto;
    }

    /* Payment methods */
    .tca-payment__method {
        padding: 14px 16px;
    }

    .tca-payment__billing-option {
        padding: 14px 16px;
    }

    .tca-payment__billing-form {
        padding: 16px;
    }

    /* Sidebar */
    .tca-sidebar {
        padding: 24px;
    }

    /* Button */
    .tca-checkout__submit {
        padding: 14px 24px !important;
        font-size: 15px;
    }

    /* Pricing table */
    .tca-pricing {
        grid-template-columns: 1fr !important;
    }

    /* Welcome */
    .tca-checkout__welcome {
        padding: 48px 16px;
    }

    /* Footer */
    .tca-footer {
        padding: 16px 0;
    }
}

/* ── Mobile (320px - 480px) ── */
@media (max-width: 480px) {
    .tca-checkout {
        padding: 24px 0;
    }

    .tca-checkout__layout {
        gap: 20px;
    }

    .tca-checkout__title {
        font-size: 20px;
    }

    .tca-checkout__section {
        margin-bottom: 20px;
    }

    .tca-checkout__input,
    .tca-checkout__select {
        padding: 12px 14px !important;
        font-size: 15px;
    }

    .tca-checkout__label {
        font-size: 12px;
    }

    /* Header: logo center, lock right */
    .tca-header {
        padding: 12px 0;
        min-height: 56px;
    }

    .tca-header__right {
        min-width: auto;
        font-size: 11px;
    }

    .tca-header__secure-text {
        display: none;
    }

    /* Payment */
    .tca-payment__method {
        padding: 12px 14px;
        gap: 10px;
    }

    .tca-payment__method-title {
        font-size: 13px;
    }

    .tca-payment__method-icon img {
        height: 20px;
    }

    .tca-payment__radio-dot {
        width: 18px;
        height: 18px;
    }

    .tca-payment__radio input[type="radio"]:checked + .tca-payment__radio-dot::after {
        width: 8px;
        height: 8px;
    }

    .tca-payment__billing-option {
        padding: 12px 14px;
        gap: 10px;
    }

    .tca-payment__billing-form {
        padding: 14px;
    }

    .tca-payment__terms {
        font-size: 12px;
    }

    .tca-payment__secure {
        font-size: 12px;
    }

    /* Sidebar compact */
    .tca-sidebar {
        padding: 20px;
        border-radius: 8px;
    }

    .tca-sidebar__name {
        font-size: 18px;
    }

    .tca-sidebar__amount {
        font-size: 24px;
    }

    .tca-sidebar__feature {
        font-size: 13px;
    }

    /* Button */
    .tca-checkout__submit {
        padding: 14px 20px !important;
        font-size: 14px;
    }

    /* Welcome */
    .tca-checkout__welcome {
        padding: 40px 12px;
    }

    .tca-checkout__welcome-icon svg {
        width: 48px;
        height: 48px;
    }

    /* Back link */
    .tca-checkout__back {
        font-size: 13px;
    }

    /* Footer */
    .tca-footer {
        padding: 12px 0;
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════
   WooCommerce Override Resets
   ═══════════════════════════════════════ */

.tca-checkout input[type="text"],
.tca-checkout input[type="email"],
.tca-checkout input[type="tel"],
.tca-checkout input[type="password"],
.tca-checkout select,
.tca-checkout textarea,
#tca-payment-form input[type="text"],
#tca-payment-form input[type="email"],
#tca-payment-form select {
    box-shadow: none !important;
    -webkit-appearance: none;
    outline: none;
}

.tca-checkout input:focus,
.tca-checkout select:focus,
#tca-payment-form input:focus,
#tca-payment-form select:focus {
    box-shadow: none !important;
    outline: none !important;
    border-color: #000 !important;
}

.tca-checkout button,
#tca-payment-form button {
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none;
}

.tca-checkout .woocommerce-error,
.tca-checkout .woocommerce-message,
.tca-checkout .woocommerce-info {
    display: none !important;
}

/* ═══════════════════════════════════════
   MEMBERSHIP PLANS (TCA_Widget_Membership_Plans)
   ═══════════════════════════════════════ */

/* Elementor-widget: vul kolom voor gelijke kaarthoogte + knoppenuitlijning */
.elementor-widget-tca_membership_plans {
    width: 100%;
    align-self: stretch;
}

.elementor-widget-tca_membership_plans.elementor-widget {
    display: flex;
    flex-direction: column;
}

.elementor-widget-tca_membership_plans .elementor-widget-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.tca-mplan-front.tca-mplan {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
}

.tca-mplan-front .tca-mplan-front__empty {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Volle beschikbare breedte binnen kolom */
.tca-mplan-front.tca-mplan-front--stretch-grid,
.tca-mplan-front.tca-mplan-front--stretch-grid .tca-mplan-front__grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.tca-mplan-front .tca-mplan-front__grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 1024px) {
    html body .tca-mplan-front .tca-mplan-front__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    html body .tca-mplan-front .tca-mplan-front__grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

.tca-mplan-front .tca-mplan-front__grid > .tca-mplan-front__card {
    justify-self: stretch;
    align-self: stretch;
    height: 100%;
    min-height: 0;
}

.tca-mplan-front .tca-mplan-front__card {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    overflow: hidden; /* border-radius uit Elementor zichtbaar; kinderen clip-pen niet buiten ovale hoek */
}

.tca-mplan-front .tca-mplan-front__card-body.tca-mplan__card-body,
.tca-mplan-front .tca-mplan__card-body.tca-mplan-front__card-body {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tca-mplan-front .tca-mplan-front__meta {
    flex: 0 0 auto;
}

/* Groeiruimte zit tussen feature-blok en knop (footer heeft margin-top: auto in card-body) */
.tca-mplan-front .tca-mplan-front__feature-area {
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Standaardkaarten: expliciete feature-kleur tegen theme/overerving (bv. wit op wit) */
.tca-mplan-front .tca-mplan-front__card:not(.tca-mplan-front__card--featured) .tca-mplan__features,
.tca-mplan-front .tca-mplan-front__card:not(.tca-mplan-front__card--featured) .tca-mplan__feature {
    color: #333;
}

.tca-mplan-front .tca-mplan-front__card:not(.tca-mplan-front__card--featured) .tca-mplan__feature::before {
    border-color: #333;
}

/* Uitgelichte (zwarte) kaart — features en ticks altijd licht op donker */
.tca-mplan-front .tca-mplan-front__card--featured .tca-mplan__features,
.tca-mplan-front .tca-mplan-front__card--featured .tca-mplan__feature {
    color: rgba(255, 255, 255, 0.93);
}

.tca-mplan-front .tca-mplan-front__card--featured .tca-mplan__feature::before {
    border-color: rgba(255, 255, 255, 0.95);
}

/* Knoop op zwarte kaart: geen gekleurde erfenis van de kaart-context */
.tca-mplan-front .tca-mplan-front__card--featured .tca-mplan-front__cta--featured {
    color: #0a0a0a !important;
    -webkit-text-fill-color: #0a0a0a !important;
}

.tca-mplan-front .tca-mplan-front__card--featured .tca-mplan-front__cta--featured:hover,
.tca-mplan-front .tca-mplan-front__card--featured .tca-mplan-front__cta--featured:focus {
    color: #0a0a0a !important;
    -webkit-text-fill-color: #0a0a0a !important;
}

.tca-mplan-front .tca-mplan__name {
    margin: 0 0 8px;
}

.tca-mplan-front .tca-mplan__price {
    margin: 0;
}

.tca-mplan-front .tca-mplan__suffix {
    margin: 6px 0 0;
}

.tca-mplan-front .tca-mplan-front__desc,
.tca-mplan-front .tca-mplan__desc {
    margin: 14px 0 0;
    font-family: Georgia, 'Times New Roman', serif;
}

/* Standaardkaarten: donkere beschrijving (back-up naast Elementor; kind-elementen erven) */
.tca-mplan-front .tca-mplan-front__card:not(.tca-mplan-front__card--featured) .tca-mplan__desc,
.tca-mplan-front .tca-mplan-front__card:not(.tca-mplan-front__card--featured) .tca-mplan-front__desc {
    color: #333;
    -webkit-text-fill-color: #333;
}

.tca-mplan-front .tca-mplan-front__card:not(.tca-mplan-front__card--featured) .tca-mplan__desc *,
.tca-mplan-front .tca-mplan-front__card:not(.tca-mplan-front__card--featured) .tca-mplan-front__desc * {
    color: inherit;
}

.tca-mplan-front .tca-mplan__divider {
    height: 0;
    flex-shrink: 0;
    border: 0;
    border-top-style: solid;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

.tca-mplan-front .tca-mplan__features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tca-mplan-front .tca-mplan__feature {
    position: relative;
    padding-left: 22px;
    margin: 0 0 10px;
}

.tca-mplan-front .tca-mplan__feature:last-child {
    margin-bottom: 0;
}

.tca-mplan-front .tca-mplan__feature::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.32em;
    width: 5px;
    height: 9px;
    border-style: solid;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    box-sizing: border-box;
}

.tca-mplan-front .tca-mplan-front__footer-actions.tca-mplan__actions,
.tca-mplan-front .tca-mplan__actions.tca-mplan-front__footer-actions {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.tca-mplan-front .tca-mplan__cta.tca-mplan-front__cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    font-family: inherit;
}

.tca-mplan-front .tca-mplan-front__fine.tca-mplan__fine {
    margin: 14px 0 0;
    text-align: center;
}

/* == Terms acceptance at checkout ============================== */
/* Colours are explicit: this block sits on Elementor pages whose
   background is unknown, so inherited text colour risks dark-on-dark. */
.tca-checkout__section--terms {
    margin: 24px 0 8px;
}
.tca-checkout__terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
}
.tca-checkout__terms-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #000;
}
.tca-checkout__terms-label a {
    color: #000;
    text-decoration: underline;
}
/* == Introductory offers (Airtable "Membership Discount") ======= */
/* Colours are defaults only: every value here is overridable from the
   Elementor "Aanbieding / korting" section without !important wars. */
/* The badge and the extras form one row: an extra is part of the offer
   headline, not a second list further down the card. */
.tca-mplan-front .tca-mplan__promo-badge-row,
.tca-sidebar .tca-sidebar__promo-badge-row,
.tca-plan-sidebar .tca-sidebar__promo-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    line-height: 1;
}

.tca-mplan-front .tca-mplan__promo-badge,
.tca-sidebar .tca-sidebar__promo-badge,
.tca-plan-sidebar .tca-sidebar__promo-badge {
    display: inline-block;
    max-width: 100%;
    padding: 5px 12px;
    border-radius: 999px;
    background-color: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.tca-mplan-front .tca-mplan-front__card--featured .tca-mplan__promo-badge {
    background-color: #fff;
    color: #000;
}

.tca-mplan-front .tca-mplan__price--promo {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.tca-mplan__price-was,
.tca-sidebar__was {
    text-decoration: line-through;
    color: #8a8a8a;
    font-weight: 400;
    font-size: 0.6em;
    line-height: 1.2;
}

.tca-mplan__price-now {
    display: inline-block;
}

/* Sits next to the badge and matches its metrics exactly, so the two read as
   a pair rather than as two unrelated elements. */
.tca-mplan-front .tca-mplan__promo-extra,
.tca-sidebar .tca-sidebar__promo-extra,
.tca-plan-sidebar .tca-sidebar__promo-extra {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    margin: 0;
    padding: 5px 12px 5px 5px;
    border: 0;
    /* Inset shadow instead of a border: a real border adds 2px of height and
       would make this chip stand taller than the badge beside it. */
    box-shadow: inset 0 0 0 1px currentColor;
    border-radius: 999px;
    background-color: #fff;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    text-align: left;
    overflow-wrap: anywhere;
}

/* The plus is drawn from two gradient bars instead of typed as a "+": that
   glyph sits on the font's math axis, which is visibly above the centre of a
   circle this small. currentColor keeps it themeable from Elementor. */
.tca-mplan-front .tca-mplan__promo-extra::before,
.tca-sidebar .tca-sidebar__promo-extra::before,
.tca-plan-sidebar .tca-sidebar__promo-extra::before {
    content: "";
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    background-image:
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor);
    background-size: 7px 1.5px, 1.5px 7px;
    background-position: center center;
    background-repeat: no-repeat;
}

/* On the dark card the chip keeps a light fill so it stays a sibling of the
   inverted badge instead of disappearing into the background. */
.tca-mplan-front .tca-mplan-front__card--featured .tca-mplan__promo-extra {
    background-color: #fff;
    color: #000;
}

.tca-mplan-front .tca-mplan__promo-note,
.tca-sidebar .tca-sidebar__promo-note,
.tca-plan-sidebar .tca-sidebar__promo-note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #6f6f6f;
    overflow-wrap: anywhere;
}

.tca-mplan-front .tca-mplan-front__card--featured .tca-mplan__promo-note {
    color: rgba(255, 255, 255, 0.75);
}

.tca-mplan-front .tca-mplan-front__card--featured .tca-mplan__price-was {
    color: rgba(255, 255, 255, 0.6);
}

.tca-sidebar .tca-sidebar__price--promo,
.tca-plan-sidebar .tca-sidebar__price--promo {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.tca-sidebar .tca-sidebar__promo-badge,
.tca-plan-sidebar .tca-sidebar__promo-badge {
    margin: 0 0 8px;
}

/* Inside the shared row the badge's own bottom margin would break alignment
   with the chip next to it. */
.tca-sidebar .tca-sidebar__promo-badge-row .tca-sidebar__promo-badge,
.tca-plan-sidebar .tca-sidebar__promo-badge-row .tca-sidebar__promo-badge {
    margin: 0;
}

@media (max-width: 767px) {
    .tca-mplan-front .tca-mplan__price--promo {
        gap: 8px;
    }

    .tca-mplan__price-was,
    .tca-sidebar__was {
        font-size: 0.55em;
    }

    .tca-mplan-front .tca-mplan__promo-extra,
    .tca-sidebar .tca-sidebar__promo-extra,
    .tca-plan-sidebar .tca-sidebar__promo-extra {
        padding: 5px 10px 5px 5px;
        letter-spacing: 0.04em;
    }
}
