.no-close .ui-dialog-titlebar-close {
    display: none;
}

.buttons-centered .ui-dialog-buttonpane .ui-dialog-buttonset {
    float: none;
}

.buttons-centered .ui-dialog-buttonpane {
    text-align: center;
}

/* Make container full width on home page only */
body.home .container {
    max-width: none;
}

/* ============================================================
 * Product listing cards (/products page, products_list.tpl)
 *
 * Scoped to .all-products-page so this never bleeds into other
 * pages that happen to reuse the same .products-list markup.
 *
 * Lives here (not in scss/) because the project has no SCSS
 * build pipeline in-repo - altskin.css is pre-built externally,
 * and custom.css is loaded right after it in service_css.tpl,
 * which makes this the right home for new overrides.
 * ============================================================ */

.all-products-page .results-found {
    font-size: 14px;
    color: #808080;
    margin: 8px 0 16px;
}

.all-products-page .products-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.all-products-page .products-list .item {
    display: flex;
    align-items: stretch;
    background-color: #ffffff;
    padding: 24px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.all-products-page .products-list .item:hover {
    box-shadow: 4px 4px 20px 0 rgba(0, 0, 0, 0.08);
}

/* Override inline width="XXXpx" set from product tmbn dims */
.all-products-page .products-list .item > .image {
    width: 200px !important;
    flex: 0 0 200px;
    margin: 0 28px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.all-products-page .products-list .item > .image > a:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    background-color: #eeeded;
    border-radius: 5px;
    overflow: hidden;
}

.all-products-page .products-list .item > .image img {
    /* Defeat width=/height= attributes from the template */
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.all-products-page .products-list .item > .image .see-details {
    display: inline-block;
    margin-top: 14px;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #808080;
    text-decoration: none;
}

.all-products-page .products-list .item > .image .see-details:hover {
    color: #00a3de;
}

/* Override inline margin-left:XXXpx set from product tmbn dims */
.all-products-page .products-list .item > .details {
    margin: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.all-products-page .products-list .item .clearing {
    display: none;
}

.all-products-page .products-list .item .details .product-title {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #00a3de;
    text-decoration: none;
    margin: 0 0 12px;
}

.all-products-page .products-list .item .details .product-title:hover {
    color: #5fc4e1;
}

.all-products-page .products-list .item .details .descr {
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    margin: 0 0 16px;
}

.all-products-page .products-list .item .details hr {
    border: 0;
    border-top: 1px solid #e6e6e6;
    margin: 8px 0 16px;
}

/* The outer "Our price: $X" row from products_list.tpl */
.all-products-page .products-list .item .details > .price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 16px;
    font-size: 14px;
    color: #808080;
}

.all-products-page .products-list .item .details > .price-row .price {
    font-weight: 600;
    color: #333333;
}

.all-products-page .products-list .item .details > .price-row .price-value {
    color: #333333;
    font-weight: bold;
    font-size: 16px;
}

.all-products-page .products-list .item .details > .price-row .price-value .currency {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
}

.all-products-page .products-list .item .details > .price-row .market-price {
    display: none;
}

/* Buy-now block (price + qty stepper + Add to/More button) */
.all-products-page .products-list .item .buy-now {
    margin-top: auto;
}

.all-products-page .products-list .item .buy-now form {
    display: block;
    margin: 0;
}

.all-products-page .products-list .item .buy-now .buy-box.buy-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 0;
}

.all-products-page .products-list .item .buy-now .order-rows {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    max-width: none;
}

.all-products-page .products-list .item .buy-now .order-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.all-products-page .products-list .item .buy-now .price-cell {
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    line-height: 1;
    text-align: left;
}

.all-products-page .products-list .item .buy-now .price-cell .price-row {
    margin: 0;
    text-align: left;
}

.all-products-page .products-list .item .buy-now .price-cell .price-value {
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 26px;
    line-height: 1;
    color: #00a3de;
}

.all-products-page .products-list .item .buy-now .price-cell .market-price {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #b2b2b2;
}

/* Quantity stepper: [-] [ 1 ] [+] */
.all-products-page .products-list .item .buy-now .qty {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #eeeded;
    border-radius: 28px;
    padding: 4px;
    margin: 0;
}

.all-products-page .products-list .item .buy-now .qty button[data-js="qty-change"] {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #ffffff;
    color: #00a3de;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.all-products-page .products-list .item .buy-now .qty button[data-js="qty-change"]:hover {
    background-color: #00a3de;
    color: #ffffff;
}

.all-products-page .products-list .item .buy-now .qty button[data-js="qty-change"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 163, 222, 0.3);
}

.all-products-page .products-list .item .buy-now .qty button[data-js="qty-change"] i {
    font-size: 12px;
}

.all-products-page .products-list .item .buy-now .qty input[name="amount"] {
    width: 48px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: center;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    appearance: textfield;
    -moz-appearance: textfield;
}

