/* window_snippet.css — Fönster-konfigurator snippet (CalcBuilder code-mode) */

.ws-step{
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    margin-bottom: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.ws-step-num{
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    background: #f1f5f9; color: #64748b;
}
.ws-step-num.is-green{ background: #dcfce7; color: #166534; }
.ws-step-num.is-blue{  background: #dbeafe; color: #1e40af; }
.ws-step-num.is-purple{ background: #ede9fe; color: #6d28d9; }

.ws-step-body{ min-width: 0; }
.ws-step-title{
    font-size: 16px; font-weight: 700; color: #1a1a1a;
    margin-bottom: 12px;
    display: flex; align-items: baseline; gap: 8px;
}
.ws-step-meta{
    font-size: 12px; color: #94a3b8; font-weight: 500;
}

.ws-grid-2{
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.ws-field{
    display: flex; flex-direction: column; gap: 6px;
}
.ws-field span{
    font-size: 12px; font-weight: 600; color: #475569;
}
.ws-field input{
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-size: 14px; font-family: inherit;
    transition: border-color .15s;
}
.ws-field input:focus{ outline: none; border-color: #024550; }

.ws-chips{ display: flex; flex-wrap: wrap; gap: 6px; }
.ws-chip{
    padding: 7px 14px;
    border: 1.5px solid #e5e7eb; border-radius: 20px;
    background: #fff; color: #334155;
    font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: all .15s;
}
.ws-chip:hover{ border-color: #024550; }
.ws-chip.is-active{ background: #024550; color: #fff; border-color: #024550; }

.ws-rows{ display: flex; flex-direction: column; gap: 8px; }
.ws-row{
    display: grid; grid-template-columns: 48px 1fr auto;
    align-items: center; gap: 14px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e7eb; border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
}
.ws-row:hover{
    border-color: #024550;
    box-shadow: 0 2px 8px rgba(2,69,80,.08);
    transform: translateY(-1px);
}

.ws-row-img{
    width: 48px; height: 48px;
    object-fit: cover; border-radius: 6px;
    background: #f8fafc;
}
.ws-row-img.is-placeholder{
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; border: 1px solid #e5e7eb;
}

.ws-row-text{ min-width: 0; }
.ws-row-name{
    font-size: 14px; font-weight: 700; color: #1a1a1a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-row-sub{
    font-size: 12px; color: #64748b; margin-top: 2px;
}
.ws-row-price{
    font-size: 16px; font-weight: 700; color: #024550;
    white-space: nowrap;
}

.ws-empty{
    padding: 24px;
    text-align: center; color: #94a3b8;
    font-size: 13px;
    background: #f8fafc; border-radius: 10px;
    border: 1px dashed #e5e7eb;
}
.ws-loading{
    padding: 24px;
    text-align: center; color: #64748b;
    font-size: 13px;
}

.ws-toast{
    padding: 10px 14px;
    margin-bottom: 10px;
    background: #dcfce7; color: #166534;
    border: 1px solid #86efac; border-radius: 10px;
    font-size: 13px; font-weight: 700;
    animation: ws-toast-in .25s ease-out;
}
@keyframes ws-toast-in{
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
