.lx-card-availability {
    z-index: 4; padding: 4px 9px !important; color: #fff !important; border: 0 !important;
    border-radius: 7px !important; box-shadow: 0 2px 7px rgba(20,35,26,.16);
    font: 500 11px/1.35 Inter,system-ui,sans-serif !important;
}
.lx-card-availability--available { background: #16804f !important; }
.lx-card-availability--unavailable { background: #c83d43 !important; }

.lx-catalog-image-add {
    position: absolute; z-index: 5; top: 42px; left: 8px; min-height: 30px; padding: 0 9px;
    display: inline-flex; align-items: center; gap: 6px; color: #fff; background: #14764c;
    border: 1px solid rgba(255,255,255,.65); border-radius: 8px; box-shadow: 0 3px 10px rgba(16,50,34,.2);
    cursor: pointer; font: 500 11px/1.2 Inter,system-ui,sans-serif; transition: transform .16s ease,background .16s ease,box-shadow .16s ease;
}
.lx-catalog-image-add:hover { background: #0f613e; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(16,50,34,.25); }
.lx-catalog-image-add:focus-visible,.lx-catalog-image-dialog button:focus-visible { outline: 2px solid #168553; outline-offset: 3px; }
.lx-catalog-image-add svg { width: 15px; height: 15px; flex: 0 0 15px; }
.lx-catalog-image-dialog {
    width: min(520px,calc(100vw - 28px)); max-height: min(88vh,720px); padding: 24px; overflow: auto;
    color: #34443b; background: #fff; border: 1px solid #dbe5de; border-radius: 16px;
    box-shadow: 0 24px 80px rgba(16,38,27,.28); font-family: Inter,system-ui,sans-serif;
}
.lx-catalog-image-dialog::backdrop { background: rgba(17,29,23,.48); backdrop-filter: blur(3px); }
.lx-catalog-image-dialog-close-form { position: absolute; top: 10px; right: 10px; }
.lx-catalog-image-dialog-close { width: 34px; height: 34px; display: grid; place-items: center; color: #637168; background: #f4f7f5; border: 1px solid #e1e8e3; border-radius: 9px; cursor: pointer; font: 400 22px/1 Inter,sans-serif; }
.lx-catalog-image-dialog-heading { padding-right: 28px; display: flex; align-items: center; gap: 12px; }
.lx-catalog-image-dialog-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: #16754a; background: #eaf5ee; border: 1px solid #d7eadd; border-radius: 12px; }
.lx-catalog-image-dialog-icon svg { width: 21px; height: 21px; }
.lx-catalog-image-dialog-heading p { margin: 0 0 3px; color: #738078; font-size: 11px; }
.lx-catalog-image-dialog-heading h2 { margin: 0; color: #26372e; font-size: 17px; font-weight: 500; line-height: 1.4; }
.lx-catalog-image-dialog-description { margin: 16px 0; color: #64736a; font-size: 12px; line-height: 1.6; }
.lx-catalog-image-dialog-status { min-height: 0; margin: 0 0 12px; color: #64736a; font-size: 12px; line-height: 1.5; }
.lx-catalog-image-dialog-status:empty { display: none; }
.lx-catalog-image-dialog-status[data-state="error"] { color: #a43c40; }
.lx-catalog-image-dialog-status[data-state="success"] { color: #24764c; }
.lx-catalog-image-dialog-result { padding: 10px; display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; gap: 13px; background: #f7faf8; border: 1px solid #e0e9e3; border-radius: 11px; }
.lx-catalog-image-dialog-result[hidden] { display: none; }
.lx-catalog-image-dialog-result img { width: 112px; height: 112px; object-fit: contain; background: #fff; border: 1px solid #e3eae5; border-radius: 8px; }
.lx-catalog-image-dialog-result > div { min-width: 0; display: grid; gap: 5px; }
.lx-catalog-image-dialog-result strong { overflow-wrap: anywhere; color: #34443b; font-size: 12px; font-weight: 500; }
.lx-catalog-image-dialog-result small { color: #718078; font-size: 11px; }
.lx-catalog-image-dialog-actions { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.lx-catalog-image-dialog-actions button { min-height: 38px; padding: 0 13px; color: #405148; background: #fff; border: 1px solid #d5e0d9; border-radius: 9px; cursor: pointer; font: 500 12px Inter,system-ui,sans-serif; transition: background .14s ease,transform .14s ease; }
.lx-catalog-image-dialog-actions button:hover { background: #f1f7f3; transform: translateY(-1px); }
.lx-catalog-image-dialog-actions button[data-catalog-image-search],.lx-catalog-image-dialog-actions button[data-catalog-image-apply] { color: #fff; background: #16804f; border-color: #16804f; }
.lx-catalog-image-dialog-actions button[data-catalog-image-search]:hover,.lx-catalog-image-dialog-actions button[data-catalog-image-apply]:hover { background: #116b42; }
.lx-catalog-image-dialog-actions button:disabled { opacity: .55; cursor: wait; transform: none; }
@media (max-width: 520px) {
    .lx-catalog-image-dialog { padding: 20px 16px 16px; border-radius: 14px; }
    .lx-catalog-image-dialog-result { grid-template-columns: 82px minmax(0,1fr); gap: 10px; }
    .lx-catalog-image-dialog-result img { width: 82px; height: 82px; }
    .lx-catalog-image-dialog-actions { justify-content: stretch; }
    .lx-catalog-image-dialog-actions button { flex: 1 1 auto; }
    .lx-catalog-image-add { top: 41px; left: 6px; min-height: 28px; padding: 0 7px; font-size: 10px; }
}
