#select-color-quantity {
    display: block;
    width: 100%;
    background-color: #ca0707;
    font-family: poppins;
    color: white;
    padding: 1em;
    border: none;
    font-size: 17px;
    cursor: pointer;
    text-align: center;
    border-radius: 10px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  	margin-top: 20px;
}

#select-color-quantity:hover {
    background-color: #b20606;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999!important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 5px;
}

.modal-content {
    background-color: #fefefe;
    margin: 1% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 98%;
    max-width: 1700px;
    max-height: 1300px;
    height: 95%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 60px;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    margin-top: -20px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #cacaca;
    margin-bottom: 20px;
}

.modal-logo {
    width: 200px;
    height: auto;
    margin-right: 20px;
}

.modal-title {
    font-size: 30px;
    margin: 0;
    white-space: nowrap;
}

.modal-call {
    font-size: 18px;
    margin: 0;
    white-space: nowrap;
}

/* Hovedlayout med CSS Grid - to kolonner */
.color-picker-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 10px 0;
}

/* Venstre kolonne */
.color-picker-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

#selected-image-container {
    position: relative;
}

#selected-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.thumbnail {
    width: 100px;
    height: auto;
    cursor: pointer;
    margin: 5px;
    display: inline-block;
    background-color: #ffffff;
    padding: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    border-radius: 5px;
}

.thumbnail:hover {
    opacity: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

#thumbnail-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

/* Farvenavn og knap i samme række */
.color-name-row {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

/* X-knap til at fjerne farve - skjult på desktop */
.clear-color-btn {
    display: none !important;
}

#color-and-name-container {
    display: flex;
    align-items: center;
    border: 1px solid #cacaca;
    padding: 5px 15px 5px 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    border-radius: 30px;
    flex: 1;
    min-width: 0;
}

#color-display {
    width: 70px;
    height: 40px;
    min-width: 70px;
    border: 1px solid #cacaca;
    border-radius: 20px;
    margin-right: 10px;
}

#selected-color-name {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

#go-to-quantity-selection {
    background-color: #ca0707;
    color: white;
    padding: 15px 20px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

#go-to-quantity-selection:hover {
    background-color: #b20606;
}

.custom-color-button {
    width: 100%;
    background-color: #fff;
    color: #333;
    padding: 12px;
    border: 1px solid #cacaca;
    font-size: 14px;
    cursor: pointer;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.custom-color-button:hover {
    background-color: #f5f5f5;
}

#custom-color-popup {
    display: none;
    position: fixed;
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    z-index: 10001;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 4px 8px rgba(0,0,0,0.7);
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
}

#custom-color-popup h4 {
    margin: 0 0 10px 0;
    font-family: 'Poppins', sans-serif;
}

#custom-color-popup p {
    margin: 15px 0;
    font-size: 0.9em;
    color: #555;
}

#custom-color-popup input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cacaca;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

#custom-color-popup .button {
    margin-top: 10px;
    margin-right: 10px;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease;
}

#apply-custom-color {
    background-color: #5cb85c;
    color: #fff;
}

#apply-custom-color:hover {
    background-color: #4cae4c;
}

#cancel-custom-color {
    background-color: #d9534f;
    color: #fff;
}

#cancel-custom-color:hover {
    background-color: #c9302c;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
}

/* Højre kolonne */
.color-picker-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    overflow: hidden;
}

#color-selection-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    max-height: 700px;
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: flex-start;
}

.color-container {
    border-radius: 5px;
    border: 1px solid #cacaca;
    margin: 5px;
    width: calc(25% - 10px);
    box-sizing: border-box;
}

.color-preview {
    width: 100%;
    height: 150px;
    margin-bottom: 5px;
    border-bottom: 1px solid #cacaca;
    border-radius: 3px 3px 0 0;
}

.color-name, .color-chart {
    text-align: left;
    color: black;
    margin: 0;
    padding-left: 10px;
    padding-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    display: block;
}

