/* ================================================================
   WEBTOOLSBD - SHOPPING CART CATALOG REDESIGN v1.0
   Based on actual aMember cart/views/blocks/product.phtml markup.
   Does NOT modify cart requests, billing plan values, basket or checkout.
   Scoped to product LISTING pages; not single-product/checkout screens.
   CSS :has() works in modern Chrome / Edge / Firefox / Safari.
   ================================================================ */

/* Scope to the aMember catalogue ONLY. */
.am-cart:has(.am-cart-layout-product-list),
.am-cart:has(.am-cart-layout-product-list) * {
    box-sizing: border-box;
}
.am-cart:has(.am-cart-layout-product-list) {
    --wt-orange: #fb901a;
    --wt-orange-deep: #e77809;
    --wt-ink: #202d41;
    --wt-muted: #738198;
    --wt-line: #e4eaf3;
    --wt-surface: #ffffff;
    --wt-soft: #f7f9fc;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(244px, 272px);
    align-items: start;
    gap: 23px;
    width: 100%;
    min-width: 0;
    padding: 0;
    color: var(--wt-ink);
    font-family: inherit;
}
.am-cart:has(.am-cart-layout-product-list) > .am-cart-main,
.am-cart:has(.am-cart-layout-product-list) > .am-cart-sidebar {
    box-sizing: border-box;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    padding: 0 !important;
}
.am-cart:has(.am-cart-layout-product-list) > .am-cart-main {
    container-name: wtbdCatalogArea;
    container-type: inline-size;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-clear { display: none !important; }

/* Safe progressive-enhancement toolbar from optional JS. */
.wtbd-shop-toolbar {
    margin: 0 0 17px;
    padding: 18px 19px 15px;
    border: 1px solid var(--wt-line, #e4eaf3);
    border-radius: 18px;
    background: linear-gradient(112deg, #fff, #fff 58%, #fff6eb);
    box-shadow: 0 7px 23px rgba(17, 38, 66, .035);
}
.wtbd-shop-toolbar-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.wtbd-shop-kicker {
    display: block;
    margin-bottom: 3px;
    color: #e67e10;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .095em;
    text-transform: uppercase;
}
.wtbd-shop-toolbar h1 {
    margin: 0 !important;
    font-size: clamp(19px, 2vw, 23px) !important;
    line-height: 1.25 !important;
    color: var(--wt-ink, #202d41) !important;
    font-weight: 650 !important;
}
.wtbd-shop-toolbar p {
    margin: 5px 0 0 !important;
    font-size: 12px;
    color: #748297;
    line-height: 1.55;
}
.wtbd-shop-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 47px;
    padding: 7px 10px;
    color: #b9670d;
    border: 1px solid #ffe0b5;
    background: #fff0dc;
    font-weight: 700;
    font-size: 12px;
    border-radius: 12px;
}
.wtbd-shop-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
}
.wtbd-shop-tabs button.wtbd-shop-tab {
    appearance: none;
    cursor: pointer;
    border: 1px solid #e5e9f0 !important;
    background: white !important;
    color: #59687c !important;
    border-radius: 9px;
    padding: 8px 12px !important;
    min-height: 34px;
    height: auto;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: none !important;
    transition: background-color .2s, border-color .2s;
}
.wtbd-shop-tabs button.wtbd-shop-tab[aria-pressed="true"] {
    background: #fff0de !important;
    color: #bb6407 !important;
    border-color: #ffd3a0 !important;
}
.wtbd-shop-tabs button.wtbd-shop-tab:hover {
    border-color: #f9a74a !important;
    color: #bc6407 !important;
}
.wtbd-shop-tabs button.wtbd-shop-tab:focus-visible,
.am-cart:has(.am-cart-layout-product-list) :is(input, select, a, button):focus-visible {
    outline: 2px solid #ff982e;
    outline-offset: 3px;
}
.wtbd-shop-results {
    margin-left: auto;
    font-size: 11px;
    color: #8190a4;
    white-space: nowrap;
}

/* Product grid. It follows the cart module's own c1/c2/c3/c4 classes. */
.am-cart:has(.am-cart-layout-product-list) ul.am-cart-layout-product-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
.am-cart:has(.am-cart-layout-product-list) ul.am-cart-layout-product-list-c1 {
    grid-template-columns: minmax(0, 1fr) !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-layout-product-list_item {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-layout-product-list_item.wtbd-filter-hidden {
    display: none !important;
}

/* All cards have consistent white panels and a clear bottom purchase area. */
.am-cart:has(.am-cart-layout-product-list) .am-cart-product.am-cart-product-brief {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e4eaf1 !important;
    border-radius: 17px !important;
    background: #fff !important;
    box-shadow: 0 5px 21px rgba(30, 53, 86, .047) !important;
    opacity: 1;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product.am-cart-product-brief:hover {
    border-color: #f2c88e !important;
    box-shadow: 0 11px 30px rgba(30, 53, 86, .10) !important;
    transform: translateY(-2px);
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product.am-cart-product-brief:has(.pkgCls) {
    border-color: #f6e0c2 !important;
    background: linear-gradient(#fffdfa, #fff 100px) !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product.am-cart-product-brief:has(.pkgCls)::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff9824, #ffc97b);
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 !important;
    background: transparent !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-product {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    padding: 19px 19px 9px !important;
}

/* Product name, icon and type pill: package detected by existing .pkgCls. */
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 34px;
    margin: 0 0 14px !important;
    padding: 0 !important;
    overflow: visible !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-title::before {
    content: "✦";
    position: static !important;
    display: inline-flex;
    flex: 0 0 33px;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    background: #edf6fc;
    color: #4485b0;
    font-size: 17px;
    line-height: 1;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product:has(.pkgCls) .am-cart-product-content-title::before {
    content: "▦";
    background: #fff0dc;
    color: #ee8b14;
    font-size: 19px;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-title a,
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-title h2 {
    display: block;
    flex: 1 1 124px;
    float: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    color: #202d40 !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.38;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-title a:hover {
    color: var(--wt-orange-deep) !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-title::after {
    content: "SINGLE TOOL";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 5px 8px;
    border: 1px solid #dcebf7;
    border-radius: 999px;
    background: #f0f7fd;
    color: #457d9e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .035em;
    line-height: 1.2;
    white-space: nowrap;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product:has(.pkgCls) .am-cart-product-content-title::after {
    content: "PACKAGE";
    border-color: #ffe0bb;
    background: #fff0dc;
    color: #b76b0c;
}
/* Hide the old diagonal package ribbon. Product still has its original marker. */
.am-cart:has(.am-cart-layout-product-list) span.pkgCls { display: none !important; }

/* The original image and description still come from aMember. */
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-desc {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100px;
    margin: 0 !important;
    padding: 13px !important;
    border: 1px solid #eef1f6;
    border-radius: 13px;
    background: #f7f9fc !important;
    overflow: hidden;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product:has(.pkgCls) .am-cart-product-content-desc {
    background: #fff9f1 !important;
    border-color: #fbebd6;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-desc:has(> .am-cart-product-content-desc-img-wrapper) {
    display: flex;
    align-items: center;
    gap: 12px;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-desc-img-wrapper {
    float: none !important;
    flex: 0 0 67px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 67px;
    height: 67px;
    max-width: 67px !important;
    min-width: 67px;
    margin: 0 !important;
    padding: 8px;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    background: #fff;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-desc-img-wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-desc-img-wrapper img {
    display: block;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 7px;
    object-fit: contain;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-desc-short {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    color: #556378 !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.6 !important;
    overflow-wrap: anywhere;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-desc-short.am-desc-expanded {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-desc-toggle {
    display: inline-flex;
    align-items: center;
    margin: 8px 0 0 !important;
    padding: 6px 10px !important;
    background: #fff !important;
    border: 1px solid #f6d9b0 !important;
    border-radius: 8px;
    color: #b66c15 !important;
    font-family: inherit;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
}
.am-cart:has(.am-cart-layout-product-list) .am-desc-toggle:hover {
    background: #ffefd9 !important;
}

/* Pricing and controls remain the ORIGINAL aMember fields and links. */
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-add-container {
    flex: 0 0 auto;
    min-width: 0;
    margin: auto 0 0 !important;
    padding: 11px 19px 18px !important;
    background: transparent !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-status {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
    border: none !important;
    font-size: 12px;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-status:not(:empty) {
    margin: 0 0 8px !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-terms {
    display: block;
    min-width: 0;
    margin: 0 0 10px !important;
    padding: 11px 12px !important;
    border: 1px solid #f8e8d4;
    border-radius: 10px;
    background: #fff9f1;
    color: #e6800a !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-terms::before {
    content: "PRICE / PLAN";
    display: block;
    margin: 0 0 3px;
    color: #9d8b76;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .075em;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product select.billing-plan-select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #ecd9c1;
    border-radius: 8px;
    color: #27364b;
    background: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-qty {
    margin: 0 0 11px;
    font-size: 12px;
    color: #566478;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons :is(input.am-cart-button-add,input.am-cart-button-order,a.am-cart-details) {
    appearance: none;
    display: inline-flex;
    flex: 1 1 112px;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 39px;
    height: auto;
    margin: 0;
    padding: 8px 11px !important;
    border-radius: 9px;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: background-color .2s, border-color .2s, transform .2s;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons input.am-cart-button-add {
    background: #f7931e !important;
    border: 1px solid #f7931e !important;
    color: white !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons input.am-cart-button-add:hover {
    background: #e67e08 !important;
    border-color: #e67e08 !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons input.am-cart-button-order {
    background: white !important;
    border: 1px solid #ffcf94 !important;
    color: #b3640d !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons input.am-cart-button-order:hover {
    background: #fff2e0 !important;
    border-color: #f7a94e !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons a.am-cart-details {
    background: #fff4e6 !important;
    border: 1px solid #ffdbaf !important;
    color: #b46b10 !important;
        box-shadow: rgba(15, 23, 42, 0.08) 0px 4px 12px !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons a.am-cart-details:hover {
    background: #ffe8c9 !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product.am-cart-product-in-basket {
    opacity: .82;
}

/* Right-side Search, Basket and Authentication -- unchanged native behavior. */
.am-cart:has(.am-cart-layout-product-list) .am-cart-sidebar > h2 {
    margin: 0 0 10px !important;
    padding: 0 2px !important;
    color: #243249;
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 650 !important;
    line-height: 1.35;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-sidebar > .am-block,
.am-cart:has(.am-cart-layout-product-list) .am-cart-sidebar > .block {
    min-width: 0;
    margin: 0 0 20px !important;
    padding: 14px !important;
    border: 1px solid #e5ebf3 !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 5px 21px rgba(30, 53, 86, .035) !important;
    color: #5e6c80;
    font-size: 12px;
    line-height: 1.65;
}
.am-cart:has(.am-cart-layout-product-list) #cart-search form {
    display: flex;
    gap: 7px;
    align-items: stretch;
    margin: 0;
}
.am-cart:has(.am-cart-layout-product-list) #cart-search input[type="text"] {
    float: none !important;
    flex: 1 1 auto;
    min-width: 0;
    width: 0 !important;
    height: 38px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #dfe7f1 !important;
    border-radius: 9px !important;
    background: #f8fafd;
    font-size: 12px;
    color: #26354a;
}
.am-cart:has(.am-cart-layout-product-list) #cart-search input[type="submit"] {
    float: none !important;
    flex: 0 0 auto;
    width: auto !important;
    min-height: 38px;
    padding: 8px 11px !important;
    border: 1px solid #f7931e !important;
    border-radius: 9px !important;
    background: #f7931e !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 11px;
    font-weight: 650;
}
.am-cart:has(.am-cart-layout-product-list) #cart-search input[type="submit"]:hover {
    background: #e67e08 !important;
}
.am-cart:has(.am-cart-layout-product-list) #cart-basket,
.am-cart:has(.am-cart-layout-product-list) #cart-basket .am-basket-preview {
    color: #607187;
    background: #fff !important;
}
.am-cart:has(.am-cart-layout-product-list) #cart-basket a,
.am-cart:has(.am-cart-layout-product-list) #cart-auth a {
    color: #e8840e !important;
    font-weight: 600;
}
.am-cart:has(.am-cart-layout-product-list) #cart-basket a:hover,
.am-cart:has(.am-cart-layout-product-list) #cart-auth a:hover {
    text-decoration: underline;
}
.am-cart:has(.am-cart-layout-product-list) .am-pagination {
    margin-top: 18px;
    padding: 6px;
    color: #68788b;
}
.am-cart:has(.am-cart-layout-product-list) .am-pagination a {
    border-radius: 8px;
    border: 1px solid #e6ebf2;
    padding: 6px 11px;
    color: #e78109;
    background: #fff;
    text-decoration: none;
}
.am-cart:has(.am-cart-layout-product-list) .am-pagination a:hover {
    background: #fff3e2;
}

/* Responsive based on cart's own available width rather than viewport alone. */
@container wtbdCatalogArea (max-width: 760px) {
    .am-cart ul.am-cart-layout-product-list {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
@media (max-width: 980px) {
    .am-cart:has(.am-cart-layout-product-list) {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 25px;
    }
    .am-cart:has(.am-cart-layout-product-list) ul.am-cart-layout-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .am-cart:has(.am-cart-layout-product-list) > .am-cart-sidebar {
        width: 100% !important;
    }
}
@media (max-width: 740px) {
    .am-cart:has(.am-cart-layout-product-list) ul.am-cart-layout-product-list {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .wtbd-shop-toolbar { padding: 15px; border-radius: 15px; }
    .wtbd-shop-toolbar h1 { font-size: 19px !important; }
    .wtbd-shop-tabs { gap: 6px; }
    .wtbd-shop-tabs button.wtbd-shop-tab { padding: 8px 10px !important; font-size: 11px; }
    .wtbd-shop-results { flex-basis: 100%; margin-left: 1px; }
}
@media (max-width: 420px) {
    .am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-product { padding: 15px 13px 7px !important; }
    .am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-add-container { padding: 10px 13px 13px !important; }
    .am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-title { gap: 7px; }
    .am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-title a { font-size: 14px !important; flex-basis: 105px; }
    .am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-title::after { font-size: 8px; padding: 4px 6px; }
    .am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-desc { padding: 10px !important; min-height: 85px; }
    .am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons :is(input.am-cart-button-add,input.am-cart-button-order,a.am-cart-details) { flex-basis: 100px; min-height: 40px; }
    .am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-desc-img-wrapper { width: 55px; min-width: 55px; flex-basis: 55px; height: 55px; }
}
@media (prefers-reduced-motion: reduce) {
    .am-cart:has(.am-cart-layout-product-list) .am-cart-product.am-cart-product-brief,
    .am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons :is(input, a) {
        transition: none;
    }
}

/* Keep cards readable when the available catalog column is narrow.
   Same selector weight as the desktop rule; place at the end to win. */
@container wtbdCatalogArea (max-width: 760px) {
    .am-cart:has(.am-cart-layout-product-list) ul.am-cart-layout-product-list:not(.am-cart-layout-product-list-c1) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* ================================
   WebToolsBD Cart Button Refinement
   ================================ */

.am-cart .am-cart-product .am-cart-actions,
.am-cart-product .am-cart-actions,
.wtbd-cart-card .am-cart-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.am-cart .am-cart-button-add,
.am-cart .am-cart-button-order,
.wtbd-cart-card .am-cart-button-add,
.wtbd-cart-card .am-cart-button-order,
a.am-cart-button-add,
a.am-cart-button-order {
    min-height: 44px;
    height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 44px;
    text-align: center;
    box-shadow: none;
    transition: all 0.2s ease;
    width: auto;
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Add to Basket = softer orange */
.am-cart .am-cart-button-add,
.wtbd-cart-card .am-cart-button-add,
a.am-cart-button-add {
    background: #f59a23;
    border: 1px solid #f59a23;
    color: #ffffff !important;
}

.am-cart .am-cart-button-add:hover,
.wtbd-cart-card .am-cart-button-add:hover,
a.am-cart-button-add:hover {
    background: #e98b12;
    border-color: #e98b12;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Quick Order = light outline style */
.am-cart .am-cart-button-order,
.wtbd-cart-card .am-cart-button-order,
a.am-cart-button-order {
    background: #fffaf3;
    border: 1px solid #f2c48a;
    color: #b86b00 !important;
}

.am-cart .am-cart-button-order:hover,
.wtbd-cart-card .am-cart-button-order:hover,
a.am-cart-button-order:hover {
    background: #fff3e3;
    border-color: #eab46d;
    color: #9f5d00 !important;
    transform: translateY(-1px);
}

/* desktop a button kom mota dekhabe */
@media (min-width: 768px) {
    .am-cart .am-cart-button-add,
    .am-cart .am-cart-button-order,
    .wtbd-cart-card .am-cart-button-add,
    .wtbd-cart-card .am-cart-button-order {
        min-width: 150px;
        font-size: 14px;
        height: 42px;
        line-height: 42px;
    }
}

/* mobile a stacked and clean */
@media (max-width: 767px) {
    .am-cart .am-cart-actions,
    .wtbd-cart-card .am-cart-actions {
        flex-direction: column;
    }

    .am-cart .am-cart-button-add,
    .am-cart .am-cart-button-order,
    .wtbd-cart-card .am-cart-button-add,
    .wtbd-cart-card .am-cart-button-order {
        width: 100%;
        min-width: 100%;
    }
}







/* ===============================================================
   WEBTOOLSBD - SHOPPING CART SOFT PALETTE / PROFESSIONAL v2
   Add at the VERY END of wtbd-cart-modern.css
   Scope: catalog only. Does not change checkout logic or JS.
   =============================================================== */

/* Calm neutrals replace repeated bright orange panels. */
.am-cart:has(.am-cart-layout-product-list) {
    --wt-orange: #b97832;
    --wt-orange-deep: #a96d2e;
    --wt-ink: #243348;
    --wt-muted: #758397;
    --wt-line: #e5eaf0;
    --wt-soft: #f8fafc;
}

/* Clear, editorial marketplace heading instead of orange gradient. */
.am-cart:has(.am-cart-layout-product-list) .wtbd-shop-toolbar {
    background: #ffffff !important;
    border-color: #e5eaf0 !important;
    box-shadow: 0 3px 14px rgba(27, 42, 63, .025) !important;
}
.am-cart:has(.am-cart-layout-product-list) .wtbd-shop-kicker {
    color: #8390a0 !important;
    font-weight: 650;
    letter-spacing: .09em;
}
.am-cart:has(.am-cart-layout-product-list) .wtbd-shop-total {
    background: #f6f8fa !important;
    color: #657286 !important;
    border-color: #e5eaf0 !important;
    font-weight: 600;
}
.am-cart:has(.am-cart-layout-product-list) .wtbd-shop-tabs button.wtbd-shop-tab {
    background: #ffffff !important;
    color: #627185 !important;
    border-color: #e5eaf0 !important;
    box-shadow: none !important;
    font-weight: 550;
}
.am-cart:has(.am-cart-layout-product-list) .wtbd-shop-tabs button.wtbd-shop-tab[aria-pressed="true"] {
    background: #edf1f5 !important;
    color: #2a3b51 !important;
    border-color: #d5dde7 !important;
    font-weight: 650;
}
.am-cart:has(.am-cart-layout-product-list) .wtbd-shop-tabs button.wtbd-shop-tab:hover {
    background: #f6f8fa !important;
    color: #2a3b51 !important;
    border-color: #cdd6e0 !important;
}

/* One balanced card style for both Packages and Single Tools. */
.am-cart:has(.am-cart-layout-product-list) .am-cart-product.am-cart-product-brief,
.am-cart:has(.am-cart-layout-product-list) .am-cart-product.am-cart-product-brief:has(.pkgCls) {
    background: #fff !important;
    border-color: #e5eaf0 !important;
    box-shadow: 0 3px 14px rgba(25, 40, 58, .038) !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product.am-cart-product-brief:hover,
.am-cart:has(.am-cart-layout-product-list) .am-cart-product.am-cart-product-brief:has(.pkgCls):hover {
    border-color: #cfd7e1 !important;
    box-shadow: 0 7px 22px rgba(25, 40, 58, .065) !important;
    transform: translateY(-1px);
}
/* Remove eye-catching full-width orange stripe at top of package cards. */
.am-cart:has(.am-cart-layout-product-list) .am-cart-product.am-cart-product-brief:has(.pkgCls)::before {
    display: none !important;
    content: none !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-title::before {
    background: #f0f3f7 !important;
    color: #667b91 !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product:has(.pkgCls) .am-cart-product-content-title::before {
    background: #f4f1ed !important;
    color: #927456 !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-title::after {
    background: #f2f6fa !important;
    border-color: #e5ebf1 !important;
    color: #64768b !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product:has(.pkgCls) .am-cart-product-content-title::after {
    background: #f7f4f0 !important;
    border-color: #ebe3db !important;
    color: #83715f !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-title a:hover {
    color: #425a73 !important;
}

/* Product images remain unchanged, but description box is no longer cream. */
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-desc,
.am-cart:has(.am-cart-layout-product-list) .am-cart-product:has(.pkgCls) .am-cart-product-content-desc {
    background: #f8fafc !important;
    border-color: #edf0f4 !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-desc-img-wrapper {
    background: #fff !important;
    border-color: #e6ebf1 !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-desc-toggle {
    background: #ffffff !important;
    border-color: #dce3ec !important;
    color: #42546a !important;
    font-weight: 600;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-desc-toggle:hover {
    background: #edf2f7 !important;
}

/* Pricing panel: clean soft gray, with clear high-contrast amount. */
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-terms {
    background: #f8fafc !important;
    border-color: #e7ebf0 !important;
    color: #2a3a4f !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product .am-cart-product-content-terms::before {
    color: #8894a4 !important;
    font-size: 9px;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product select.billing-plan-select {
    min-height: 35px;
    background: #fff !important;
    color: #304156 !important;
    border-color: #dce3ec !important;
    font-size: 12px !important;
    font-weight: 550 !important;
}

/* Compact purchase actions: dark slate primary, quiet neutral secondary. */
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons {
    gap: 9px !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons :is(input.am-cart-button-add, input.am-cart-button-order, a.am-cart-details) {
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 0% !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 7px 10px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
    transform: none;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons input.am-cart-button-add {
    background: #293c52 !important;
    border-color: #293c52 !important;
    color: #fff !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons input.am-cart-button-add:hover {
    background: #1c2e42 !important;
    border-color: #1c2e42 !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons input.am-cart-button-order,
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons a.am-cart-details {
    background: #fff !important;
    border-color: #d9e1e9 !important;
    color: #43566e !important;
        box-shadow: rgba(15, 23, 42, 0.08) 0px 4px 12px !important;
}
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons input.am-cart-button-order:hover,
.am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons a.am-cart-details:hover {
    background: #f3f6f9 !important;
    border-color: #bcc8d5 !important;
    color: #2b3e52 !important;
}

/* Calmer right-side basket/search section. */
.am-cart:has(.am-cart-layout-product-list) .am-cart-sidebar > .am-block,
.am-cart:has(.am-cart-layout-product-list) .am-cart-sidebar > .block {
    border-color: #e5eaf0 !important;
    box-shadow: 0 3px 14px rgba(25, 40, 58, .03) !important;
}
.am-cart:has(.am-cart-layout-product-list) #cart-search input[type="submit"] {
    background: #293c52 !important;
    border-color: #293c52 !important;
    color: #fff !important;
}
.am-cart:has(.am-cart-layout-product-list) #cart-search input[type="submit"]:hover {
    background: #1c2e42 !important;
    border-color: #1c2e42 !important;
}
.am-cart:has(.am-cart-layout-product-list) #cart-basket a,
.am-cart:has(.am-cart-layout-product-list) #cart-auth a,
.am-cart:has(.am-cart-layout-product-list) .am-pagination a {
    color: #ae762f !important;
}
.am-cart:has(.am-cart-layout-product-list) :is(input, select, a, button):focus-visible {
    outline: 2px solid #506a85 !important;
    outline-offset: 2px;
}

/* Keep two buttons on one row on mobile, unless the container is narrow. */
@media (max-width: 420px) {
    .am-cart:has(.am-cart-layout-product-list) .am-cart-product-content-buttons :is(input.am-cart-button-add, input.am-cart-button-order, a.am-cart-details) {
        min-height: 38px !important;
        height: auto !important;
        min-width: 0 !important;
        flex-basis: 115px !important;
        padding: 8px 9px !important;
        font-size: 11.5px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .am-cart:has(.am-cart-layout-product-list) .am-cart-product.am-cart-product-brief:hover {
        transform: none !important;
    }
}




/* ======================================
   WEBTOOLSBD PREMIUM PACKAGE CROWN FIX
====================================== */

.am-cart:has(.am-cart-layout-product-list)
.am-cart-product:has(.pkgCls)
.am-cart-product-content-title::before {

    content: "\265B" !important;

    /* Icon Box */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;

    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;

    /* Keep Existing Color Style */
    background: #f4f1ed !important;
    background-image: none !important;
    border: none !important;
    border-radius: 12px !important;

    /* Crown */
    color: #f7931e !important;
    font-family: "Segoe UI Symbol",
                 "DejaVu Sans",
                 sans-serif !important;
    font-size: 27px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    margin: 0 !important;
    padding: 0 !important;
}





/* ===========================================================
   WebToolsBD - Subtle Premium Package Polish
   Append AFTER wtbd-cart-modern.css / wtbd-cart-modern-clean.css
   Only affects existing package products marked with .pkgCls
   No changes to cart actions, prices, or checkout.
   =========================================================== */

/* Elegant muted top border: avoids an orange stripe */
.am-cart:has(.am-cart-layout-product-list)
.am-cart-product.am-cart-product-brief:has(.pkgCls) {
    border-top: 2px solid #e5d9cb !important;
    background: #ffffff !important;
}
.am-cart:has(.am-cart-layout-product-list)
.am-cart-product.am-cart-product-brief:has(.pkgCls):hover {
    border-top-color: #cdbba6 !important;
}

/* Icon, name, and badge on a clean aligned title row */
.am-cart:has(.am-cart-layout-product-list)
.am-cart-product:has(.pkgCls) .am-cart-product-content-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 38px !important;
    margin-bottom: 14px !important;
}

/* Crown glyph, not an external SVG / image URL */
.am-cart:has(.am-cart-layout-product-list)
.am-cart-product:has(.pkgCls) .am-cart-product-content-title::before {
    content: "\265B" !important;
    position: static !important;
    display: inline-flex !important;
    flex: 0 0 38px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #eee6dc !important;
    border-radius: 11px !important;
    background: #f6f2ed !important;
    background-image: none !important;
    color: #ee8b14 !important;
    font-family: "Segoe UI Symbol", "DejaVu Sans", sans-serif !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

/* Less crowded title, without making the text extra bold */
.am-cart:has(.am-cart-layout-product-list)
.am-cart-product:has(.pkgCls) .am-cart-product-content-title :is(a, h2) {
    min-width: 0 !important;
    flex: 1 1 120px !important;
    margin: 0 !important;
    color: #223248 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

/* Small, soft badge: keep the original PACKAGE label */
.am-cart:has(.am-cart-layout-product-list)
.am-cart-product:has(.pkgCls) .am-cart-product-content-title::after {
    content: "PACKAGE" !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    padding: 5px 9px !important;
    border: 1px solid #e9e2da !important;
    border-radius: 999px !important;
    background: #f8f6f3 !important;
    color: #796a5a !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    letter-spacing: .045em !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

@media (max-width: 420px) {
    .am-cart:has(.am-cart-layout-product-list)
    .am-cart-product:has(.pkgCls) .am-cart-product-content-title {
        gap: 8px !important;
    }
    .am-cart:has(.am-cart-layout-product-list)
    .am-cart-product:has(.pkgCls) .am-cart-product-content-title :is(a, h2) {
        font-size: 14px !important;
        flex-basis: 115px !important;
    }
    .am-cart:has(.am-cart-layout-product-list)
    .am-cart-product:has(.pkgCls) .am-cart-product-content-title::after {
        padding: 4px 7px !important;
        font-size: 8px !important;
    }
}












/* ========================================================================
   WEBTOOLSBD - CHECKOUT PAGE REDESIGN | 2026-10-17
   CSS ONLY. Based on actual /cart/checkout generated aMember markup.
   All rules scoped under .am-cart > .am-cart-checkout.
   Does not edit the payment method data, coupon AJAX, billing or forms.
   Load after the existing member CSS (and old cart CSS).
   ======================================================================== */

.am-cart > .am-cart-checkout {
  --wco-ink: #25364c;
  --wco-ink-strong: #14243a;
  --wco-muted: #718096;
  --wco-line: #e2e8f1;
  --wco-bg: #ffffff;
  --wco-wash: #f6f8fb;
  --wco-orange: #ef911d;
  max-width: 1210px;
  width: 100%;
  margin: 0 auto 28px;
  color: var(--wco-ink);
  font-family: inherit;
}
.am-cart > .am-cart-checkout,
.am-cart > .am-cart-checkout * { box-sizing: border-box; }

/* Page heading. No PHP template edit required. */
.am-cart > .am-cart-checkout::before {
  content: 'Complete Your Order';
  display: block;
  margin: 0 0 18px;
  color: var(--wco-ink-strong);
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

/* Layout: payment + coupon on left, live order summary on right. */
.am-cart > .am-cart-checkout > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  grid-template-rows: auto auto auto;
  column-gap: 20px;
  row-gap: 0;
  align-items: start;
  min-width: 0;
}

/* Payment section. Retains original aMember JS event handling. */
.am-cart > .am-cart-checkout #choose-paysys-wrapper {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 23px;
  margin: 0 0 17px;
  border: 1px solid var(--wco-line);
  border-radius: 18px;
  background: var(--wco-bg);
  box-shadow: 0 7px 24px rgba(35, 56, 83, .038);
}
.am-cart > .am-cart-checkout #choose-paysys-wrapper::before {
  content: 'PAYMENT DETAILS';
  display: block;
  margin: 0 0 5px;
  color: #7f8ca0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}
.am-cart > .am-cart-checkout #choose-paysys-wrapper > h2 {
  margin: 0 0 18px !important;
  padding: 0 !important;
  color: var(--wco-ink-strong) !important;
  font-family: inherit !important;
  font-weight: 650 !important;
  font-size: 20px !important;
  line-height: 1.4;
  border: none !important;
}
.am-cart > .am-cart-checkout .am-cart-checkout-paysys {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.am-cart > .am-cart-checkout .am-cart-checkout-paysys .am-cart-checkout-paysys-item {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dde5ee !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.am-cart > .am-cart-checkout .am-cart-checkout-paysys .am-cart-checkout-paysys-item:hover {
  border-color: #adbdcf !important;
  background: #fcfdff !important;
}
.am-cart > .am-cart-checkout .am-cart-checkout-paysys .am-cart-checkout-paysys-item.active,
.am-cart > .am-cart-checkout .am-cart-checkout-paysys .am-cart-checkout-paysys-item:has(input[type="radio"]:checked) {
  border: 1px solid #eeba78 !important;
  background: #fffbf5 !important;
  box-shadow: 0 0 0 3px rgba(239, 145, 29, .08) !important;
}
/* Explicitly override the old dotted-border + oversized checkmark rule. */
.am-cart > .am-cart-checkout .am-cart-checkout-paysys div.am-cart-checkout-paysys-item.active::after {
  content: none !important;
  display: none !important;
}
.am-cart > .am-cart-checkout .am-cart-checkout-paysys-item label {
  display: flex !important;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  margin: 0 !important;
  padding: 16px !important;
  background: transparent !important;
  cursor: pointer;
  font-family: inherit;
}
.am-cart > .am-cart-checkout .am-cart-checkout-paysys-item input[type="radio"] {
  appearance: auto !important;
  display: block !important;
  position: static !important;
  float: none !important;
  flex: 0 0 17px;
  width: 17px !important;
  height: 17px !important;
  min-width: 17px;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #df8618;
  cursor: pointer;
}
.am-cart > .am-cart-checkout .am-cart-checkout-paysys-item label > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  position: static !important;
}
.am-cart > .am-cart-checkout .am-cart-checkout-paysys-item label > div::after { content: none !important; }
.am-cart > .am-cart-checkout .am-cart-checkout-paysys-item-title,
.am-cart > .am-cart-checkout .am-cart-checkout-paysys-item-title strong {
  color: #23354d !important;
  font-weight: 650 !important;
  font-size: 14px !important;
  line-height: 1.4;
}
.am-cart > .am-cart-checkout .am-cart-checkout-paysys-item-description {
  display: block;
  color: #738297 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.5;
  white-space: normal;
}

/* Live order summary: AJAX coupon response can replace its INNER HTML safely. */
.am-cart > .am-cart-checkout #order-summary-wrapper {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  min-width: 0;
  margin: 0;
  padding: 20px 19px;
  border: 1px solid var(--wco-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(35, 56, 83, .038);
}
.am-cart > .am-cart-checkout #order-summary-wrapper::before {
  content: 'Order Summary';
  display: block;
  margin-bottom: 14px;
  color: var(--wco-ink-strong);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.015em;
}
.am-cart > .am-cart-checkout #order-summary-wrapper table.am-basket {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-collapse: collapse;
  table-layout: auto;
  background: transparent !important;
}
.am-cart > .am-cart-checkout #basket :is(th, td) {
  box-sizing: border-box;
  vertical-align: middle;
  font-family: inherit;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
}
.am-cart > .am-cart-checkout #basket .am-basket-row-head th {
  padding: 8px 0 11px !important;
  background: transparent !important;
  border-top: 0 !important;
  border-bottom: 1px solid #edf0f5 !important;
  color: #8190a1 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.am-cart > .am-cart-checkout #basket .am-basket-price,
.am-cart > .am-cart-checkout #basket th.am-basket-price {
  text-align: right !important;
  white-space: nowrap;
}
.am-cart > .am-cart-checkout #basket tr.am-basket-row td {
  padding: 16px 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.am-cart > .am-cart-checkout #basket td.am-basket-title-col {
  overflow: hidden;
  min-width: 0;
  color: #283950 !important;
}
.am-cart > .am-cart-checkout #basket .am-basket-img {
  float: left !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px !important;
  height: 62px !important;
  margin: 0 11px 3px 0 !important;
  padding: 5px;
  overflow: hidden;
  background: #f5f8fb;
  border: 1px solid #edf1f5;
  border-radius: 12px;
}
.am-cart > .am-cart-checkout #basket .am-basket-img img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  border-radius: 8px;
}
.am-cart > .am-cart-checkout #basket .am-basket-title {
  margin: 2px 0 4px;
  color: #203047;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.am-cart > .am-cart-checkout #basket .am-basket-title strong { font-weight: 650; }
.am-cart > .am-cart-checkout #basket .am-basket-desc {
  color: #7a899d;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.am-cart > .am-cart-checkout #basket tr.am-basket-row td.am-basket-price {
  color: #263951 !important;
  font-size: 12px;
  font-weight: 650;
  padding-left: 9px !important;
  vertical-align: top !important;
}
.am-cart > .am-cart-checkout #basket .am-basket-row-divider td {
  padding: 0 !important;
  height: 0 !important;
  border-bottom: 1px solid #ebeff5 !important;
}
.am-cart > .am-cart-checkout #basket tr.am-basket-totals td {
  padding: 17px 0 3px !important;
  border: none !important;
  color: #28374d;
  font-size: 14px;
  font-weight: 650;
  background: transparent !important;
}
.am-cart > .am-cart-checkout #basket tr.am-basket-totals .am-basket-total {
  color: #1d3047 !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  text-align: right;
  white-space: nowrap;
}

/* Coupon: keep native markup and aMember AJAX handlers. */
.am-cart > .am-cart-checkout > div:first-child > h2 {
  grid-column: 1;
  grid-row: 2;
  margin: 0 !important;
  padding: 20px 23px 7px !important;
  background: #fff;
  border: 1px solid var(--wco-line) !important;
  border-bottom: 0 !important;
  border-radius: 18px 18px 0 0;
  color: var(--wco-ink-strong) !important;
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 650 !important;
  line-height: 1.4;
}
.am-cart > .am-cart-checkout .am-cart-checkout-c {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  margin: 0;
  padding: 6px 23px 21px !important;
  border: 1px solid var(--wco-line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(35, 56, 83, .035);
}
.am-cart > .am-cart-checkout .am-cart-checkout-c-input {
  display: flex;
  align-items: stretch;
  gap: 9px;
  min-width: 0;
}
.am-cart > .am-cart-checkout .am-cart-checkout-c-input input[name="coupon"] {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: 100% !important;
  height: 42px;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 1px solid #dce5ef !important;
  border-radius: 10px !important;
  background: #f9fbfd !important;
  color: #263950 !important;
  font-family: inherit;
  font-size: 13px;
  box-shadow: none !important;
}
.am-cart > .am-cart-checkout .am-cart-checkout-c-apply {
  flex: 0 0 auto;
  min-width: 78px;
  height: 42px;
  margin: 0 !important;
  padding: 8px 15px !important;
  border: 1px solid #d7e0ea !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #263b53 !important;
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 650 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 6px rgba(20, 40, 64, .045) !important;
  cursor: pointer;
}
.am-cart > .am-cart-checkout .am-cart-checkout-c-apply:hover {
  background: #f4f7fb !important;
  border-color: #afbdcc !important;
}
.am-cart > .am-cart-checkout .am-cart-checkout-c-preview a {
  color: #d77f15 !important;
  font-weight: 650;
}
.am-cart > .am-cart-checkout #ps-errors-container .errors,
.am-cart > .am-cart-checkout #coupon-errors-container .errors {
  margin: 9px 0;
  padding: 10px 12px;
  border: 1px solid #f4cdcd;
  border-radius: 10px;
  background: #fff5f5;
  color: #9c3434;
  font-size: 12px;
}

/* The aMember SUBMIT FORM is a sibling of .am-cart-checkout (not its child).
   Scope form styles to .am-cart that contains the checkout widget. */
.am-cart:has(> .am-cart-checkout) > form,
.am-cart:has(> .am-cart-checkout) > form * { box-sizing: border-box; }
.am-cart:has(> .am-cart-checkout) > form {
  display: block;
  width: calc(100% - 380px);
  max-width: 830px;
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
}
.am-cart:has(> .am-cart-checkout) > form .am-cart-checkout-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.am-cart:has(> .am-cart-checkout) > form .am-cart-checkout-buttons :is(.am-cart-checkout-buttons-checkout, .am-cart-checkout-buttons-update) {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  height: 44px;
  margin: 0 !important;
  padding: 0 19px !important;
  border-radius: 10px !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.2;
  text-align: center;
  text-shadow: none !important;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.am-cart:has(> .am-cart-checkout) > form .am-cart-checkout-buttons-checkout {
  min-width: 205px;
  background: #293d55 !important;
  border: 1px solid #293d55 !important;
  color: #fff !important;
  box-shadow: 0 5px 13px rgba(35, 57, 84, .13) !important;
}
.am-cart:has(> .am-cart-checkout) > form .am-cart-checkout-buttons-checkout:hover {
  background: #1b3049 !important;
  border-color: #1b3049 !important;
  box-shadow: 0 7px 17px rgba(35, 57, 84, .19) !important;
}
.am-cart:has(> .am-cart-checkout) > form .am-cart-checkout-buttons-update {
  min-width: 144px;
  background: #fff !important;
  border: 1px solid #d4dfea !important;
  color: #293d55 !important;
  box-shadow: 0 3px 10px rgba(20, 42, 70, .055) !important;
}
.am-cart:has(> .am-cart-checkout) > form .am-cart-checkout-buttons-update:hover {
  background: #f5f8fb !important;
  border-color: #bbcbd9 !important;
}
.am-cart > .am-cart-checkout :is(input, button, a):focus-visible,
.am-cart > .am-cart-checkout .am-cart-checkout-paysys-item:focus-within {
  outline: 2px solid #ee9a36 !important;
  outline-offset: 2px;
}

/* Responsive: order summary first, then payment selection & coupon. */
@media (max-width: 1150px) {
  .am-cart > .am-cart-checkout > div:first-child {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    row-gap: 0;
  }
  .am-cart > .am-cart-checkout #order-summary-wrapper {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 16px;
  }
  .am-cart > .am-cart-checkout #choose-paysys-wrapper {
    grid-column: 1;
    grid-row: 2;
  }
  .am-cart > .am-cart-checkout > div:first-child > h2 {
    grid-column: 1;
    grid-row: 3;
  }
  .am-cart > .am-cart-checkout .am-cart-checkout-c {
    grid-column: 1;
    grid-row: 4;
  }
  .am-cart:has(> .am-cart-checkout) > form { width: 100%; max-width: none; }
}
@media (max-width: 640px) {
  .am-cart > .am-cart-checkout::before { font-size: 22px; margin-bottom: 13px; }
  .am-cart > .am-cart-checkout #choose-paysys-wrapper { padding: 17px; border-radius: 15px; }
  .am-cart > .am-cart-checkout #order-summary-wrapper { padding: 16px; border-radius: 15px; }
  .am-cart > .am-cart-checkout > div:first-child > h2 { padding: 17px 17px 7px !important; border-radius: 15px 15px 0 0; }
  .am-cart > .am-cart-checkout .am-cart-checkout-c { padding: 6px 17px 17px !important; border-radius: 0 0 15px 15px; }
  .am-cart > .am-cart-checkout #basket .am-basket-img { width: 52px !important; height: 52px !important; margin-right: 9px !important; }
  .am-cart:has(> .am-cart-checkout) > form .am-cart-checkout-buttons :is(.am-cart-checkout-buttons-checkout, .am-cart-checkout-buttons-update) {
    flex: 1 1 100%; width: 100% !important; min-width: 0 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .am-cart > .am-cart-checkout .am-cart-checkout-paysys-item,
  .am-cart:has(> .am-cart-checkout) > form .am-cart-checkout-buttons input { transition: none !important; }
}



/* =====================================
   WEBTOOLSBD CHECKOUT TOTAL ALIGN FIX
===================================== */

/* Total label - Left */
.am-cart > .am-cart-checkout
#order-summary-wrapper #basket
tr.am-basket-totals-granttotal td:first-child {
    display: table-cell !important;
    float: none !important;
    text-align: left !important;
    vertical-align: middle !important;
    padding: 17px 12px 5px 0 !important;

    color: #526176 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Total Price - Right */
.am-cart > .am-cart-checkout
#order-summary-wrapper #basket
tr.am-basket-totals-granttotal td.am-basket-total {
    display: table-cell !important;
    float: none !important;
    text-align: right !important;
    vertical-align: middle !important;

    padding: 17px 0 5px 16px !important;
    white-space: nowrap !important;

    color: #1d3047 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}





/* WebToolsBD - Order Summary Description Fix */

.am-cart-checkout #order-summary-wrapper
.am-basket-row .am-basket-desc {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    max-height: 4.5em !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}












/* ================================================================
   WEBTOOLSBD - LARGE PACKAGE IMAGES | aMember Pro Cart
   Paste AFTER wtbd-cart-modern.css and other cart overrides.
   ONLY affects package cards (identified by existing .pkgCls marker)
   that have an actual aMember product listing image (img_path).
   Original pricing, plan selection, buttons and single tools untouched.
   ================================================================ */

/* Image + description in two columns, without editing the product template. */
.am-cart:has(.am-cart-layout-product-list)
.am-cart-product.am-cart-product-brief:has(.pkgCls)
.am-cart-product-content-desc:has(> .am-cart-product-content-desc-img-wrapper) {
    --wtbd-pkg-img: 140px;
    display: grid !important;
    grid-template-columns: var(--wtbd-pkg-img) minmax(0, 1fr) !important;
    grid-template-rows: auto min-content;
    align-content: start !important;
    align-items: start !important;
    justify-content: stretch !important;
    column-gap: 14px !important;
    row-gap: 8px !important;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 170px !important;
    max-height: none !important;
    padding: 12px !important;
    overflow: visible !important;
}

/* Bigger premium package thumbnail. */
.am-cart:has(.am-cart-layout-product-list)
.am-cart-product.am-cart-product-brief:has(.pkgCls)
.am-cart-product-content-desc > .am-cart-product-content-desc-img-wrapper {
    box-sizing: border-box !important;
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: none !important;
    float: none !important;
    width: var(--wtbd-pkg-img) !important;
    min-width: 0 !important;
    max-width: var(--wtbd-pkg-img) !important;
    height: var(--wtbd-pkg-img) !important;
    min-height: 0 !important;
    max-height: var(--wtbd-pkg-img) !important;
    margin: 0 !important;
    padding: 6px !important;
    border: 1px solid #e5ebf2 !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(30, 48, 75, .045) !important;
    overflow: hidden !important;
}

.am-cart:has(.am-cart-layout-product-list)
.am-cart-product.am-cart-product-brief:has(.pkgCls)
.am-cart-product-content-desc-img-wrapper > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.am-cart:has(.am-cart-layout-product-list)
.am-cart-product.am-cart-product-brief:has(.pkgCls)
.am-cart-product-content-desc-img-wrapper img {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 8px !important;
}

/* Keep the existing feature list and "See All Tools" next to the image. */
.am-cart:has(.am-cart-layout-product-list)
.am-cart-product.am-cart-product-brief:has(.pkgCls)
.am-cart-product-content-desc:has(> .am-cart-product-content-desc-img-wrapper)
> .am-cart-product-content-desc-short {
    box-sizing: border-box !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    align-self: start !important;
}

.am-cart:has(.am-cart-layout-product-list)
.am-cart-product.am-cart-product-brief:has(.pkgCls)
.am-cart-product-content-desc:has(> .am-cart-product-content-desc-img-wrapper)
> .am-desc-toggle {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    align-self: start !important;
    margin: 2px 0 0 !important;
}

/* Expanded list may grow naturally; don't introduce an inner scrollbar. */
.am-cart:has(.am-cart-layout-product-list)
.am-cart-product.am-cart-product-brief:has(.pkgCls)
.am-cart-product-content-desc:has(> .am-cart-product-content-desc-img-wrapper)
> .am-cart-product-content-desc-short.am-desc-expanded {
    display: block !important;
    -webkit-line-clamp: unset !important;
    flex: 0 1 auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Narrow screens: still side-by-side, with an image that fits. */
@media (max-width: 560px) {
    .am-cart:has(.am-cart-layout-product-list)
    .am-cart-product.am-cart-product-brief:has(.pkgCls)
    .am-cart-product-content-desc:has(> .am-cart-product-content-desc-img-wrapper) {
        --wtbd-pkg-img: 102px;
        column-gap: 10px !important;
        row-gap: 6px !important;
        min-height: 128px !important;
        padding: 10px !important;
    }
}

@media (max-width: 350px) {
    .am-cart:has(.am-cart-layout-product-list)
    .am-cart-product.am-cart-product-brief:has(.pkgCls)
    .am-cart-product-content-desc:has(> .am-cart-product-content-desc-img-wrapper) {
        --wtbd-pkg-img: 88px;
        column-gap: 8px !important;
        padding: 8px !important;
    }
}







/* =====================================================================
   WEBTOOLSBD - PACKAGE DETAILS IMAGE FIX v1.0
   For: /cart/index/product/id/...  (single PRODUCT DETAILS page)
   Based on cart/views/blocks/product.phtml + cart/views/public/css/cart.css

   - Package ONLY: product description contains <span class="pkgCls">Package</span>
   - Replaces aMember's full-width gray image strip with a 240px image card.
   - Long description flows beside/below the photo naturally, NO scrollbar.
   - Does not affect single tools, product listings, price or checkout.
   Paste at the very END of your already loaded wtbd-cart-modern.css.
   ===================================================================== */

/* Product detail description wraps around the large package image. */
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-desc {
    display: flow-root !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 10px 0 20px !important;
    padding: 6px 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

/* Override native float:none + full width + gray background. */
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-desc > .am-cart-product-content-desc-img-wrapper {
    box-sizing: border-box !important;
    float: left !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 240px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 240px !important;
    min-height: 0 !important;
    margin: 0 22px 14px 0 !important;
    padding: 14px !important;
    text-align: center !important;
    border: 1px solid #e1e8f0 !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
    box-shadow: 0 4px 16px rgba(31, 49, 74, .055) !important;
    overflow: hidden !important;
}

/* Show complete package art without cutting off edges. */
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-desc-img-wrapper > img.am-cart-product-content-desc-img {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px !important;
}

/* Native rule has clear:both; remove it so features appear NEXT to image. */
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-desc > .am-cart-product-content-desc-full {
    display: block !important;
    clear: none !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    overflow: visible !important;
}

/* Small screens: centered large image above the normal description. */
@media (max-width: 740px) {
    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-desc > .am-cart-product-content-desc-img-wrapper {
        float: none !important;
        width: 220px !important;
        height: 220px !important;
        max-width: 100% !important;
        margin: 0 auto 18px !important;
        padding: 12px !important;
    }
}

@media (max-width: 380px) {
    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-desc > .am-cart-product-content-desc-img-wrapper {
        width: 190px !important;
        height: 190px !important;
    }
}

/* Keep package classification in the DOM for CSS, but hide it from the description. */
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-desc span.pkgCls {
    display: none !important;
}




/* =============================================================
   WebToolsBD - Package Details: TEXT LEFT, IMAGE RIGHT
   Add AFTER wtbd-package-product-details-image-fix.css.
   Works only for full package details (.pkgCls); no other pages.
   This is layout-only; billing, basket, checkout stay unchanged.
   ============================================================= */

@media (min-width: 741px) {
    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-desc > .am-cart-product-content-desc-img-wrapper {
        float: right !important;
        width: 240px !important;
        height: 240px !important;
        margin: 0 0 18px 24px !important;
    }
}

/* On phones keep the image centered above the tools list. */
@media (max-width: 740px) {
    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-desc > .am-cart-product-content-desc-img-wrapper {
        float: none !important;
        margin: 0 auto 18px !important;
    }
}


.am-cart-product-content.am-cart-product-content-details {
    padding: 2rem !important;
    border-radius: 18px;
}





















/* ========================================================================
   WEBTOOLSBD - PROFESSIONAL PACKAGE DETAILS v3
   Fixes the huge middle blank area on single PACKAGE details pages.
   - Text left, product image right
   - Long built-in aMember product descriptions flow into 2-3 columns
   - No scroll area, no text hidden
   - Native price, billing plan, basket and quick-order are untouched
   - Single tools, package LISTING cards, and checkout are unaffected

   Place AFTER all older package image-fix/right-image CSS overrides.
   Package is detected using the existing <span class="pkgCls"> marker.
   ======================================================================== */

/* Consistent clean product detail appearance */
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls) {
    --wtbd-detail-ink: #26394f;
    --wtbd-detail-subtle: #65758b;
    --wtbd-detail-border: #e4eaf1;
    --wtbd-detail-bg: #f8fafc;
    box-sizing: border-box;
}

.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    overflow: visible !important;
    padding-bottom: 16px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid var(--wtbd-detail-border) !important;
}

.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-title h2 {
    float: none !important;
    color: var(--wtbd-detail-ink) !important;
    font-size: clamp(19px, 1.55vw, 24px) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* A small neutral tag complements the title instead of extra orange panels. */
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-title::after {
    content: "PREMIUM PACKAGE";
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid #e9e2da;
    border-radius: 999px;
    background: #f8f6f3;
    color: #7a6a58;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .04em;
    line-height: 1.2;
}

/* Restore the image/description panel from older float fixes */
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-desc {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 0 18px !important;
    background: transparent !important;
    border: 0 !important;
    overflow: visible !important;
}

/* The package picture is a quiet separate premium card */
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-desc > .am-cart-product-content-desc-img-wrapper {
    box-sizing: border-box !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid #e1e8f0 !important;
    border-radius: 18px !important;
    background: linear-gradient(150deg,#ffffff,#f5f8fc) !important;
    box-shadow: 0 6px 22px rgba(29, 50, 77, .065) !important;
    overflow: hidden !important;
    text-align: center !important;
}

.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-desc-img-wrapper > img.am-cart-product-content-desc-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px !important;
}

/* The entire feature list is shown: no height clamp, hidden text or scroll. */
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-desc > .am-cart-product-content-desc-full {
    box-sizing: border-box !important;
    display: block !important;
    clear: none !important;
    float: none !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 20px 22px !important;
    margin: 0 !important;
    border: 1px solid var(--wtbd-detail-border) !important;
    border-radius: 16px !important;
    background: var(--wtbd-detail-bg) !important;
    color: #4d6076 !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.9 !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
}

.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-desc-full b,
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-desc-full strong {
    color: #253950 !important;
    font-weight: 700 !important;
}

/* Keep the package marker in the DOM for :has() detection. */
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
span.pkgCls {
    display: none !important;
}

/* Desktop: features occupy the central gap; artwork stays on the right. */
@media (min-width: 1381px) {
    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-desc:has(> .am-cart-product-content-desc-img-wrapper) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 285px !important;
        column-gap: 22px !important;
        align-items: start !important;
    }

    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-desc > .am-cart-product-content-desc-full {
        grid-area: 1 / 1 !important;
        columns: 3 215px !important; /* 2 or 3 columns depending on space */
        column-gap: 28px !important;
        column-rule: 1px solid #e6ebf2 !important;
        column-fill: balance !important;
    }

    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-desc > .am-cart-product-content-desc-img-wrapper {
        grid-area: 1 / 2 !important;
        width: 285px !important;
        max-width: 100% !important;
        align-self: start !important;
    }
}

/* Laptop/tablet: stack a centered visual and a multi-column feature panel.
   This avoids a thin 1000px-tall text column when the cart sidebar is present. */
@media (min-width: 901px) and (max-width: 1380px) {
    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-desc:has(> .am-cart-product-content-desc-img-wrapper) {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-desc > .am-cart-product-content-desc-img-wrapper {
        order: 0 !important;
        width: 235px !important;
        max-width: 100% !important;
        align-self: center !important;
    }

    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-desc > .am-cart-product-content-desc-full {
        order: 1 !important;
        columns: 2 245px !important;
        column-gap: 25px !important;
        column-rule: 1px solid #e6ebf2 !important;
    }
}

/* On narrow screens: image first, then readable full tool list. */
@media (max-width: 900px) {
    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-desc:has(> .am-cart-product-content-desc-img-wrapper) {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        align-items: stretch !important;
    }

    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-desc > .am-cart-product-content-desc-img-wrapper {
        order: 0 !important;
        align-self: center !important;
        flex: 0 0 auto !important;
        width: min(270px, 100%) !important;
        height: auto !important;
    }

    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-desc > .am-cart-product-content-desc-full {
        order: 1 !important;
        columns: 1 !important;
        padding: 16px !important;
        font-size: 13px !important;
        line-height: 1.82 !important;
    }
}

/* Simple, well-aligned purchase area; preserves original form controls. */
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-add-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: end !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    clear: both !important;
    margin: 18px 0 0 !important;
    padding: 15px 17px !important;
    border: 1px solid #e5ebf2 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
}

.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-status:not(:empty) {
    flex-basis: 100% !important;
    margin: 0 !important;
}

.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-status:empty {
    display: none !important;
}

.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-terms {
    flex: 1 1 220px !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #293c53 !important;
}

/* Clear price label for both fixed-price and dropdown billing plans. */
.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-terms::before {
    content: "PRICE / PLAN";
    display: block;
    margin: 0 0 5px;
    color: #8a99ab;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-terms select.billing-plan-select {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    padding: 8px 12px !important;
    border: 1px solid #dce5ef !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #263950 !important;
}

.am-cart-layout-product
.am-cart-product.am-cart-product-full:has(.pkgCls)
.am-cart-product-content-buttons {
    display: flex !important;
    flex: 0 1 375px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 !important;
}

@media (max-width: 620px) {
    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-terms,
    .am-cart-layout-product
    .am-cart-product.am-cart-product-full:has(.pkgCls)
    .am-cart-product-content-buttons {
        flex-basis: 100% !important;
        width: 100% !important;
    }
}

.am-cart-product-content-title::before {
    content: "";
    position: absolute;
    font-size: 1.1rem;
    margin-top: 2px;
}

