/**
 * Transactional Marketing premium product landing — small overrides on top
 * of the shared oprc_product_landing.css primitives.
 *
 * Only contains TM-specific tweaks; layout primitives (.oprc-product-*,
 * .better-checkout-*, .howto-install-*) are inherited.
 */

@import url('https://fonts.googleapis.com/css2?family=Covered+By+Your+Grace&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* ---------------------------------------------------------------------------
 * Hero — TM assets + typography on top of shared .oprc-product-hero-* layout
 * ------------------------------------------------------------------------ */

.tm-product-hero-section.oprc-product-hero-section {
    min-height: unset;
    padding: 60px 160px;
    background-image: url(../../images/tm_product_page/transactional-marketing-hero-bg.png);
}
.tm-product-hero-section.oprc-product-hero-section .oprc-product-hero {
    grid-template-columns: 12fr 11fr;
    gap: 74px;
}
.tm-product-hero-section .oprc-product-hero-text h1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-transform: none;
    max-width: unset;
    margin-bottom: 32px;
}
.tm-product-hero-section .tm-hero-eyebrow {
    display: none; /* flex */
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.tm-product-hero-section .tm-hero-badge {
    display: inline-block;
    background: #189BEA;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1.2;
    background: linear-gradient(90deg, #49C6FF 0%, #064EA1 100%);
}
.tm-product-hero-section .tm-hero-tagline {
    color: #189BEA;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 24px;
}
.tm-product-hero-section .tm-hero-title-main {
    position: relative;
    display: inline-block;
    color: #171717;
}
.tm-product-hero-section .tm-hero-accent {
    position: relative;
    display: inline-block;
    width: 0;
    height: 1em;
    vertical-align: baseline;
}
.tm-product-hero-section .tm-hero-accent img {
    display: block;
    width: 36px;
    height: 34px;
    max-width: unset;
    max-height: unset;
    position: absolute;
    right: 0;
    bottom: 100%;
    transform: translate(25px, 32px);
    pointer-events: none;
}
.tm-product-hero-section .tm-hero-title-script {
    display: block;
    font-family: 'Covered By Your Grace', cursive;
    font-weight: 400;
    line-height: 130%;
    color: #064EA1;
    letter-spacing: 0;
}
.tm-product-hero-section .oprc-product-hero-text p {
    color: rgba(23, 23, 23, 1);
    font-weight: 400;
}
.tm-product-hero-section .tm-hero-zencart {
    position: relative;
    display: inline-block;
}
.tm-product-hero-section .tm-hero-zencart::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 21px;
    background: url(../../images/tm_product_page/icon-underline.svg) no-repeat left bottom;
    background-size: 100% auto;
    pointer-events: none;
}
.tm-product-hero-section .oprc-product-hero-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}
.tm-product-hero-section .oprc-hero-buttons .button_in_cart {
    display: none; /* inline-flex */
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tm-product-hero-section .tm-hero-changelog-arrow {
    font-size: 1.1em;
    line-height: 1;
}

@media (max-width: 768px) {
    .tm-product-hero-section .oprc-product-hero-image {
        padding-inline: 23px 30px;
    }
}

/* ---------------------------------------------------------------------------
 * Campaign Modules grid — leans on .better-checkout-card primitives
 * ------------------------------------------------------------------------ */
.tm-modules-section .better-checkout-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tm-modules-section .tm-badge {
    display: inline-block;
    background: #FFEFD6;
    color: #B45309;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 1;
}
.tm-modules-section .tm-card-highlight {
    border: 2px solid #189BEA;
    background: #F6FBFE;
}

/* ---------------------------------------------------------------------------
 * Ecommerce Attribution highlight section (2-col)
 * ------------------------------------------------------------------------ */
.tm-attribution-section {
    background: #F8FAFC;
}
.tm-attribution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.tm-attribution-text .tm-section-eyebrow {
    display: inline-block;
    background: #FFEFD6;
    color: #B45309;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.tm-attribution-text .oprc-product-title {
    text-align: left;
}
.tm-attribution-text .oprc-product-desc {
    text-align: left;
}
.tm-attribution-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}
.tm-attribution-list li {
    padding: 14px 0;
    border-top: 1px solid #E2E8F0;
}
.tm-attribution-list li:last-child {
    border-bottom: 1px solid #E2E8F0;
}
.tm-attribution-list strong {
    display: block;
    color: #0F172A;
    font-size: 1rem;
    margin-bottom: 4px;
}
.tm-attribution-list span {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}
.tm-attribution-image img {
    width: 100%;
    max-width: 461px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* ---------------------------------------------------------------------------
 * How to Install — 3-step numbered grid
 *
 * The OPRC base rule applies position:relative + z-index:9 to
 * .howto-install-section and an absolutely-positioned ::after carrying a
 * 100vw background image that doesn't exist for TM. The combined effect
 * pushed an invisible overlay above neighbouring sections and made the
 * install section feel like it was "covering" the achievement strip and
 * cards immediately below it. Neutralise both for TM.
 * ------------------------------------------------------------------------ */
/* The OPRC .howto-install-section sibling rules are equal-specificity to ours
 * (single-class selectors), so cascade-order wins us the cascade — but the
 * OPRC ::after pseudo-element on a missing 100vw background image kept
 * appearing on top of .tm-howto-steps in the wild (likely because of a stale
 * cached copy of the OPRC bg image being served at the OPRC path). Use
 * !important + a higher-specificity selector (.howto-install-section.tm-...)
 * so this can never lose the cascade, and put .tm-howto-steps in its own
 * stacking context above any sibling ::after that does manage to render. */
.howto-install-section.tm-howto-install-section {
    text-align: center;
    position: static !important;
    z-index: auto !important;
    background: #FFFFFF !important;
    padding: 56px 0 40px;
    margin: 0;
}
.howto-install-section.tm-howto-install-section::after,
.howto-install-section.tm-howto-install-section::before {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    width: 0 !important;
    height: 0 !important;
}
.tm-howto-install-section .oprc-product-title,
.tm-howto-install-section .oprc-product-desc {
    position: relative;
    z-index: 2;
}
.tm-howto-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
    margin: 28px auto 0;
    max-width: 1100px;
    padding: 0 16px;
    position: relative;
    z-index: 2;
    background: transparent;
}
.tm-howto-step {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 22px 20px;
    position: relative;
}
.tm-howto-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #189BEA;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.tm-howto-step h3 {
    margin: 0 0 8px;
    color: #0F172A;
    font-size: 1rem;
}
.tm-howto-step p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}
/* ---------------------------------------------------------------------------
 * Inline screenshots embedded inside the product description
 *
 * The description tab is laid out as a series of side-by-side rows: text on
 * one side, screenshot on the other, alternating with `.tm-desc-row-reverse`
 * so the eye zig-zags down the page instead of falling down a single column.
 * Below ~768px the rows collapse to a single column (text first, then
 * image) so the prose always reads top-to-bottom on phones.
 * ------------------------------------------------------------------------ */