.color-name {
    margin-bottom: 5px;
    font-size: 14px;
    padding-top: 5px;
}

.color-chart {
    margin-top: -15px;
    font-size: 11px;
}

.color-container.selected {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.color-category-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.color-category-filters {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.color-category-filter {
    background: transparent !important;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px !important;
    flex-shrink: 0;
}

.color-category-filter:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
}

.color-category-filter.selected {
    border: 1px solid #cacaca;
    border-radius: 5px;
    padding: 5px;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 60px;
    margin-bottom: 5px;
    border: 1px solid #cacaca;
}

.color-category-text {
    font-size: 10px;
}

.color-search-container {
    width: 100%;
}

#color-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cacaca;
    border-radius: 5px;
    height: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

#go-to-quantity-selection {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    width: 48%;
    box-sizing: border-box;
    text-align: center;
    float: left;
    transition: background-color 0.3s, color 0.3s;
    font-family: 'Poppins', sans-serif;
    height: 50px;
    font-size: 16px;
    cursor: not-allowed;
    color: #cacaca;
}

#go-to-quantity-selection.inactive {
    background-color: #ccc;
    color: white;
    cursor: not-allowed;
}

#go-to-quantity-selection.active {
    background-color: #ca0707;
    color: white;
    cursor: pointer;
    pointer-events: auto;
}

.clearfix {
    clear: both;
}

/* MODAL 2 CSS */
.modal-body-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.left-section {
    width: 100%;
    margin-right: 0;
    display: flex;
    flex-direction: column;
}

/* På desktop skal knappen være under varianterne */
#toggleCalculator {
    order: 2;
}

#product-variants-container {
    order: 1;
}

.right-section {
    width: 100%;
}

/* Tablet størrelser */
@media (min-width: 768px) and (max-width: 1024px) {
    .left-section {
        width: 60%;
        margin-right: 20px;
    }

    .right-section {
        width: 40%;
    }
}

/* Desktop størrelser */
@media (min-width: 1025px) {
    .left-section {
        width: 50%;
        margin-right: 50px;
    }

    .right-section {
        width: 30%;
    }
}

#selected-color-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #cacaca;
    border-radius: 20px;
    overflow: auto;
    width: 100%;
}

#color-and-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

#selected-color-display {
    width: 70px;
    height: 40px;
    border: 1px solid #cacaca;
    border-radius: 10px;
}

#selected-color-name-summary {
    font-size: 18px;
    color: black;
    margin-left: 10px;
    font-family: 'Poppins', sans-serif;
}

#change-color {
    padding: 10px 40px;
    border-radius: 20px;
    background-color: #393C41;
    color: white;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

#change-color:hover {
    background-color: #605D58;
}

.modal2-title {
    margin-top: 20px;
    font-size: 16px;
    margin-bottom: 5px;
}

.modal2-title2 {
    margin-top: 10px;
    font-size: 16px;
    margin-bottom: 5px;
}

.modal2-title3 {
    margin-top: 10px;
    font-size: 16px;
    margin-bottom: 5px;
}

.variant-list {
    list-style: none;
    margin-left: -17px;
}

.hidden {
    display: none;
}

.out-of-stock-badge {
    position: absolute;
    left: -12px;
    top: -5px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    padding: 6px 8px;
    background-color: #ff4d4d; /* Rød farve */
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    align-content: center;
    display: grid;
  	z-index: 1;
}

.variant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #cacaca;
    background-color: #fff;
    border-radius: 20px;
    position: relative;
}

.variant-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.variant-image {
    height: 50px;
    width: 50px;
    margin-right: 20px;
}

.variant-details {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}

.variant-name {
    margin-right: 20px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: black;
}

.variant-price {
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 2px;
}

