/* Audio System Builder Pro frontend stylesheet */
:root {
    --asb-primary: #075bb5;
    --asb-primary-dark: #064991;
    --asb-accent: #df252b;
    --asb-text: #202b3a;
    --asb-text-muted: #64748b;
    --asb-bg-card: #fff;
    --asb-bg-modal: #fff;
    --asb-border: #e1e7ef;
    --asb-cart-btn: #16845b;
    --asb-pdf-btn: #075bb5;
    --asb-radius: 12px;
    --asb-spacing: 14px;
    --asb-shadow: 0 5px 18px rgba(15, 23, 42, .07);
    --asb-transition: .2s ease;
    --asb-card-min-h: 320px;
    --asb-modal-max-w: 1100px;
    --asb-modal-h: 86vh;
}

.asb-wrapper,
.asb-wrapper *,
.asb-modal-overlay,
.asb-modal-overlay *,
.asb-variation-picker,
.asb-variation-picker * {
    box-sizing: border-box;
}

/* Render shortcode interface text in lowercase with its first letter uppercase. */

.asb-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;

    color: var(--asb-text, #202b3a);
    font-family: var(--asb-font, inherit);
    font-size: calc(1em * var(--asb-font-scale, 1));
    line-height: 1.5;
    container-type: inline-size;
}

.asb-wrapper button,
.asb-modal-overlay button,
.asb-variation-picker button {
    font: inherit;
}