.all-products-page .products-list .item .buy-now .qty input[name="amount"]:focus {
    outline: none;
}

.all-products-page .products-list .item .buy-now .qty input[name="amount"]::-webkit-outer-spin-button,
.all-products-page .products-list .item .buy-now .qty input[name="amount"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.all-products-page .products-list .item .buy-now .order-submit {
    flex: 0 0 auto;
    margin: 0;
}

.all-products-page .products-list .item .buy-now .order-submit .button {
    white-space: nowrap;
    height: 48px;
    padding: 14px 28px;
    font-size: 14px;
}

/* Tablet: keep image-left layout but let the buy-box stack
 * its button below the price + stepper instead of side-by-side. */
@media screen and (max-width: 1023px) {
    .all-products-page .products-list .item .buy-now .buy-box.buy-item {
        flex-direction: column;
        align-items: stretch;
    }

    .all-products-page .products-list .item .buy-now .order-row {
        justify-content: space-between;
    }

    .all-products-page .products-list .item .buy-now .order-submit .button {
        width: 100%;
        text-align: center;
    }
}

/* Mobile: stack the image above the details. */
@media screen and (max-width: 600px) {
    .all-products-page .products-list .item {
        flex-direction: column;
    }

    .all-products-page .products-list .item > .image {
        width: 100% !important;
        flex-basis: auto;
        margin: 0 0 20px;
    }

    .all-products-page .products-list .item > .image > a:first-child {
        height: 240px;
    }
}

/* ============================================================
 * New product detail page  (design.webp two-column layout)
 *
 * Default layout for every product. A product id can be opted
 * back into the old layout via $legacy_design_productids in
 * product.php (then product_legacy.tpl renders instead).
 *
 * The wrapper carries BOTH .product-details (kept for the ajax
 * add-to-cart hook) and .product-new. Selectors use
 * .product-details.product-new where they must beat altskin's
 * base .product-details rules.
 * ============================================================ */

.product-details.product-new {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    float: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 0 48px;
    font-family: 'Raleway', Arial, Helvetica, sans-serif;
}

/* ---- Left column: media ---- */
.product-new .product-new__media {
    min-width: 0;
}

.product-new .product-new__media .image-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f3f3;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    /* padding: 32px; */
    min-height: 360px;
    box-sizing: border-box;
}

.product-new .product-new__media .image-box img,
.product-new .product-new__media #product_thumbnail {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 460px;
    display: block;
    border: 0;
    border-radius: 4px;
    cursor: default;
    box-sizing: border-box;
}

.product-new .product-new__partners {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 22px;
}

.product-new .product-new__partners img {
    display: block;
    height: 150px;
    width: auto;
}

/* ---- Right column: info ---- */
.product-new .product-new__info {
    min-width: 0;
}

.product-new .product-new__title {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: #2b2b2b;
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e6e6e6;
}

/* ---- Purchase form: collapse the option <table> into blocks ---- */
.product-new .product-new__purchase form {
    margin: 0;
}

.product-new .product-new__purchase .product-properties,
.product-new .product-new__purchase .product-properties tbody,
.product-new .product-new__purchase .product-properties tr,
.product-new .product-new__purchase .product-properties td {
    display: block;
    width: auto;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    margin: 0;
}

/* Hide the generic heading + meta rows the design doesn't show */
.product-new .product-new__purchase .product-properties .product-subtitle,
.product-new .product-new__purchase .product-properties #product_weight_box,
.product-new .product-new__purchase .product-properties #list_price_container,
.product-new .product-new__purchase .product-properties tr:has(> td.property-name) {
    display: none;
}

.product-new .product-new__purchase td.property-value {
    margin: 0 0 18px;
}

.product-new .product-new__purchase .option-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 7px;
}

.product-new .product-new__purchase .option-label label {
    flex: 0 1 auto;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b6b6b;
    margin: 0;
    display: inline;
}

.product-new .product-new__purchase .option-label .required {
    color: #d81f84;
    margin-left: 3px;
}

.product-new .product-new__purchase .option-label .note {
    font-size: 12px;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
    color: #9a9a9a;
}

.product-new .product-new__purchase .option-label .note a {
    color: #00a3de;
}

.product-new .product-new__purchase .option-label i {
    font-size: 15px;
    color: #b2b2b2;
    cursor: help;
}

/* Form controls */
.product-new .product-new__purchase select,
.product-new .product-new__purchase input[type="text"],
.product-new .product-new__purchase input[type="number"],
.product-new .product-new__purchase textarea {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background-color: #fff;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.product-new .product-new__purchase textarea {
    height: auto;
    min-height: 88px;
}