.variant-price del {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

.variant-sale-label {
  	position: absolute;
    right: -25px;
    top: -10px;
    margin-left: 10px;
    font-size: 11px;
    background-color: #ffdb4d;
    padding: 3px 8px;
    border-radius: 20px;
  	text-transform: uppercase;
  	color: black;
  	font-family: 'Poppins', sans-serif;
    font-weight: 600;
    align-content: center;
    display: grid;
}

.variant-quantity {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.plus-button {
    background-color: rgb(178, 216, 180) !important;
    color: black !important;
    border: 1px solid rgb(178, 216, 180) !important;
    border-radius: 30px!important; /* Gør knappen rund */
  	cursor: pointer !important;
    font-size: 25px !important;
    height: 35px !important;
    width: 35px !important;
  	padding: 0px !important;
    margin-right: 10px !important;
    margin-bottom: 0px !important;
    border-radius: 50% !important; /* Gør knappen rund */
    font-family: 'Poppins', sans-serif !important;
    line-height: 35px !important;
    border: 1px solid #cacaca !important;
    min-height: 0 !important;
    font-weight: 400 !important;
}

.plus-button:hover {
    background-color: #fff !important;
    color: black;
    border: 1px solid rgb(178, 216, 180);
}

.minus-button {
    background-color: rgb(243, 162, 150) !important;
    color: black !important;
    border: 1px solid rgb(243, 162, 150) !important;
}

.minus-button:hover {
    background-color: #fff !important;
    color: black;
    border: 1px solid rgb(243, 162, 150);
}

#selected-variants-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#selected-variants-list .variant-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

#selected-variants-list .variant-item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

#selected-variants-list .variant-name {
    flex-grow: 1;
    margin-right: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

#selected-variants-list .variant-quantity {
    font-size: 13px;
    color: #666;
    margin-right: 8px;
    font-weight: 500;
}

#selected-variants-list .variant-price del .amount {
    display: none; 	
}

#selected-variants-list .variant-price .amount {
    font-size: 15px;
    color: #ca0707;
    font-weight: 600;
}

#selected-variants-list .remove-variant {
    display: inline-block;
    cursor: pointer;
    font-size: 16px;
    background-color: rgb(243, 162, 150) !important;
    border: 1px solid rgb(243, 162, 150) !important;
    height: 30px;
    width: 30px;
    padding: 0px;
    margin-right: 10px;
    margin-bottom: 0px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    line-height: 30px;
    min-height: 0 !important;
    font-weight: 500;
}

#selected-variants-list .remove-variant:hover {
    background-color: #fff !important;
    color: black;
    border: 1px solid rgb(243, 162, 150);
}

.variant-item2 {
    display: flex;
    align-items: left;
    justify-content: space-between;
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 20px;
    margin-left: -10px;
    margin-right: -10px;
    padding: 10px;
}

.variant-name2 {
    flex-grow: 1;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: black;
    margin-left: 15px;
}

.variant-price2 {
    margin-left: auto;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    padding-right: 10px;
}

#total-amount {
    box-sizing: border-box;
    font-size: 18px;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding-right: 15px;
    padding-bottom: 10px;
    padding-top: 10px;
}

.total-price-box {
    border-radius: 20px;
}

.total-amount {
    display: flex;
    justify-content: space-between;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    align-items: center;
}

.total-text {
    float: left;
    font-size: 16px;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    padding-left: 15px;
    padding-bottom: 20px;
    padding-top: 20px;
}

#total-amount-value {
    float: right;
}

#modal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.total-liters {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    align-items: center;
}

.total-liter-text {
    flex: 1;
    text-align: left;
}

#total-liters {
    float: right;
    box-sizing: border-box;
    font-size: 18px;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding-right: 15px;
}

.separator {
    border-top: 1px solid #ccc;
    padding-left: 0px !important;
}

.paint-calculator {
    width: auto;
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #ccc;
    margin-top: 20px;
    border-radius: 20px;
    text-align: center;
}

.paint-calculator .field,
.paint-calculator button,
.paint-calculator p {
    margin-bottom: 10px;
    width: 100%;
}