.tab-content-item .tm-desc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    margin: 32px 0;
}
.tab-content-item .tm-desc-row-reverse .tm-desc-text {
    order: 2;
}
.tab-content-item .tm-desc-row-reverse .tm-shot-figure {
    order: 1;
}
.tab-content-item .tm-desc-text h3 {
    margin-top: 0;
}
.tab-content-item .tm-desc-text p:last-child {
    margin-bottom: 0;
}
.tab-content-item .tm-shot-figure {
    margin: 0;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px;
    background: #FFFFFF;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    max-width: 100%;
}
.tab-content-item .tm-shot-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.tab-content-item .tm-shot-figure figcaption {
    color: #64748B;
    font-size: 0.82rem;
    margin-top: 8px;
    font-style: italic;
    text-align: center;
}
@media (max-width: 768px) {
    .tab-content-item .tm-desc-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0;
    }
    .tab-content-item .tm-desc-row-reverse .tm-desc-text,
    .tab-content-item .tm-desc-row-reverse .tm-shot-figure {
        order: 0;
    }
}
/* Legacy inline-shot classes (back-compat with the first description draft) */
.tab-content-item .tm-inline-shot {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 18px auto 6px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    padding: 8px;
}
.tab-content-item .tm-inline-shot-caption {
    display: block;
    text-align: center;
    color: #64748B;
    font-size: 0.82rem;
    margin: 0 auto 22px;
    font-style: italic;
}
.tab-content-item h3 {
    margin-top: 28px;
    margin-bottom: 8px;
    color: #0F172A;
    font-size: 1.15rem;
}
.tab-content-item h3:first-child {
    margin-top: 0;
}
.tab-content-item p {
    color: #334155;
    line-height: 1.6;
    margin: 0 0 14px;
}
.tab-content-item ul {
    color: #334155;
    line-height: 1.6;
    padding-left: 22px;
}
/* Global stylesheet ships `code { display: block; padding: 12px 20px; }` which
 * forces every <code> snippet onto its own row. Override here so inline code
 * inside the description renders as a normal styled inline chip. */
