.ft-configurator {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.ft-configurator-header h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.ft-configurator-header p {
    margin-bottom: 0;
    font-size: 0.9em;
    color: #2B2A29;
}

.ft-configurator-products {
    margin: 20px 0;
}

.ft-configurator-category-title {
    margin: 1.5em 0 1em 0;
    font-size: 1em;
    font-weight: 500;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ft-configurator-category-title:first-child {
    margin-top: 0;
}

.ft-configurator-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.ft-configurator-product-item {
    background-color: #fff;
    border: 2px solid #eee;
    border-radius: 5px;
    padding: 10px;
    transition: all 0.3s ease;
}

.ft-configurator-product-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ft-configurator-product-checkbox {
    display: block;
    cursor: pointer;
    margin: 0;
}

.ft-configurator-product-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.ft-configurator-product-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ft-configurator-product-image {
    margin-bottom: 10px;
}

.ft-configurator-product-image img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.ft-configurator-product-info {
    width: 100%;
}

.ft-configurator-product-name {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9em;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ft-configurator-product-price {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1em;
}

.ft-configurator-product-item:has(input:checked) {
    border-color: #007bff;
    background-color: #e7f3ff;
}

.ft-configurator-list {
    list-style: none;
    padding: 0;
}

.ft-configurator-list li {
    padding: 10px;
    margin: 5px 0;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
}

.ft-configurator-total {
    margin: 15px 0;
    padding: 10px;
    background-color: #fff;
    border-top: 2px solid #333;
    font-size: 1.2em;
}

.ft-configurator-actions {
    margin-top: 15px;
}

.ft-configurator-article-name {
    text-align: left;
}

.ft-configurator-article-price {
    white-space: nowrap;
}

.ft-configurator-variations {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.ft-configurator-variation-group {
    margin-bottom: 10px;
}

.ft-configurator-variation-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9em;
}

.ft-configurator-variation-select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.9em;
}

.ft-configurator-variation-radio {
    margin-right: 5px;
}

.form-check {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.form-check label {
    margin-left: 5px;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.ft-configurator-variations-info {
    display: block;
    color: #666;
    font-size: 0.85em;
    margin-top: 5px;
    font-style: italic;
}

.ft-configurator-selected-variations {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

.ft-configurator-selected-variations li {
    padding: 2px 0;
    border: none;
    background: none;
    font-size: 0.85em;
    color: #666;
}

.ft-configurator-variation-select option:disabled,
.ft-configurator-variation-select option.unavailable {
    color: #999;
    background-color: #f5f5f5;
}

.form-check.disabled,
.form-check.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-check.disabled label,
.form-check.unavailable label {
    color: #999;
    cursor: not-allowed;
}

.form-check.disabled input[type="radio"]:disabled,
.form-check.unavailable input[type="radio"]:disabled {
    cursor: not-allowed;
}

.ft-configurator-variation-select option:not(:disabled):first-of-type:not([value=""]) {
    font-weight: 500;
}

.ft-configurator-price-loader {
    display: none;
    vertical-align: middle;
}

.ft-configurator-price-loader.show {
    display: inline-block;
}

.ft-configurator-price-value {
    display: none;
}

.ft-configurator-price-value.show {
    display: inline;
}

.ft-configurator-spinner-small {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: ft-configurator-spin 1s linear infinite;
    display: inline-block;
}

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

.ft-configurator-selected-articles {
    display: none;
}

.ft-configurator-selected-articles.show {
    display: block;
}

.ft-configurator-total {
    display: none;
}

.ft-configurator-total.show {
    display: block;
}

@media (max-width: 768px) {
    .ft-configurator-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}
@media print {
    .ft-configurator-print-overview-wrapper {
        page-break-before: always;
        break-before: page;
    }
    .ft-print-zubehoer-overview {
        margin-top: 0;
        padding-top: 0.5rem;
        color: #000;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .ft-print-zubehoer-main-title {
        margin: 0 0 1rem;
        padding-bottom: 0.3rem;
        border-bottom: 2px solid #892520;
        color: #892520;
        font-size: 0.95rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    .ft-print-zubehoer-group {
        margin: 0.8rem 0 1.4rem;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .ft-print-zubehoer-group-title {
        margin: 0 0 0.5rem;
        color: #8a8a8a;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }
    .ft-print-zubehoer-items {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }
    .ft-print-zubehoer-card {
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        padding: 0.55rem 0.8rem;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .ft-print-zubehoer-card--simple {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
    }
    .ft-print-zubehoer-card--simple .ft-print-zubehoer-name {
        font-weight: 600;
        color: #111;
    }
    .ft-print-zubehoer-card--simple .ft-print-zubehoer-price {
        color: #892520;
        font-weight: 700;
        white-space: nowrap;
    }
    .ft-print-zubehoer-card-header {
        margin-bottom: 0.45rem;
        color: #111;
        font-weight: 600;
        text-align: left;
    }
    .ft-print-zubehoer-table {
        width: 100%;
        border-collapse: collapse;
    }
    .ft-print-zubehoer-table th,
    .ft-print-zubehoer-table td {
        padding: 0.28rem 0.5rem;
        vertical-align: top;
        text-align: left;
    }
    .ft-print-zubehoer-table thead th {
        color: #8a8a8a;
        font-size: 0.78em;
        font-weight: 500;
        border-bottom: 1px solid #e5e5e5;
    }
    .ft-print-zubehoer-table thead .ft-print-zubehoer-th-price {
        text-align: right;
    }
    .ft-print-zubehoer-table tbody td {
        border-bottom: 1px dotted #eee;
    }
    .ft-print-zubehoer-table tbody tr:last-child td {
        border-bottom: none;
    }
    .ft-print-zubehoer-table .ft-print-zubehoer-price-cell {
        color: #892520;
        font-weight: 700;
        text-align: right;
        white-space: nowrap;
    }
    .ft-print-zubehoer-matrix th:not(:first-child),
    .ft-print-zubehoer-matrix td:not(:first-child) {
        text-align: right;
    }
    .ft-print-zubehoer-matrix thead .ft-print-zubehoer-th-dim {
        white-space: normal;
    }
}