.paint-calculator label {
    display: block;
    margin-top: -5px;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.paint-calculator input[type="number"] {
    width: 30%;
    padding: 5px;
    margin-right: 5px;
    text-align: center;
    border: 1px solid #cacaca;
    border-radius: 20px;
    color: black;
    font-size: 18px;
    font-weight: bold;
}

.paint-calculator button {
    background-color: rgb(178, 216, 180) !important;
    cursor: pointer;
    font-size: 25px;
    height: 35px;
    width: 35px;
    padding: 0px;
    margin-right: 10px;
    margin-bottom: 0px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    line-height: 35px;
    border: 1px solid #cacaca;
    min-height: 0 !important;
    font-weight: 400;
}

.paint-calculator button:hover {
    background-color: #fff !important;
    color: black;
    border: 1px solid rgb(178, 216, 180);
}

#result {
    padding: 10px;
    background-color: rgb(178, 216, 180);
    border-radius: 20px;
    font-size: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: rgb(0, 47, 18);
    text-align: center;
}

@media (max-width: 768px) {
    .paint-calculator {
        padding: 15px;
        margin: 10px;
    }

    .paint-calculator input[type="number"],
    .paint-calculator button {
        padding: 10px;
    }
}

.input-adjust.button-minus {
    background-color: rgb(243, 162, 150)!important;
    border: none;
    cursor: pointer;
}

.input-adjust.button-minus:hover {
    background-color: #fff!important;
    color: black;
    border: 1px solid rgb(243, 162, 150);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]:focus {
    outline: none;
}

#toggleCalculator {
    padding: 12px 30px;
    border-radius: 25px;
    background-color: #ca0707;
    color: white;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

#toggleCalculator:hover {
    background-color: #b20606;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#toggleCalculator:active {
    transform: translateY(0);
}

/* Calculator Popup Styles */
.calculator-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.calculator-overlay.active {
    display: block;
}

.calculator-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
}

.calculator-popup.active {
    display: block;
}

.calculator-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.calculator-popup-header h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.close-calculator {
    all: unset !important;
    background: transparent !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    color: #999 !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.close-calculator:hover {
    background: rgba(0,0,0,0.06) !important;
    color: #333 !important;
}

.close-calculator svg {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
}

.calculator-popup-content {
    padding: 20px;
}

.calculator-popup-content .field {
    margin-bottom: 20px;
}

.calculator-popup-content label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
}

.calculator-popup-content input[type="number"] {
    width: 80px;
    padding: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    margin: 0 10px;
    transition: border-color 0.2s ease;
}

.calculator-popup-content input[type="number"]:focus {
    outline: none;
    border-color: #ca0707;
}

.calculator-popup-content .input-adjust {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background-color: #ca0707;
    color: white;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.calculator-popup-content .input-adjust:hover {
    background-color: #b20606;
}

#go-to-accessories-modal.active {
    display: block;
    width: 100%;
    background-color: #ca0707;
    color: white;
    padding: 1em;
    border: none;
    font-size: 17px;
    cursor: pointer;
    text-align: center;
    border-radius: 10px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#go-to-accessories-modal.inactive {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed !important;
}

#go-to-accessories-modal {
    margin-top: 10px;
    display: block;
    width: 100%;
    background-color: #ca0707;
    color: white;
    padding: 1em;
    border: none;
    font-size: 17px;
    cursor: pointer;
    text-align: center;
    border-radius: 10px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.accessories-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.accessory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #cacaca;
    background-color: #fff;
    border-radius: 20px;
    position: relative;
}