.tab-content-item code,
.tm-attribution-list code,
.tm-howto-step code {
    display: inline !important;
    padding: 1px 6px !important;
    background: #F1F5F9;
    color: #0F172A;
    border-radius: 4px;
    font-size: 0.88em;
}
.tm-attribution-list code {
    background: #E6F4FB;
    color: #0369A1;
    font-size: 0.85em;
}
.tm-howto-step code {
    background: #FFFFFF;
    color: #0F172A;
    font-size: 0.85em;
    border: 1px solid #E2E8F0;
}

/* ---------------------------------------------------------------------------
 * Zoom-product image modal — TM-scoped overrides
 *
 * The shared modal renders with z-index: 9 and its close button at
 * top:25px / right:25px on the viewport. On the TM page the floating
 * site header (header.fixed) paints on top of the modal: you can see the
 * modal but the close X is covered, and ESC isn't bound anywhere.
 *
 * Bump the modal's z-index way above any header/sticky element, give the
 * close button an inflated hit-area and high z-index so it never hides
 * behind the floating header, and turn the click-the-backdrop into a
 * second way to dismiss the modal. The ESC binding lives in an inline
 * <script> right after the modal in tpl_download_product_info_display.php.
 * ------------------------------------------------------------------------ */
.zoom-product-images-modal {
    z-index: 9999999 !important;
}
.zoom-product-images-modal .btn-close {
    z-index: 10000000 !important;
    top: 18px !important;
    right: 18px !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.15s ease-in-out;
}
.zoom-product-images-modal .btn-close:hover,
.zoom-product-images-modal .btn-close:focus {
    background: rgba(15, 23, 42, 1) !important;
    outline: none;
}
.zoom-product-images-modal .btn-close svg {
    width: 14px;
    height: 14px;
}
/* Hide the inline thumbnail strip in the main image column on TM.
 *
 * The additional-images module still runs so the zoom modal carousel
 * has every slide — we just don't render the thumbs as a vertical tower
 * under the icon (those screenshots are embedded inline in the
 * description instead). This file is only loaded for the TM product, so
 * scoping is automatic. */
#productAdditionalImages {
    display: none !important;
}

/* ---------------------------------------------------------------------------
 * Restore native attribute selects on TM
 *
 * oprc_product_landing.css ships:
 *
 *   #attribute_Installation select,
 *   #attribute_BillingFrequency select {
 *       position: absolute; z-index: -1; visibility: hidden; opacity: 0;
 *   }
 *
 * That rule exists because OPRC replaces those two selects with custom
 * JS-driven radio-style widgets (`.oprc_custom_selector`,
 * `#oprc_billingfrequency_selector`). TM doesn't ship those widgets,
 * but it still loads oprc_product_landing.css for the shared layout
 * primitives — so on the TM page the Installation and Billing Frequency
 * labels appear with no visible dropdown underneath. Re-show the native
 * selects on TM only.
 * ------------------------------------------------------------------------ */
