/* Plik: web-koszyk.css */
/* Style dla nowego modułu koszyka w Web Kalkulatorze */
/* Wersja: LOGO GREEN FULL (Zielone przyciski główne i 'Vis Handlekurv') */

/* === NOWE: Logo Aplikacji === */
.wk-app-logo {
    margin-bottom: 16px; 
}
.wk-app-logo img {
    height: 80px; 
    width: auto;
    opacity: 0.8;
}

/* === Przyciski === */

/* Przycisk Główny (ZIELONY - Vindu Butikken) */
.wk-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    line-height: 1.5;
    /* ZIELONY */
    background-color: #16a34a; /* green-600 */
    color: white;
    border-color: #16a34a;
}
.wk-button-primary:not(:disabled):hover {
    background-color: #15803d; /* green-700 */
}
.wk-button-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Przycisk Drugorzędny (Szary) */
.wk-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    line-height: 1.5;
    background-color: #f3f4f6; /* gray-100 */
    color: #374151; /* gray-700 */
    border-color: #d1d5db; /* gray-300 */
}
.wk-button-secondary:not(:disabled):hover {
    background-color: #e5e7eb; /* gray-200 */
}
.wk-button-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Przycisk Niebezpieczny (Czerwony) */
.wk-button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    line-height: 1.5;
    background-color: #dc2626; /* red-600 */
    color: white;
    border-color: #dc2626;
}
.wk-button-danger:not(:disabled):hover {
    background-color: #b91c1c; /* red-700 */
}
.wk-button-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Przełącznik Widoku (Vis Handlekurv) === */
.wk-view-switcher {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

/* ZMIANA: Specjalny styl dla przycisku koszyka (Zielony) */
#wk-show-cart-btn {
    background-color: #16a34a; /* green-600 */
    color: white;
    border-color: #16a34a;
}
#wk-show-cart-btn:hover {
    background-color: #15803d; /* green-700 */
}
#wk-show-cart-btn i {
    color: white; /* Ikona na biało dla kontrastu */
}

/* === Struktura Koszyka === */
#web-koszyk-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wk-koszyk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 16px;
}
.wk-koszyk-header h1 {
    flex-grow: 1;
    text-align: center;
}

.wk-koszyk-logo {
    height: 60px; 
    width: auto;
}

.wk-koszyk-klient-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap; 
    padding: 20px;
    background-color: #f9fafb; /* gray-50 */
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 8px;
}
.wk-klient-opcje {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wk-pdf-actions {
    flex: 1 1 300px;
}
.klient-opcja-grupa {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.klient-opcja-grupa label {
    font-size: 0.9rem;
    cursor: pointer;
    color: #374151; /* gray-700 */
    font-weight: 500;
}
#wk-global-offer-nr,
#wk-deres-ref {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 6px;
    font-size: 1rem;
}

.wk-koszyk-lista-klasa {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

/* === Elementy Koszyka === */
.wk-koszyk-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #ffffff;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e5e7eb; /* gray-200 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wk-koszyk-item-img {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: #f3f4f6; /* gray-100 */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: #9ca3af; /* gray-400 */
    overflow: hidden;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.wk-koszyk-item-img img { 
    display: none;
}

.wk-koszyk-item-info {
    flex-grow: 1;
}

.wk-koszyk-item-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
    color: #1f2937; /* gray-800 */
}

.wk-koszyk-item-details {
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* gray-500 */
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 4px;
}
.wk-koszyk-item-details span::after {
    content: '|';
    margin-left: 12px;
    color: #e5e7eb; /* gray-200 */
}
.wk-koszyk-item-details span:last-child::after {
    content: '';
}

.wk-koszyk-item-price {
    flex-shrink: 0;
    text-align: right;
    min-width: 150px;
}

.wk-koszyk-item-price .unit-price {
    font-size: 0.875rem;
    color: #6b7280;
}
.wk-koszyk-item-price .line-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.wk-koszyk-item-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wk-koszyk-item-actions input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

/* === Podsumowanie Koszyka === */
.wk-koszyk-summary {
    border-top: 2px solid #e5e7eb; /* gray-200 */
    padding-top: 16px;
    margin-top: auto;
    width: 100%;
    max-width: 450px;
    align-self: flex-end;
}

.wk-summary-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 1rem;
    color: #374151; /* gray-700 */
}
.wk-summary-line.total {
    font-weight: 700;
    font-size: 1.25rem; /* text-xl */
    color: #111827; /* gray-900 */
    margin-top: 8px;
}

.wk-koszyk-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

/* === Style interfejsu (Radio, Checkbox) === */
.color-swatch { display: inline-block; width: 16px; height: 16px; border: 1px solid #ccc; border-radius: 50%; margin-right: 5px; vertical-align: middle; }

/* Podświetlenie dla zaznaczonych radio buttonów (ZIELONY) */
input[type="radio"]:checked + label { 
    border-color: #16a34a; 
    background-color: #f0fdf4; /* green-50 */
}

.radio-label-button { 
    padding: 8px 12px;
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    transition: all 0.2s ease-in-out; 
    background-color: #fff;
    min-height: 38px;
    flex-wrap: wrap;
    line-height: 1.2;
    width: 100%;
}
.radio-label-button:hover { background-color: #f9fafb; }

/* Style dla checkboxów (Tilleggsvalg Glass) */
.wk-checkbox-label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    width: 100%; 
}
.wk-checkbox-label:hover {
    background-color: #f3f4f6; /* gray-100 */
}
.wk-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    height: 16px;
    width: 16px;
    /* ZIELONY */
    accent-color: #16a34a;
}
.wk-checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
}
.wk-checkbox-label:has(input[type="checkbox"]:checked) {
     /* ZIELONY */
     border-color: #16a34a; 
     background-color: #f0fdf4; 
}