.accessory-image {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

.accessory-info {
    flex-grow: 1;
}

.accessory-name, .accessory-price {
    display: block;
    font-family: 'Poppins';
    font-size: 14px;
    color: black;
}

.add-accessory {
    background-color: rgb(178, 216, 180) !important;
    cursor: pointer;
    font-size: 25px !important;
    height: 35px;
    width: 35px;
    padding: 0px !important;
    margin-right: 20px;
    margin-bottom: 0px;
    border-radius: 50px !important;
    font-family: 'Poppins', sans-serif !important;
    line-height: 35px !important;
    border: 1px solid #cacaca;
    min-height: 0 !important;
    font-weight: 400 !important;
}

.add-accessory:hover {
    background-color: #fff !important;
    color: black;
    border: 1px solid rgb(178, 216, 180);
}

.right-section {
    /* Din eksisterende styling */
}

#temporary-cart-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.button {
    /* Tilpas knapstilen efter behov */
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #636767;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: flex;
    vertical-align: middle;
    margin-right: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media only screen and (max-width: 1510px) {
    .color-swatch {
        width: 50px;
        height: 50px;
        border-radius: 30px;
    }

    .thumbnail {
        width: 90px;
        height: auto; 
    }

    .color-name {
        margin-bottom: 5px;
        font-size: 13px;
        padding-top: 5px;
    }

    .color-chart {
        font-size: 10px;
    }

    .color-container {
        width: calc(33% - 10px);
    }

    #go-to-quantity-selection {
        font-size: 14px;
    }
}

@media only screen and (max-width: 1150px) {
    .thumbnail {
        width: 70px;
        height: auto; 
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-logo {
        width: 100px;
    }

    #selected-color-name {
        font-size: 12px;
    }
}

@media only screen and (max-width: 1050px) {
    .color-container {
        width: calc(50% - 10px);
    }
}

@media only screen and (max-width: 850px) {
    .color-picker-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .color-container {
        width: calc(25% - 10px);
    }

    #color-selection-container {
        max-height: 400px;
    }

    .color-preview {
        width: 100%;
        height: 100px;
    }

    .color-swatch {
        justify-content: space-around;
    }

    #color-search-input {
        width: 96%;
        margin-top: 10px;
        margin-left: 0px;
    }

    .modal-header {
        padding: 0px;
        margin-bottom: 5px;
    }

    .modal-content {
        padding-top: 10px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
    }

    #selected-color-name {
        font-size: 13px;
    }

    #go-to-quantity-selection {
        width: 49%;
        font-size: 13px;
    }

    .color-container {
        margin-left: 0px;
    }
}

@media only screen and (max-width: 768px) {
    .color-container {
        width: calc(50% - 10px);
    }
}