#attribute_Installation select,
#attribute_BillingFrequency select {
    position: static !important;
    z-index: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------ */
@media (min-width: 1440px) and (max-width: 1920px) {
    .tm-product-hero-section .oprc-product-hero-text h1,
    .tm-product-hero-section .tm-hero-title-script {
        font-size: min(64px, calc(32px + (100vw - 1440px) * 32 / 360));
    }
    .tm-product-hero-section .tm-hero-title-main,
    .tm-product-hero-section .tm-hero-title-script {
        white-space: nowrap;
    }
    .tm-product-hero-section .tm-hero-accent img {
        width: 0.5625em;
        height: auto;
        transform: translate(1.1vw, 1.7vw);
    }
}

@media (max-width: 1439px) {
    .tm-product-hero-section .oprc-product-hero-text h1 {
        font-size: 44px;
        line-height: 54px;
    }
     .tm-product-hero-section .tm-hero-title-script {
        font-size: 44px;
        line-height: 54px;
    }
}

@media (max-width: 1280px) {
    .tm-product-hero-section .oprc-product-hero-text h1 {
        font-size: 32px;
        line-height: 45px;
    }
    .tm-product-hero-section .tm-hero-title-script {
        font-size: 32px;
        line-height: 45px;
    }
    .tm-product-hero-section .tm-hero-accent img {
        width: 15px;
        height: 13px;
        transform: translate(10px, 14px);
    }
}
@media (max-width: 1023px) {
    .tm-product-hero-section.oprc-product-hero-section {
        padding: 60px 30px;
    }
}
@media (max-width: 991px) {
    .tm-product-hero-section.oprc-product-hero-section .oprc-product-hero {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }
    .tm-attribution-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .tm-howto-steps {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .tm-product-hero-section.oprc-product-hero-section .oprc-product-hero {
        gap: 40px;
    }
    .tm-product-hero-section.oprc-product-hero-section {
        background-image: url(../../images/tm_product_page/transactional-marketing-hero-bg-mobile.png);
        padding: 40px 15px;
    }
    .tm-product-hero-section .oprc-product-hero-text h1 {
        align-items: center;
        font-size: 30px;
        line-height: 108%;
        margin-bottom: 25px;
    }
    .tm-product-hero-section .oprc-product-hero-text p {
        margin-bottom: 68px;
    }
    .tm-product-hero-section .tm-hero-title-script {
        font-size: 30px;
        line-height: 108%;
    }
    .tm-product-hero-section .tm-hero-eyebrow {
        justify-content: center;
        margin-bottom: 16px;
    }
    .tm-product-hero-section .tm-hero-badge {
        font-size: 10px;
    }
    .tm-product-hero-section .tm-hero-tagline {
        font-size: 10px;
    }
}
@media (max-width: 575px) {
    .tm-modules-section .better-checkout-cards { grid-template-columns: 1fr; }
}

/* Breadcrumb */
#navBreadCrumb.breadcrumb .nmx-wrap-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}
#navBreadCrumb.breadcrumb a,
#navBreadCrumb.breadcrumb .no-link,
#navBreadCrumb.breadcrumb .separator {
    float: none;
    flex-shrink: 0;
    white-space: nowrap;
}
#navBreadCrumb.breadcrumb .separator {
    height: 20px;
}
#navBreadCrumb.breadcrumb a {
    display: inline-flex;
    align-items: center;
    max-width: none;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#navBreadCrumb.breadcrumb a ~ a:last-of-type {
    display: inline-flex;
}
#navBreadCrumb.breadcrumb .no-link {
    margin-bottom: 0;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 768px) {
    #navBreadCrumb.breadcrumb a {
        white-space: nowrap;
        max-width: none;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media (max-width: 767px) {
     #navBreadCrumb.breadcrumb .separator {
        height: 16px;
    }
}

.tooltip {
    position: absolute;
    right: 10px;
}