/* Plan product pages only (enqueued by apps/tc-plans/includes/product-page.php). */

/* Phones: the two plan cards sit side by side, icon over text, so their copy
   wraps instead of running past the screen edge. */
@media all and (max-width: 640px) {
    .tc-purchase-info--plan {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
    }

    .tc-purchase-info--plan .tc-purchase-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 12px;
    }

    .tc-purchase-info--plan .tc-purchase-card-copy {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        white-space: normal;
    }

    .tc-purchase-info--plan .tc-purchase-card-copy strong {
        font-size: 15px;
    }

    .tc-purchase-info--plan .tc-purchase-card-copy span {
        overflow: visible;
        font-size: 13px;
        white-space: normal;
    }
}

/* How It Works: three white cards on the page background, between the FAQs and Reviews. */
.tc-plan-steps {
    margin-top: var(--space-8);
}

.tc-plan-steps__eyebrow {
    margin: 0 0 var(--space-1);
    color: var(--orange-700);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tc-plan-steps__title {
    margin: 0 0 var(--space-5);
    color: var(--ink-900);
    font-family: var(--font-display, "Barlow Semi Condensed", sans-serif);
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.05;
}

.tc-plan-steps__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-plan-steps__step {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--pad-card-lg);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    box-shadow: var(--shadow-hairline);
}

.tc-plan-steps__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tc-plan-steps__num {
    color: var(--text-muted);
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tc-plan-steps__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--orange-050, #fff4ec);
    color: var(--orange-700);
}

.tc-plan-steps__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.tc-plan-steps__step-title {
    margin: var(--space-1) 0 0;
    color: var(--ink-900);
    font-size: 20px;
    font-weight: 700;
}

.tc-plan-steps__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

@media all and (max-width: 767px) {
    .tc-plan-steps {
        margin-top: var(--space-6);
    }

    .tc-plan-steps__eyebrow,
    .tc-plan-steps__title {
        padding-inline: var(--gutter);
    }

    .tc-plan-steps__title {
        font-size: 30px;
    }

    .tc-plan-steps__list {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-3);
    }

    .tc-plan-steps__step {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 2px;
        padding: var(--pad-card);
    }

    .tc-plan-steps__head {
        display: contents;
    }

    .tc-plan-steps__icon {
        grid-row: 1 / span 3;
        grid-column: 1;
    }

    .tc-plan-steps__num,
    .tc-plan-steps__step-title,
    .tc-plan-steps__text {
        grid-column: 2;
    }

    .tc-plan-steps__num {
        font-size: 11px;
    }

    .tc-plan-steps__step-title {
        margin: 0;
        font-size: 17px;
    }

    .tc-plan-steps__text {
        font-size: 14px;
    }
}

/* The line under Add to Cart: a full row of its own inside the flex purchase form. */
.single-product .woocommerce div.product form.cart .tc-plan-purchase-note {
    flex: 0 0 100%;
    order: 10;
    margin: 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
}

/* Empty reviews on a plan: ask for a build photo. */
#tc-shop-reviews .tc-reviews-none--plan p {
    margin: 0;
}

#tc-shop-reviews .tc-reviews-none--plan .tc-reviews-none__title {
    margin-bottom: var(--space-1);
    color: var(--ink-900);
    font-size: 16px;
    font-weight: 600;
}

@media all and (max-width: 480px) {
    .single-product .woocommerce div.product form.cart .tc-plan-purchase-note {
        font-size: 11px;
        letter-spacing: .02em;
    }
}