/* === HARMONIJKA === */
.accordion-button { background-color: #f3f4f6; color: #374151; cursor: pointer; padding: 12px 16px; width: 100%; border: 1px solid #d1d5db; border-radius: 6px; text-align: left; outline: none; font-size: 1rem; font-weight: 500; transition: background-color 0.2s ease; display: flex; justify-content: space-between; align-items: center; }
.accordion-button:hover { background-color: #e5e7eb; }
.accordion-button.active { background-color: #e5e7eb; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.accordion-button .icon::before { content: '+'; font-weight: bold; font-size: 1.2em; transition: transform 0.2s ease; display: inline-block; }
.accordion-button.active .icon::before { content: '−'; }

.accordion-panel {
    padding: 0;
    background-color: white;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    border: 0px solid #d1d5db;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}
.accordion-panel.open {
    border-width: 1px;
}
.accordion-content {
    padding: 16px;
}

/* Suwaki i inputy */
.range-slider-group { margin-bottom: 1rem; }
.range-slider-group .label-container { display: flex; justify-content: flex-start; align-items: center; margin-bottom: 4px; }
.range-value { font-weight: 600; color: #15803d; /* green-700 */ }
.dimension-input-container { display: flex; align-items: center; }
#wk-rysunek-kontener { 
    height: 400px; 
}

#wk-opis-techniczny-lista {
     line-height: 1.6;
}
#wk-opis-techniczny-lista p {
    margin: 2px 0;
}
 #wk-opis-techniczny-lista hr {
     margin: 8px 0;
     border-color: #e5e7eb;
 }

/* === STYLE DLA PRZYCISKÓW +/- === */
.dimension-input-stepper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 1rem;
}
.dimension-input-stepper input[type="number"] {
    width: 70px;
    text-align: center;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding-left: 2px;
    padding-right: 2px;
    height: 38px; 
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
}
.dim-stepper-btn {
    width: 30px;
    height: 38px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: background-color 0.2s;
}

/* PLUS: Zielony */
.dim-stepper-btn.dim-btn-plus {
    background-color: #dcfce7; /* green-100 */
    color: #15803d; /* green-700 */
    border-color: #86efac; /* green-300 */
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none; 
}
.dim-stepper-btn.dim-btn-plus:hover {
    background-color: #bbf7d0; /* green-200 */
}

/* MINUS: Szary (Neutralny) */
.dim-stepper-btn.dim-btn-minus {
    background-color: #f3f4f6; /* gray-100 */
    color: #4b5563; /* gray-600 */
    border-color: #d1d5db; /* gray-300 */
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}
.dim-stepper-btn.dim-btn-minus:hover {
    background-color: #e5e7eb; /* gray-200 */
}

.dimension-input-stepper input[type=number]::-webkit-outer-spin-button,
.dimension-input-stepper input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.dimension-input-stepper input[type=number] {
    -moz-appearance: textfield;
}

/* === Valgfri Input === */
.valgfri-input { 
    display: none; 
    margin-top: 8px;
    border: 1px solid #d1d5db; 
    border-radius: 4px; 
    padding: 4px 8px;
    width: 100%;
}
input[type="radio"][value="valgfri"]:checked + label + .valgfri-input { 
    display: inline-block; 
}
.farge-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}
.farge-standard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.farge-valgfri-item {
     display: flex;
     flex-direction: column;
}
.farge-option-item {
    display: flex;
    align-items: flex-start;
}

/* === Style dla lewego panelu (Opis) === */
.wk-tech-item-group {
}
.wk-tech-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.wk-tech-edit-btn {
    background: none;
    border: none;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    color: #9ca3af; /* gray-400 */
    font-size: 1.25rem;
    line-height: 1;
}
.wk-tech-edit-btn:hover {
    /* ZIELONY */
    color: #16a34a;
}
.wk-tech-edit-btn i {
    display: block;
    transition: transform 0.2s ease;
}
.wk-tech-edit-btn.active i {
    transform: rotate(45deg);
}
.wk-tech-item-row.no-edit {
    padding-left: 33px;
}
.wk-tech-item-row.no-edit .wk-tech-item-text {
     font-weight: normal;
     color: #374151;
}

.wk-tech-item-text {
    flex-grow: 1;
    font-size: 0.875rem; /* text-sm */
    line-height: 1.5;
}
.wk-tech-desc-label {
    font-weight: 600;
    color: #374151;
    margin-right: 4px;
}
.wk-tech-desc-value {
    /* ZIELONY */
    color: #15803d; /* green-700 */
    font-weight: 600;
}
.wk-tech-desc-value.default {
     color: #4b5563;
     font-weight: normal;
}

.wk-tech-desc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: #f9fafb;
    border-radius: 4px;
    margin: 0 0 8px 33px;
    padding: 0;
}
.wk-tech-desc-panel.open {
     padding: 8px; 
}
.wk-tech-desc-panel .radio-label-button {
    padding: 6px 10px;
    font-size: 0.875rem;
    margin-bottom: 4px;
}