/* Application filters */
.asb-application-control {
    display: grid;

    margin: 0 0 18px;
}
.asb-application-heading {

    

    line-height: 1.35;
}
.asb-application-options {
    display: flex;
    flex-wrap: wrap;

}
.asb-wrapper .asb-application-option {

    margin: 0;

    border: 1px solid var(--asb-border, #d8e0ea);

    background: #fff;

    font-family: inherit;

    
    line-height: 1.3;
    text-transform: none;
    cursor: pointer;
    transition: color var(--asb-transition), background var(--asb-transition), border-color var(--asb-transition), box-shadow var(--asb-transition);
}
.asb-wrapper .asb-application-option:hover,
.asb-wrapper .asb-application-option:focus-visible {

    
    outline: none;
}

.asb-main-title {
    margin: 0 0 18px;

    font-size: clamp(20px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

/* Equipment cards */
.asb-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;

    margin: 0 0 22px;
}
.asb-card {
    position: relative;
    display: flex;
    min-width: 0;

    flex-direction: column;
    align-items: stretch;

    overflow: hidden;
    border: 1px solid var(--asb-border, #e1e7ef);

    

    text-align: center;
    transition: transform var(--asb-transition), box-shadow var(--asb-transition), border-color var(--asb-transition);
}

.asb-card-title {
    display: block;

    margin: 0;

    

    line-height: 1.3;
    text-align: center;
}
.asb-card-spacer {
    display: flex;

    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
}
.asb-plus-icon {
    display: grid;

    
    place-items: center;

    

    pointer-events: none;
    transition: transform var(--asb-transition), box-shadow var(--asb-transition);
}
.asb-plus-icon svg { display: block;   }

.asb-selected-thumb {
    display: none;
    width: 100%;
    height: 112px;
    margin: 6px 0 8px;
    flex: 0 0 auto;
}
.asb-selected-name {
    display: none;
    width: 100%;
    max-height: 2.8em;
    margin: 0 0 4px;
    overflow: hidden;
    color: var(--asb-text, #202b3a);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
}
.asb-selected-price {
    display: none;
    margin: auto 0 8px;

    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.asb-card.has-selection .asb-card-spacer { display: none; }
.asb-card.has-selection .asb-selected-thumb,
.asb-card.has-selection .asb-selected-name,
.asb-card.has-selection .asb-selected-price { display: block; }
.asb-qty-box {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0 0 10px;
    flex: 0 0 auto;
}
.asb-card.has-selection .asb-qty-box { display: flex; }
.asb-qty-box label {
    color: var(--asb-text-muted, #64748b);
    font-size: 13px;
    font-weight: 650;
}
.asb-qty-box input {
    width: 58px;
    max-width: 58px;
    height: 36px;
    padding: 0 5px;
    border: 1px solid #ccd5e1;
    border-radius: 8px;
    background: #fff;
    color: var(--asb-text, #202b3a);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
.asb-qty-box input:focus { border-color: var(--asb-primary, #075bb5); outline: 2px solid rgba(7, 91, 181, .15); }
.asb-qty-box input::-webkit-inner-spin-button,
.asb-qty-box input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.asb-qty-box input[type="number"] { -moz-appearance: textfield; }
.asb-input-pid { display: none !important; }
.asb-btn-open-modal,
.asb-btn-select-prod,
.asb-btn-choose-variation {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--asb-primary, #075bb5);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background var(--asb-transition), box-shadow var(--asb-transition), transform var(--asb-transition), opacity var(--asb-transition);
}
.asb-btn-open-modal {
    display: block;
    width: 100%;
    margin: auto 0 0;
    padding: 10px 12px;
    flex: 0 0 auto;
}
.asb-btn-open-modal:hover,
.asb-btn-select-prod:hover:not(:disabled),
.asb-btn-choose-variation:hover:not(:disabled) {
    background: var(--asb-primary-dark, #064991);
    box-shadow: 0 5px 13px rgba(7, 91, 181, .2);
}
.asb-btn-open-modal:active,
.asb-btn-select-prod:active:not(:disabled) { transform: translateY(1px); }

.asb-btn-select-prod:disabled,
.asb-btn-choose-variation:disabled { opacity: .5; cursor: not-allowed; }
.asb-btn-select-prod[aria-busy="true"] { opacity: .65; cursor: wait; }

/* Estimate and actions */
.asb-summary-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;

    
    border: 1px solid var(--asb-border, #e1e7ef);

    background: #fff;

}

.asb-total-price span {

    
    font-weight: 850;
}
.asb-action-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;

}
.asb-action-btns button,
.asb-modal-body .asb-btn-pdf,
.asb-modal-body .asb-btn-pay {
    min-height: 42px;
    padding: 10px 15px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    cursor: pointer;
    transition: filter var(--asb-transition), transform var(--asb-transition);
}
.asb-action-btns button:hover,
.asb-modal-body .asb-btn-pdf:hover,
.asb-modal-body .asb-btn-pay:hover { filter: brightness(.93); }
.asb-action-btns button:active { transform: translateY(1px); }
.asb-btn-cart { background: var(--asb-cart-btn, #16845b); color: #fff; }
.asb-btn-pdf { background: var(--asb-pdf-btn, #075bb5); color: #fff; }
.asb-btn-pay { background: #d92d20; color: #fff; }

/* Product selection modal */
.asb-modal-overlay {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(12, 22, 38, .62);
    backdrop-filter: blur(3px);
}
.asb-modal-content {
    position: relative;
    display: flex;
    width: min(1100px, 96vw);
    max-width: var(--asb-modal-max-w, 1100px);
    height: min(var(--asb-modal-h, 86vh), 820px);
    max-height: 94dvh;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 16px;
    background: var(--asb-bg-modal, #fff);
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.asb-modal-header {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #e9eef4;
    background: #f8fafc;
}
.asb-modal-header h3 {
    margin: 0;
    color: var(--asb-text, #202b3a);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.35;
}
.asb-modal-close {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #526174;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}
.asb-modal-close:hover { background: #e9eef4; color: var(--asb-text, #202b3a); }
.asb-modal-filter {
    padding: 12px 16px;
    border-bottom: 1px solid #e9eef4;
    background: #fff;
}
.asb-modal-filter input {
    display: block;
    width: min(100%, 420px);
    min-height: 42px;
    margin: 0;
    padding: 9px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: var(--asb-text, #202b3a);
    font: inherit;
    font-size: 14px;
}
.asb-modal-filter input:focus { border-color: var(--asb-primary, #075bb5); outline: 3px solid rgba(7,91,181,.12); }
.asb-modal-body {
    min-height: 0;
    padding: 16px;
    overflow: auto;
    overscroll-behavior: contain;
    flex: 1 1 auto;
}
.asb-p-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
}
.asb-p-item {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 11px;
    border: 1px solid var(--asb-border, #e1e7ef);
    border-radius: 11px;
    background: #fff;
    text-align: center;
    transition: border-color var(--asb-transition), box-shadow var(--asb-transition), transform var(--asb-transition);
}
.asb-p-item:hover {
    border-color: var(--asb-primary, #075bb5);
    box-shadow: 0 6px 18px rgba(15,23,42,.08);
    transform: translateY(-1px);
}
.asb-p-item img {
    display: block;
    width: 100%;
    height: 112px;
    margin: 0 auto 8px;
    object-fit: contain;
}
.asb-p-item-title {
    display: -webkit-box;
    min-height: 2.6em;
    max-height: 2.6em;
    margin: 0 0 6px;
    overflow: hidden;
    color: var(--asb-text, #202b3a);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.asb-p-item-price {
    margin: 0 0 7px;
    color: var(--asb-accent, #df252b);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}
.asb-p-item > :nth-child(4):not(.asb-stock-qty):not(.asb-stock-status):not(.asb-btn-select-prod) {
    display: -webkit-box;
    max-height: 7.25em;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--asb-text-muted, #64748b);
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}
.asb-stock-qty,
.asb-stock-status {
    display: inline-flex;
    width: fit-content;
    align-self: center;
    align-items: center;
    justify-content: center;
    margin: 4px auto 8px;
    padding: 4px 9px;
    border: 1px solid #a6f4c5;
    border-radius: 999px;
    background: #ecfdf3;
    color: #027a48;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
}
.asb-stock-status.out-of-stock { border-color: #fecdca; background: #fee4e2; color: #b42318; }
.asb-stock-status.unavailable { border-color: #d9d6fe; background: #f4f3ff; color: #6941c6; }
.asb-stock-status.backorder { border-color: #fedf89; background: #fffaeb; color: #b54708; }
.asb-p-item .asb-btn-select-prod {
    width: 100%;
    margin: auto 0 0;
    padding: 9px 10px;
    flex: 0 0 auto;
}
.asb-btn-load-more {
    display: block;
    min-height: 42px;
    margin: 16px auto 4px;
    padding: 9px 20px;
    border: 1px solid var(--asb-primary, #075bb5);
    border-radius: 8px;
    background: #fff;
    color: var(--asb-primary, #075bb5);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.asb-btn-load-more:hover { background: var(--asb-primary, #075bb5); color: #fff; }

/* Variable product selector */
.asb-variation-picker {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(12,22,38,.62);
}
.asb-variation-picker-inner {
    width: min(560px, 96vw);
    max-height: min(88vh, 760px);
    overflow: auto;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.asb-variation-picker-head {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #e7edf4;
    background: #f8fafc;
    color: var(--asb-text, #202b3a);
    font-size: 15px;
}
.asb-variation-close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}
.asb-variation-product { padding: 12px 16px; background: #f8fafc; color: #334155; font-weight: 700; }
.asb-variation-list { padding: 8px 16px 16px; }
.asb-variation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 2px;
    border-bottom: 1px solid #edf1f5;
}
.asb-variation-row > div { min-width: 0; flex: 1; }
.asb-variation-row strong { display: block; color: #1e293b; font-size: 14px; line-height: 1.35; }
.asb-variation-meta { margin-top: 5px; color: #64748b; font-size: 13px; }
.asb-variation-qty { margin-left: 6px; color: #027a48; font-weight: 750; }
.asb-btn-choose-variation { min-height: 38px; padding: 8px 15px; flex: 0 0 auto; }
.asb-variation-row.is-disabled { background: #fafafa; opacity: .72; }
.asb-variation-empty,
.asb-variation-loading { padding: 24px 12px; color: #64748b; text-align: center; }

/* Breakpoints */
@media (max-width: 1100px) {
    .asb-cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .asb-p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .asb-wrapper { padding-right: 5px; padding-left: 5px; }
    .asb-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr));  }

    
    .asb-p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .asb-summary-bar { align-items: stretch; flex-direction: column; }
    .asb-total-price { text-align: center; }
    .asb-action-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .asb-action-btns button { width: 100%; min-width: 0; padding: 10px 8px; }
}
@media (max-width: 600px) {
    .asb-wrapper { padding-right: 4px; padding-left: 4px; }
    .asb-application-control { margin-bottom: 12px; }

    
    .asb-main-title { margin-bottom: 12px; font-size: 20px; }
    .asb-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr));  margin-bottom: 15px; }

    

    

    
    .asb-card.has-selection .asb-selected-thumb { height: 88px; margin: 3px 0 5px; }
    .asb-selected-name { font-size: 12px; }
    .asb-selected-price { margin-top: 5px; font-size: 13px; }
    .asb-qty-box { gap: 6px; margin-bottom: 8px; }
    .asb-qty-box label { font-size: 12px; }
    .asb-qty-box input { width: 52px; max-width: 52px; height: 33px; }
    .asb-btn-open-modal {  padding: 9px 6px;  }

    .asb-total-price {  line-height: 1.45; }
    .asb-total-price span { display: block;  }

    .asb-action-btns button { min-height: 44px; font-size: 11px; }
    .asb-modal-overlay { align-items: center; padding: 6px; }
    .asb-modal-content { width: 100%; height: 92dvh; max-height: 94dvh; border-radius: 13px; }
    .asb-modal-header { min-height: 54px; padding: 8px 12px; }
    .asb-modal-header h3 { font-size: 15px; }
    .asb-modal-close { width: 36px; height: 36px; }
    .asb-modal-filter { padding: 9px 12px; }
    .asb-modal-filter input { width: 100%; min-height: 40px; font-size: 13px; }
    .asb-modal-body { padding: 10px; }
    .asb-p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .asb-p-item { padding: 8px; border-radius: 9px; }
    .asb-p-item img { height: 84px; margin-bottom: 6px; }
    .asb-p-item-title { font-size: 11px; }
    .asb-p-item-price { margin-bottom: 5px; font-size: 12px; }
    .asb-p-item > :nth-child(4):not(.asb-stock-qty):not(.asb-stock-status):not(.asb-btn-select-prod) { max-height: 5.8em; margin-bottom: 6px; font-size: 11px; line-height: 1.4; -webkit-line-clamp: 4; }
    .asb-p-item .asb-btn-select-prod { min-height: 38px; padding: 8px 5px; font-size: 11px; }
    .asb-stock-qty, .asb-stock-status { margin: 3px auto 6px; padding: 3px 7px; font-size: 10px; }
    .asb-variation-picker { padding: 8px; }
    .asb-variation-picker-inner { width: 100%; max-height: 92dvh; }
    .asb-variation-row { align-items: flex-start; gap: 9px; }
    .asb-btn-choose-variation { min-height: 36px; padding: 7px 11px; }
}
@media (max-width: 360px) {

    
    .asb-action-btns { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .asb-wrapper *, .asb-modal-overlay *, .asb-variation-picker * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Compact forms for the quote and payment dialogs */
.asb-modal-content--compact { height: auto; max-width: 480px; }
.asb-modal-body p { margin: 0 0 10px; }

.asb-license-notice,
.asb-requirement-message {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    background: #fff5f5;
    color: #b42318;
    font-weight: 700;
    text-align: center;
}
.asb-modal-submit { width: 100%; }
.asb-compatibility-status {
    flex: 1 0 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #f8fafc;
    color: #344054;
    font-size: 13px;
    line-height: 1.5;
}
.asb-compatibility-status.is-ok { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.asb-compatibility-status.is-warning { border-color: #fedf89; background: #fffaeb; color: #b54708; }
.asb-compatibility-status.is-error { border-color: #fecdca; background: #fff5f5; color: #b42318; }
.asb-compatibility-status ul { margin: 5px 0 0; padding-left: 18px; }

/* Remove Flatsome column padding around this plugin only. */
.col:has(.asb-wrapper) {
    padding: 0 !important;
}
.col.asb-has-wrapper-fallback {
    padding: 0 !important;
}

/* Keep the quantity label and field on one line inside product cards. */
.asb-wrapper .asb-card.has-selection .asb-qty-box {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}
.asb-wrapper .asb-card.has-selection .asb-qty-box label {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    white-space: nowrap;
}
.asb-wrapper .asb-card.has-selection .asb-qty-box input[type="number"] {
    flex: 0 0 58px;
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    margin: 0;
    box-sizing: border-box;
}

/* Giao diện frontend theo mẫu bố cục 8.8.37 */
.asb-wrapper,
.asb-wrapper *,
.asb-modal-overlay,
.asb-modal-overlay *,
.asb-variation-picker,
.asb-variation-picker * {
    text-transform: none !important;
}
.asb-wrapper *::first-letter,
.asb-modal-overlay *::first-letter,
.asb-variation-picker *::first-letter {
    text-transform: none !important;
}
.asb-wrapper { padding: 0; }
.asb-application-control {
    gap: 10px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}
.asb-application-heading { color: #26344d; font-size: 14px; font-weight: 750; }
.asb-application-options { gap: 8px; }
.asb-wrapper .asb-application-option {
    min-height: 36px;
    padding: 7px 14px;
    border-color: #dce3ed;
    border-radius: 10px;
    color: #26344d;
    font-size: 13px;
    font-weight: 700;
}
.asb-wrapper .asb-application-option:hover,
.asb-wrapper .asb-application-option:focus-visible { border-color: #e5222a; color: #e5222a; }
.asb-wrapper .asb-application-option.is-active,
.asb-wrapper .asb-application-option[aria-pressed="true"] {
    border-color: #e5222a;
    background: #e5222a;
    color: #fff;
    box-shadow: 0 4px 10px rgba(229, 34, 42, .16);
}
.asb-main-title { color: #26344d; }
.asb-cards-grid { gap: 14px; margin-bottom: 20px; }
.asb-card {
    min-height: 292px;
    padding: 13px;
    border-color: #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(31, 45, 68, .06);
}
.asb-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(31, 45, 68, .09);
    transform: translateY(-1px);
}
.asb-card-title { min-height: 38px; color: #26344d; font-size: 14px; font-weight: 750; }
.asb-card-spacer { min-height: 130px; }
.asb-plus-icon {
    width: 58px;
    height: 58px;
    border: 1px solid #ffe0e2;
    border-radius: 18px;
    background: #fff5f5;
    box-shadow: none;
}
.asb-plus-icon svg { width: 38px; height: 38px; }
.asb-card:hover .asb-plus-icon { box-shadow: 0 5px 14px rgba(229, 34, 42, .12); transform: scale(1.03); }
.asb-btn-open-modal {
    min-height: 42px;
    border-radius: 10px;
    background: #26344d;
    font-size: 12px;
    font-weight: 750;
}
.asb-btn-open-modal:hover { background: #1d293d; box-shadow: 0 4px 10px rgba(38, 52, 77, .18); }
.asb-btn-open-modal.active { background: #e5222a; }
.asb-btn-open-modal.active:hover { background: #c91c24; }
.asb-card.has-selection { min-height: 360px; }
.asb-selected-price { color: #e5222a; }
.asb-summary-bar {
    gap: 14px;
    padding: 15px 17px;
    border-color: #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 5px 16px rgba(31, 45, 68, .06);
}
.asb-total-price { color: #26344d; font-size: 15px; font-weight: 750; }
.asb-total-price span { color: #e5222a; font-size: 20px; }
.asb-action-btns { gap: 8px; }
.asb-wrapper .asb-action-btns .asb-btn-cart { border-radius: 10px; background: #26344d; color: #fff; }
.asb-wrapper .asb-action-btns .asb-btn-pdf { border-radius: 10px; background: #e5222a; color: #fff; }
.asb-wrapper .asb-action-btns button { min-height: 42px; padding: 10px 14px; font-size: 12px; font-weight: 750; }
@media (max-width: 820px) {
    .asb-wrapper { padding: 0; }
    .asb-application-control { padding: 12px; }
    .asb-cards-grid { gap: 10px; }
    .asb-card { min-height: 280px; padding: 11px; border-radius: 14px; }
    .asb-card.has-selection { min-height: 350px; }
    .asb-card-spacer { min-height: 120px; }
}
@media (max-width: 600px) {
    .asb-wrapper { padding: 0; }
    .asb-application-control { gap: 8px; margin-bottom: 12px; padding: 11px; border-radius: 12px; }
    .asb-application-options { gap: 6px; }
    .asb-wrapper .asb-application-option { min-height: 34px; padding: 6px 10px; font-size: 12px; }
    .asb-cards-grid { gap: 8px; margin-bottom: 13px; }
    .asb-card { min-height: 245px; padding: 9px; border-radius: 12px; }
    .asb-card-title { min-height: 36px; font-size: 12px; }
    .asb-card-spacer { min-height: 100px; }
    .asb-plus-icon { width: 52px; height: 52px; border-radius: 16px; }
    .asb-plus-icon svg { width: 35px; height: 35px; }
    .asb-card.has-selection { min-height: 0; }
    .asb-summary-bar { gap: 10px; padding: 11px; border-radius: 12px; }
    .asb-total-price { font-size: 13px; }
    .asb-total-price span { display: inline; font-size: 17px; }
    .asb-action-btns { gap: 7px; }
    .asb-wrapper .asb-action-btns button { min-height: 42px; padding: 9px 7px; font-size: 10px; }
}

/* Keep selected product thumbnails stable when theme image rules are present. */
.asb-wrapper .asb-card > img.asb-selected-thumb {
    display: none;
    flex: 0 0 112px;
    width: 100%;
    max-width: 100%;
    height: 112px !important;
    max-height: 112px !important;
    margin: 6px auto 8px;
    object-fit: contain !important;
    object-position: center;
    vertical-align: middle;
}
.asb-wrapper .asb-card.has-selection > img.asb-selected-thumb { display: block; }

/* Make the quantity control keep its rounded shape inside Flatsome cards. */
.asb-wrapper .asb-card .asb-qty-box input[type="number"] {
    border-radius: 10px !important;
}

@media (max-width: 600px) {
    .asb-wrapper .asb-card > img.asb-selected-thumb {
        flex-basis: 88px;
        height: 88px !important;
        max-height: 88px !important;
        margin: 3px auto 5px;
    }
}

/* Prevent Flatsome gallery rows from overflowing the viewport on mobile. */
@media (max-width: 820px) {
    .gallery,
    .row {
        display: flex;
        flex-flow: row wrap;
        width: 100%;
        max-width: 100%;
        padding: 7px;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
}

/* Builder: brand filtering, individual removal and readable actions. */
.asb-modal-filter{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.asb-modal-filter .asb-brand-filter{display:flex;flex-direction:column;gap:4px;flex:0 1 240px;margin:0;font-size:13px;color:#26344d}
.asb-modal-filter .asb-brand-filter select{width:100%;min-height:44px;margin:0;border:1px solid #dce4ef;border-radius:8px;background:#fff;color:#26344d;font-size:16px;padding:8px 10px}
.asb-modal-filter input{flex:1 1 260px;min-width:0;margin:0;min-height:44px}
.asb-wrapper .asb-card{position:relative}
.asb-wrapper .asb-card-title{padding:0 24px}
.asb-wrapper .asb-card .asb-remove-device{display:none;position:absolute;top:8px;right:8px;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;margin:0;padding:0;border:1px solid #ffcbd0;border-radius:50%;background:#fff1f2;color:#c91c24;font-size:24px;line-height:1;cursor:pointer;z-index:1}
.asb-wrapper .asb-card.has-selection .asb-remove-device{display:flex}
.asb-wrapper .asb-card .asb-remove-device:hover{background:#ffe0e5}
.asb-wrapper .asb-card .asb-btn-open-modal{font-size:16px!important;line-height:1.35}
.asb-wrapper .asb-action-btns .asb-btn-cart,.asb-wrapper .asb-action-btns .asb-btn-pdf{font-size:16px!important;line-height:1.4;white-space:normal;min-height:48px}
.asb-wrapper .asb-remove-device:focus-visible,.asb-modal-filter select:focus-visible{outline:2px solid #1265e8;outline-offset:2px}
@media(max-width:768px){.asb-modal-filter .asb-brand-filter{flex:1 1 100%}.asb-modal-filter input{flex-basis:100%;font-size:16px}.asb-wrapper .asb-card .asb-btn-open-modal{font-size:14px!important}.asb-wrapper .asb-action-btns .asb-btn-cart,.asb-wrapper .asb-action-btns .asb-btn-pdf{font-size:14px!important}.asb-wrapper .asb-card .asb-remove-device{width:36px;height:36px;min-height:36px;top:4px;right:4px}.asb-wrapper .asb-card-title{padding:0 28px}}