@media only screen and (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100%;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 10px;
        margin: 0;
        border: none;
        border-radius: 0;
        overflow-x: hidden;
    }
    
    .color-picker-layout {
        gap: 10px;
        padding: 0 5px;
        padding-top: 260px; /* Plads til sticky billede */
        margin: 0;
        box-sizing: border-box;
        width: 100%;
    }
    
    .color-picker-left,
    .color-picker-right {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    
    .color-name-row {
        display: none; /* Skjult som default på mobil */
        gap: 8px;
        padding: 10px;
        box-sizing: border-box;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 1001;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
        align-items: center;
    }
    
    .color-name-row.visible {
        display: flex;
    }
    
    .clear-color-btn {
        display: none !important; /* Skjult som default, også på mobil */
    }
    
    .color-name-row.visible .clear-color-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        min-width: 28px;
        border: none;
        background: transparent;
        color: #999;
        border-radius: 50%;
        cursor: pointer;
        flex-shrink: 0;
        padding: 0;
    }
    
    .clear-color-btn:hover {
        background: rgba(0,0,0,0.06);
        color: #666;
    }
    
    .clear-color-btn svg {
        display: block;
    }

    #selected-image {
        height: 250px;
        object-fit: cover;
        object-position: top;
        border-radius: 0;
    }

    #selected-image-container {
        width: 100%;
        margin: 0;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        background: #fff;
    }
    
    #thumbnail-container {
        bottom: 5px;
    }
    
    .modal-header {
        display: none;
    }
    
    .close {
        position: fixed;
        top: 10px;
        right: 15px;
        z-index: 1002;
        color: #fff;
        text-shadow: 0 1px 3px rgba(0,0,0,0.8);
        font-size: 35px;
        margin: 0;
    }

    .thumbnail {
        width: 45px;
    }

    .color-swatch {
        width: 32px;
        height: 32px;
    }

    .color-category-text {
        font-size: 6px;
    }
    
    .color-category-filter {
        padding: 2px !important;
    }
    
    .color-category-filters {
        width: 100%;
        box-sizing: border-box;
        padding: 0 5px;
        flex-wrap: nowrap;
        gap: 2px;
        justify-content: space-between;
    }

    #color-and-name-container {
        margin-top: 5px;
        height: 42px;
    }

    #go-to-quantity-selection {
        margin-top: 5px;
        height: 42px;
    }

    #color-search-input {
        width: 100%;
        margin-top: 0;
        height: 40px;
        margin-left: 0;
    }

    #color-display {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }
    
    .color-search-container {
        width: 100%;
        box-sizing: border-box;
        padding: 0 5px;
    }
    
    #enter-custom-color {
        width: calc(100% - 10px) !important;
        box-sizing: border-box;
        margin: 0 5px !important;
    }
    
    .popular-colors-section {
        margin: 0 5px;
        width: calc(100% - 10px);
    }

    #thumbnail-container {
        bottom: 5px;
    }

    .modal-title {
        font-size: 14px;
    }

    .modal-call {
        font-size: 14px;
    }

    .color-container {
        min-width: 140px;
        margin: 5px;
    }

    #color-selection-container {
        max-height: none;
        margin-top: 0px;
        overflow-y: visible;
    }

    .color-preview {
        max-height: 125px;
    }

    .color-container.selected {
        box-shadow: 0 0 6px #000;
        border: 1px solid #777777c9;
    }

    .modal-body-flex {
        display: block;
        padding: 0 8px;
    }

    .left-section {
        padding: 0;
    }
    
    #product-variants-container {
        order: unset;
    }

    .variant-price {
        font-size: 14px;
        margin-left: auto;
        text-align: right;
        white-space: nowrap;
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 2px;
    }
    
    .variant-price del {
        font-size: 11px;
        color: #999;
    }

    .variant-name {
        font-size: 12px;
        margin-right: 10px;
        flex-shrink: 1;
    }
    
    .variant-details {
        flex: 1;
        min-width: 0;
    }

    .variant-image {
        height: 40px !important;
        width: 40px !important;
        margin-right: 10px;
    }

    .variant-quantity button {
        height: 30px;
        width: 30px;
        margin-right: 5px;
    }


    .modal2-title {
        margin-bottom: 10px;
        margin-left: 10px;
    }

    .modal2-title2 {
        margin-bottom: 10px;
        margin-left: 10px;
    }

    .modal2-title3 {
        margin-bottom: 10px;
        margin-left: 10px;
    }

    #toggleCalculator {
        display: block;
        width: 99.3%;
        order: 1;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    #product-variants-container {
        order: 2;
    }
    
    .calculator-popup {
        width: 95%;
        max-width: none;
        max-height: 85vh;
    }
    
    .calculator-popup-header {
        padding: 10px 15px;
    }
    
    .calculator-popup-header h3 {
        font-size: 16px;
    }
    
    .calculator-popup-content {
        padding: 12px 15px;
    }
    
    .calculator-popup-content .field {
        text-align: center;
        margin-bottom: 12px;
    }
    
    .calculator-popup-content label {
        margin-bottom: 6px;
        font-size: 13px;
    }
    
    .calculator-popup-content input[type="number"] {
        width: 60px;
        padding: 8px;
        font-size: 16px;
        margin: 0 8px;
    }
    
    .calculator-popup-content .input-adjust {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .calculator-result {
        padding: 10px 15px !important;
        margin-bottom: 10px;
    }
    
    .calculator-result #result {
        font-size: 16px !important;
        padding: 6px 16px !important;
    }
    
    .calc-recommendation-box {
        padding: 10px !important;
        margin-bottom: 10px;
    }
    
    button.kvali-calc-add-btn-unique,
    button.kvali-calc-add-btn-unique:link,
    button.kvali-calc-add-btn-unique:visited {
        padding: 12px 30px !important;
        margin: 10px auto 5px auto !important;
        font-size: 13px !important;
    }
    
    /* Variant navn på to linjer på mobil */
    .variant-name {
        display: flex;
        flex-direction: column;
        line-height: 1.3;
    }
    
    .variant-separator {
        display: none;
    }
    
    .variant-size {
        font-weight: 600;
        font-size: 12px;
        color: #333;
    }

    .variant-item {
        margin-right: 3px;
        margin-left: 0;
    }
    
    .variant-list {
        margin-left: 0;
        padding: 0;
    }

    .total-price-box {
        margin-right: 0;
        margin-left: 0;
    }

    #selected-color-summary {
        padding: 7px;
        width: 100%;
        box-sizing: border-box;
    }

    #go-to-accessories-modal {
        width: 100%;
        box-sizing: border-box;
    }

    .color-name {
        margin-bottom: 5px;
        font-size: 11px;
    }
}

