/*
Konfigurátor řezů ALUHOBBY - Styly
*/
.p-info-wrapper:has(.alu-cuts-configurator) .quantity,
.p-info-wrapper:has(.alu-cuts-configurator) .btn.add-to-cart-button:before,
.p-info-wrapper:has(.alu-cuts-configurator) #dkLabNoteMainWrapper {
    display: none;
}

.p-info-wrapper:has(.alu-cuts-configurator) .add-to-cart-button {
    width: 100%;
}

.alu-cuts-configurator {
    margin: 1.5rem 0;
}

.alu-cuts-title {
    margin: 0 0 1rem 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.alu-cuts-placeholder {
    padding: 0.75rem;
    background-color: #dedfdf;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0px;
}

.alu-cuts-cut-price-info {
    padding: 0.75rem;
    background-color: #dedfdf;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0px;
    border-top: 1px solid #ccc;
}

.alu-cuts-cut-price-info:empty {
    display: none;
}

.alu-cuts-table-wrapper {
    margin: 0 0 1rem 0;
    overflow-x: auto;
}

.alu-cuts-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.alu-cuts-table thead {
    background-color: #f5f5f5;
}

.alu-cuts-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    ;
    color: #333;
}

.alu-cuts-table td {
    padding: 0.75rem 0.40rem;
}

.alu-cuts-table tr:last-child td {
    border-bottom: none;
}

.alu-cuts-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    font-size: 14px;
    ;
    transition: border-color 0.2s;
}

.alu-cuts-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.alu-cuts-input.alu-cuts-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.alu-cuts-input.alu-cuts-invalid:focus {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.alu-cuts-remove {
    padding: 0.5rem 1rem;
    background-color: #dc3545;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    width: 100%;
}

.alu-cuts-remove:hover {
    background-color: #ce1c2e;
}

.alu-cuts-remove:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.alu-cuts-add-row {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.alu-cuts-add-row:hover {
    background-color: #218838;
}

.alu-cuts-add-row:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.alu-cuts-add-row:active {
    transform: translateY(1px);
}

.alu-cuts-summary {
    margin-top: 1.5rem;
}

.alu-cuts-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.alu-cuts-summary-item:last-child {
    border-bottom: none;
}

.alu-cuts-summary-total {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid #333;
    font-weight: 600;
    font-size: 18px;
}

.alu-cuts-summary-label {
    color: #000000;
}

.alu-cuts-summary-value {
    color: #333;
    font-weight: 500;
}

.alu-cuts-summary-total .alu-cuts-summary-value {
    font-size: 18px;
    color: #e75211;
}

/* Responsive design */
@media (max-width: 768px) {
    .alu-cuts-table {
        font-size: 14px;
    }

    .alu-cuts-table th,
    .alu-cuts-table td {
        padding: 0.5rem;
    }

    .alu-cuts-summary-item {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Accessibility */
.alu-cuts-configurator *:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Loading state */
.alu-cuts-configurator[data-loading="true"] {
    opacity: 0.6;
    pointer-events: none;
}

/* Error state */
.alu-cuts-error {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #fff5f5;
    border: 1px solid #dc3545;
    border-radius: 3px;
    color: #721c24;
    font-size: 0.9rem;
}