.ai-action svg {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    fill: #111827;
}
.ai-widget .ai-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.ai-widget .ai-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    display: inline;
}

.ai-widget .ai-modal-content {
    position: relative;
    margin: 24px;
    background: transparent;
}

.ai-widget .ai-loading-modal {
    border-radius: 10px;
    background-color: rgb(255, 255, 255, 0.5);
}

.ai-widget .ai-spinner {
    width: 55px;
    height: 55px;
    margin: 20px auto;
    animation: aiScale 2s infinite ease-in-out;
    color: #000;
}
@keyframes aiScale {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.2); }
}

.ai-widget .ai-modal-close {
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    place-content: center;
    font-size: 24px;
    background: rgba(255, 255, 255, .6);
    color: #000;
    opacity: 0.9;
    border: none;
    cursor: pointer;
    transition: opacity .15s;
    line-height: 30px;
    z-index: 1000;
}
.ai-widget .ai-modal-close:hover { opacity: 1; }

.ai-widget .ai-modal-body {
    position: relative;
}

.ai-widget .ai-modal-body img   { width: 100%; border-radius: 8px; }

.ai-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,.15);
    border-radius: 100px;
    position: fixed;
    z-index: 999;
    border: transparent;
}

/* ---------- action buttons inside modal ----------------------------- */
.ai-widget .ai-action {
    height: 36px;
    min-width: auto;
    padding: 0 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.ai-widget .ai-actions {
    margin: 6px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.ai-widget .ai-action:hover { background: #e5e7eb; }
.ai-action svg {
    width: 20px;
    height: 20px;
    margin-right: 3px;
    fill: #111827;
}
.ai-rating-btn[data-rating="up"].selected {
    background-color: #ceebd2;
}
.ai-rating-btn[data-rating="down"].selected {
    background-color: #fee2e2;
}
.ai-rating {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 5;
    backdrop-filter: blur(5px);
    border-radius: 9999px;
    border: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ai-rating .ai-action {
    min-width: auto;
}
.ai-rating-title {
    display: inline-flex;
    margin-left: 10px;
    margin-right: 3px;
    color: #f3f4f6;
    opacity: 0.85;
    font-size: 14px;
}

html.scroll-lock,
body.scroll-lock {
    overflow: hidden;   /* remove scrollbars */
    height: 100%;       /* avoid layout jump */
    touch-action: none; /* stop iOS rubber‑band */
}

.img-comp-container{
    position:relative;
    max-width:100%;
}
.img-comp-img img{
    display:block;
    width:100%;
    max-height: 500px;
    height:auto;
    user-select:none;
    pointer-events:none;
}
.img-comp-overlay{
    position:absolute;
    top:0;
    left:0;
    width:50%;         /* start at 50 % */
    overflow:hidden;
}
.img-comp-slider{
    position:absolute;
    z-index:9000;
    width:38px;
    height:38px;
    border-radius:50%;
    background:#2196f3;
    opacity:.75;
    cursor:ew-resize;
    box-shadow:0 0 0 3px #fff inset, 0 0 6px rgba(0,0,0,.3);
    transform:translate(-50%,-50%);
    transition:background .2s;
}
.img-comp-slider:hover{ background:#1b79d0; }

.ai-widget .ai-entry{
    position:fixed;
    inset:0;
    z-index:10000000000;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:12px;
    background:rgba(255,255,255,.92);
}
.ai-widget .ai-entry-close{
    position:absolute;
    top:12px;
    right:12px;
    width:34px;
    height:34px;
    border-radius:50%;
    font-size:24px;
    border:none;
    cursor:pointer;
    background:rgba(0,0,0,.1);
}
.ai-widget .ai-entry-close:hover{ background:rgba(0,0,0,.2); }

.ai-widget, .ai-widget button {
    font-family: Inter, sans-serif !important;
}

.ai-entry-description {
    margin: 0 40px;
    text-align: center;
}

.ai-feedback {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 12px auto 0;
    gap: 6px;
}

.ai-feedback-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.ai-feedback-send {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 8px 12px;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.ai-author {
    font-size: 10px;
    text-align: left;
    margin-top: 6px;
    opacity: 0.7;
}

.ai-feedback-input input::placeholder {
    color: inherit;
    opacity: 0.7;
}

.ai-author-start {
    font-size: 10px;
    text-align: center;
    color: gray;
    position: absolute;
    bottom: 10px;
}

/*
Website-specific styles
 */

/*
https://www.tapetenshop.lv/collections/titanium-3/products/tapetes-381966
 */
.lsn-switcher {
    display: none;
}
div:empty {
    display: inline;
}

/*
mmk
 */
.com-center {
    display: none;
}