@media only screen and (max-width: 380px) {
    .color-preview {
        max-height: 110px;
    }
}

	#enter-custom-color {
    background-color: transparent;
    color: #555;
    border: 1px dashed #aaa;
    width: 100%;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#enter-custom-color:hover {
    border-color: #4a7c4a;
    color: #4a7c4a;
    background-color: #f8fdf8;
}

@media only screen and (max-width: 480px) {
    #enter-custom-color {
        width: calc(100% - 10px) !important;
        margin: 0 5px !important;
    }
}

/* Populære farver sektion */
.popular-colors-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.popular-colors-label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.popular-colors-bubbles {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    flex: 1;
    overflow: hidden;
}

.popular-color-bubble {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
    border: 2px solid rgba(0,0,0,0.15) !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    position: relative !important;
}

.popular-color-bubble:hover {
    border-color: #4a7c4a !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2) !important;
}

.popular-color-bubble.selected {
    border-color: #4a7c4a !important;
    border-width: 3px !important;
    box-shadow: 0 0 0 2px rgba(74, 124, 74, 0.3) !important;
}

.popular-color-bubble .bubble-color {
    display: none !important;
}

.popular-color-bubble .bubble-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    margin-bottom: 10px;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
}

.popular-color-bubble .bubble-tooltip .tooltip-name {
    font-weight: 600;
    color: #222;
    display: block;
}

.popular-color-bubble .bubble-tooltip .tooltip-chart {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 2px;
}

.popular-color-bubble .bubble-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}

.popular-color-bubble:hover .bubble-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .popular-colors-section {
        padding: 10px 12px;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .popular-colors-label {
        width: 100%;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .popular-colors-bubbles {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .popular-color-bubble {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }
    
    .popular-color-bubble .bubble-tooltip {
        display: none;
    }
    
    /* Skjul farve 9 og opefter på mobil */
    .popular-color-bubble:nth-child(n+9) {
        display: none !important;
    }
}

/* Skjul farve 15 og opefter på desktop */
.popular-color-bubble:nth-child(n+15) {
    display: none !important;
}

/* ===== NY MÆNGDEVÆLGER ===== */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
    background-color: #f8f8f8;
    border-radius: 30px;
    padding: 6px 8px;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.qty-btn {
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    line-height: 1 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Minus-knap: nedtonet som standard */
.qty-minus {
    background-color: #e8e8e8 !important;
    color: #bbb !important;
}

/* Minus-knap: aktiv når der er mængde valgt */
.variant-item.has-quantity .qty-minus {
    background-color: #fff !important;
    color: #666 !important;
    cursor: pointer !important;
    border: 1px solid #ddd !important;
}

.variant-item.has-quantity .qty-minus:hover {
    background-color: rgb(243, 162, 150) !important;
    color: #000 !important;
}

.qty-plus {
    background-color: #4CAF50 !important;
    color: #fff !important;
}

.qty-plus:hover:not(:disabled) {
    background-color: #45a049 !important;
}

.qty-btn:disabled {
    background-color: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
}

.qty-display {
    min-width: 32px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #999;
}

/* Når der er valgt mængde */
.variant-item.has-quantity {
    border-color: #4CAF50;
    background-color: #f9fff9;
}

.variant-item.has-quantity .quantity-selector {
    border-color: #4CAF50;
    background-color: #fff;
}

.variant-item.has-quantity .qty-display {
    color: #4CAF50;
    font-weight: 700;
}

/* Mobil styling for ny mængdevælger */
@media only screen and (max-width: 480px) {
    .quantity-selector {
        padding: 3px;
        margin-left: 8px;
    }
    
    .qty-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }
    
    .qty-display {
        min-width: 28px;
        font-size: 14px;
    }
    
    /* Badges på mobil */
    .out-of-stock-badge {
        left: 5px;
        top: -8px;
        font-size: 9px;
        padding: 4px 6px;
        z-index: 10;
    }
    
    .variant-sale-label {
        right: 5px;
        top: -8px;
        font-size: 9px;
        padding: 3px 6px;
        z-index: 10;
    }
    
    /* Giv plads til badges */
    .variant-item {
        margin-top: 12px;
        overflow: visible;
    }
}

/* ===== BEREGNER TILFØJ KNAP ===== */
.calculator-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f0f9f0;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 15px 0;
}

.calculator-result .result-label {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin: 0;
}

.calculator-result #result {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #4CAF50;
    margin: 0;
}