.product-new .product-new__purchase select {
    padding-right: 38px;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b6b6b' stroke-width='1.5' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.product-new .product-new__purchase select:focus,
.product-new .product-new__purchase input[type="text"]:focus,
.product-new .product-new__purchase input[type="number"]:focus,
.product-new .product-new__purchase textarea:focus {
    outline: none;
    border-color: #00a3de;
    box-shadow: 0 0 0 3px rgba(0, 163, 222, 0.15);
}

/* Price (td.price-row beats the generic ".product-properties td { margin:0 }") */
.product-new .product-new__purchase .product-properties td.price-row {
    margin: 30px 0 0;
}

.product-new .product-new__purchase .price-box {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
}

.product-new .product-new__purchase .price-box::before {
    display: none;
}

.product-new .product-new__purchase .price-box .product-price-value,
.product-new .product-new__purchase .price-box .product-price-value .currency {
    font-family: inherit;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    color: #00a3de;
}

.product-new .product-new__purchase input[name="price"] {
    max-width: 150px;
}

/* Quantity stepper */
.product-new .product-new__purchase .product-properties td.quantity-row {
    margin: 24px 0 0;
}

.product-new .product-new__purchase .qtysurround {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    margin: 0;
    padding: 4px;
    background-color: #eeeded;
    border-radius: 30px;
    font-size: 16px;
}

.product-new .product-new__purchase .qtysurround .qtychange {
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 50%;
    background-color: #fff;
    color: #00a3de;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.product-new .product-new__purchase .qtysurround .qtychange:hover {
    background-color: #00a3de;
    color: #fff;
}

.product-new .product-new__purchase .qtysurround .qtychange i {
    font-size: 12px;
}

.product-new .product-new__purchase .qtysurround input[name="amount"] {
    width: 52px;
    height: 38px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #333;
}

.product-new .product-new__purchase .qtysurround input[name="amount"]:focus {
    outline: none;
    border: 0;
    box-shadow: none;
}

.product-new .product-new__purchase .product-one-quantity {
    font-weight: 700;
    font-size: 16px;
}

/* Add to cart */
.product-new .product-new__purchase .simple-list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}

.product-new .product-new__purchase .simple-list,
.product-new .product-new__purchase .simple-list > li,
.product-new .product-new__purchase .buttons-row {
    display: block;
    width: 100%;
    float: none;
}

/* Don't zero the .simple-list top margin set above - only the inner wrappers. */
.product-new .product-new__purchase .simple-list > li,
.product-new .product-new__purchase .buttons-row {
    margin: 0;
}

.product-new .product-new__purchase .add-to-cart-button.button {
    display: block;
    width: 100%;
    float: none;
    box-sizing: border-box;
    text-align: center;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 8px;
}

/* Shipping note */
.product-new .product-new__shipping {
    display: flex;
    align-items: center;
    gap: 8px;
    clear: both;
    margin: 16px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #d81f84;
}

.product-new .product-new__shipping i {
    font-size: 16px;
}

/* Accordions */
.product-new .product-new__accordions {
    margin-top: 30px;
    border-top: 1px solid #e6e6e6;
}

.product-new .product-accordion {
    border-bottom: 1px solid #e6e6e6;
}

.product-new .product-accordion__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 2px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2b2b2b;
    text-align: left;
}

.product-new .product-accordion__head i {
    color: #00a3de;
    font-size: 16px;
    transition: transform 0.25s ease;
}

.product-new .product-accordion.is-open .product-accordion__head i {
    transform: rotate(180deg);
}

/* Body visibility is driven entirely by jQuery slideToggle (inline display).
 * is-open is used only for the chevron rotation, so the two never fight. */
.product-new .product-accordion__body {
    display: none;
    padding: 0 2px 22px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.product-new .product-accordion__body.delivery-box {
    background: none;
    border: 0;
    padding: 0 2px 22px;
}

.product-new .product-accordion__body.delivery-box::before {
    display: none;
}

.product-new .product-accordion__body h3,
.product-new .product-accordion__body h4 {
    font-size: 15px;
    margin: 14px 0 6px;
    color: #2b2b2b;
}

.product-new .product-accordion__body > :first-child {
    margin-top: 0;
}

.product-new .product-accordion__body ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style: none;
}

.product-new .product-accordion__body li {
    margin: 4px 0;
}

.product-new .product-accordion__body a {
    color: #00a3de;
}

/* Tablet / mobile: single column */
@media screen and (max-width: 900px) {
    .product-details.product-new {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-new .product-new__title {
        font-size: 26px;
    }

    .product-new .product-new__media .image-box {
        min-height: 280px;
    }
}

/* 2026-11-02: hide the single-choice "Fly Screen/ Remesh" option on the kit page (its value is still submitted) */
#product-details-id tr:has(#po525) { display: none; }

/* 2026-11-02: hide the stock range hint "(from 1 to N)" next to the quantity box */
#product_avail_text { display: none !important; }
