/* 24meter Anpassat pris – kalkylator-stilar */

.tmp24-calculator {
    margin-top: 1.5rem;
}

.tmp24-field {
    margin-bottom: 1.25rem;
}

.tmp24-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Färgchips */
.tmp24-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tmp24-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border: 2.5px solid transparent;
    border-radius: 8px;
    background: #f0ede8;
    color: #1a1a1a;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.1s;
    font-family: inherit;
}
.tmp24-chip:hover { transform: translateY(-1px); }
.tmp24-chip.active { border-color: #d9520a; }

.tmp24-chip--bla  { background: #e8edf5; color: #2a3a5a; }
.tmp24-chip--gron { background: #e6f0e8; color: #1f4a28; }
.tmp24-chip--sva  { background: #2a2a2a; color: #e8e8e8; }
.tmp24-chip--rod  { background: #f5e8e8; color: #5a1a1a; }

.tmp24-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.12);
    flex-shrink: 0;
}

/* Mått-inputs */
.tmp24-dims {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 0.75rem;
}

.tmp24-sep {
    font-size: 1.5rem;
    font-weight: 300;
    color: #aaa;
    padding-bottom: 0.5rem;
    text-align: center;
}

.tmp24-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tmp24-input-wrap label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

.tmp24-input-wrap input[type="number"] {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    background: #faf9f7;
    color: #1a1a1a;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}
.tmp24-input-wrap input[type="number"]::-webkit-inner-spin-button,
.tmp24-input-wrap input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}
.tmp24-input-wrap input[type="number"]:focus {
    outline: none;
    border-color: #d9520a;
}

.tmp24-unit {
    font-size: 0.72rem;
    color: #888;
    text-align: right;
}

/* Hint */
.tmp24-hint {
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    color: #888;
}

/* Varningsruta */
.tmp24-warn {
    background: #fff3cd;
    border: 1.5px solid #f0a800;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #7a5000;
    margin-bottom: 1rem;
}

/* Prissammanfattning */
.tmp24-summary {
    background: #fff8f4;
    border: 1.5px solid #f3c4a8;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.tmp24-summary__empty {
    display: block;
    text-align: center;
    color: #999;
    font-size: 0.875rem;
}

.tmp24-summary__detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tmp24-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.tmp24-summary__row span:first-child {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #777;
}

.tmp24-summary__row--total span:last-child {
    font-size: 1.75rem;
    font-weight: 700;
    color: #d9520a;
    font-variant-numeric: tabular-nums;
}

.tmp24-summary__row--incl span:last-child {
    font-size: 0.95rem;
    color: #888;
    font-variant-numeric: tabular-nums;
}

.tmp24-summary__divider {
    border-top: 1px solid #e8ddd8;
    margin: 0.25rem 0;
}

.tmp24-min-note {
    font-size: 0.78rem;
    font-weight: 600;
    color: #d9520a;
}

/* Lägg i korg-knapp */
.tmp24-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: #d9520a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.tmp24-btn:hover:not(:disabled) { background: #b84208; }
.tmp24-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 480px) {
    .tmp24-dims {
        gap: 0.5rem;
    }
}