/* Kvali beregner anbefalings-boks */
.calc-recommendation-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    background: #f8fdf8 !important;
    border: 1px solid #c8e6c8 !important;
    border-radius: 10px !important;
    padding: 15px !important;
    margin: 15px 0 !important;
}

.calc-recommendation-box .calc-recommendation-icon {
    font-size: 20px !important;
    line-height: 1 !important;
    margin-bottom: 5px !important;
}

.calc-recommendation-box .rec-label {
    display: block !important;
    color: #555 !important;
    font-size: 13px !important;
    margin-bottom: 10px !important;
}

.calc-recommendation-box .calc-recommendation-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.calc-recommendation-box .calc-rec-badge {
    display: inline-block !important;
    background: #4a7c4a !important;
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.calc-recommendation-box p#calc-rec-description {
    color: #555 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Blink animation for oversigt */
@keyframes kvali-highlight-pulse {
    0% {
        outline: 3px solid rgba(46, 125, 50, 0.8);
        outline-offset: 0px;
    }
    50% {
        outline: 3px solid rgba(46, 125, 50, 0.5);
        outline-offset: 4px;
    }
    100% {
        outline: 3px solid rgba(46, 125, 50, 0);
        outline-offset: 8px;
    }
}

.kvali-highlight-added {
    animation: kvali-highlight-pulse 0.6s ease-out 2 !important;
}

/* Kvali beregner knap - unik klasse */
button.kvali-calc-add-btn-unique,
button.kvali-calc-add-btn-unique:link,
button.kvali-calc-add-btn-unique:visited {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 300px !important;
    margin: 15px auto 5px auto !important;
    padding: 14px 40px !important;
    background: #4a7c4a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 30px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
}

button.kvali-calc-add-btn-unique:hover,
button.kvali-calc-add-btn-unique:focus,
button.kvali-calc-add-btn-unique:active {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 300px !important;
    margin: 15px auto 5px auto !important;
    padding: 14px 40px !important;
    background: #3d673d !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 30px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    outline: none !important;
}

@media only screen and (max-width: 480px) {
    .calculator-result {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 10px 15px;
    }
    
    .calculator-result #result {
        font-size: 20px;
    }
    
    .calc-recommendation-box {
        padding: 12px;
    }
    
    .calc-rec-badge {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .calc-recommendation-box p {
        font-size: 12px;
    }
    
    button.kvali-calc-add-btn-unique,
    button.kvali-calc-add-btn-unique:hover {
        padding: 12px 30px !important;
        font-size: 15px !important;
        max-width: 260px !important;
    }
}
