/* ═══════════════════════════════════════════════════════════
   VARTEC STAFFELPREISE PRO V3.2.3 - KOMPAKT & FINAL
   ═══════════════════════════════════════════════════════════ */

/* TITEL */
.vartec-tier-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    color: #333 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.vartec-icon {
    font-size: 20px !important;
}

/* BUTTON GRID */
.vartec-button-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
}

/* BUTTON CARDS - KOMPAKT */
.vartec-qty-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 8px 10px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 85px !important;
    text-align: center !important;
    pointer-events: auto !important;
    user-select: none !important;
    position: relative !important;
}

.vartec-qty-card:hover {
    border-color: #000000 !important;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.15) !important;
    transform: translateY(-2px) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.vartec-qty-card.selected {
    background: #f6961d !important;
    border-color: #000000 !important;
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.vartec-qty-card.recommended::after {
    content: '⭐' !important;
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    font-size: 14px !important;
}

/* BUTTON CONTENT */
.qty-amount {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.1 !important;
    margin-bottom: 2px !important;
}

.vartec-qty-card.selected .qty-amount {
    color: #000 !important;
}

.qty-price {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #f6961d !important;
    line-height: 1.1 !important;
}

.vartec-qty-card.selected .qty-price {
    color: #000 !important;
}

/* RABATT-BADGES - KLEINER & TIEFER */
.qty-discount {
    display: inline-block !important;
    background: #28a745 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    margin-top: 2px !important;
    line-height: 1 !important;
}

.vartec-qty-card.selected .qty-discount {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

/* CUSTOM INPUT - KOMPAKTER */
.vartec-custom-qty-input-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    background: #ffffff !important;
    border: 1px dashed #000000 !important;
    border-radius: 6px !important;
    min-width: 119px !important;
}

.vartec-custom-qty-input {
    flex: 1 !important;
    padding: 6px 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    pointer-events: auto !important;
    cursor: text !important;
}

.vartec-custom-qty-input:focus {
    border-color: #2271b1 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1) !important;
    pointer-events: auto !important;
}

.vartec-custom-qty-input:disabled,
.vartec-custom-qty-input[disabled] {
    pointer-events: auto !important;
    cursor: text !important;
    opacity: 1 !important;
    background: #fff !important;
}

.vartec-custom-qty-submit {
    background: #f6961d !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.vartec-custom-qty-submit:hover {
    background: #000000 !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}

.single-product-wrapper form.cart .variations tr label {
    color: #000000;
    font-weight: 700;
    font-size: 16px!important;
}

input.vartec-custom-qty-input {
    background-color: #fff !important;
    color: #000 !important;
}

.vartec-custom-qty-submit:hover {
    background: #000000 !important;
    transform: translateY(-1px) !important;
}

/* BERECHNUNGSFELD - VIEL KOMPAKTER */
.vartec-selection-info {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 6px !important;
    padding: 10px !important;
    margin-top: 12px !important;
}

.vartec-info-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}

.info-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    padding: 0 !important;
}

.info-label {
    font-size: 12px !important;
    color: #000 !important;
    font-weight: 600 !important;
    text-transform: inherit !important;
    letter-spacing: 0.3px !important;
    line-height: 1 !important;
    font-family: var(--theme-heading-font);
}

.info-value {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #333 !important;
    line-height: 1.2 !important;
}

.savings-item {
    grid-column: 1 / -1 !important;
    background: #d4edda !important;
    padding: 8px !important;
    border-radius: 4px !important;
    text-align: center !important;
    margin-top: 4px !important;
}

.savings-item .info-label {
    color: #155724 !important;
    font-size: 11px !important;
    margin-bottom: 2px !important;
}

.savings-item .info-value {
    color: #155724 !important;
    font-size: 15px !important;
}

.vartec-price-comparison {
    padding: 6px !important;
    background: rgba(40, 167, 69, 0.1) !important;
    border-radius: 4px !important;
    margin-top: 6px !important;
}

.comparison-text {
    color: #666 !important;
    font-size: 11px !important;
}

.normal-price-display {
    font-weight: 600 !important;
    color: #999 !important;
}

/* HINT - KOMPAKTER */
.vartec-hint {
    font-size: 11px !important;
    color: #666 !important;
    margin-top: 8px !important;
    padding: 8px !important;
    background: #f8f9fa !important;
    border-radius: 4px !important;
    line-height: 1.4 !important;
}

/* ═══════════════════════════════════════════════════════════
   HIDE DEFAULT QUANTITY
   ═══════════════════════════════════════════════════════════ */

.quantity {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - TABLET
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .vartec-button-grid {
        gap: 8px !important;
    }

    .vartec-qty-card {
        min-width: 80px !important;
        padding: 8px 10px !important;
    }

    .qty-amount {
        font-size: 12px !important;
    }

    .qty-price {
        font-size: 13px !important;
    }

    .qty-discount {
        font-size: 10px !important;
        padding: 2px 5px !important;
    }

    .vartec-custom-qty-input-wrapper {
        width: 100% !important;
        order: 999 !important;
        margin-top: 8px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 480px) {

    .vartec-tier-title {
        font-size: 16px !important;
        padding: 8px 0 !important;
        margin-bottom: 10px !important;
    }

    .vartec-button-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .vartec-qty-card {
        min-width: 0 !important;
        padding: 8px 4px !important;
    }

    .qty-amount {
        font-size: 11px !important;
    }

    .qty-price {
        font-size: 12px !important;
    }

    .qty-discount {
        font-size: 9px !important;
        padding: 2px 5px !important;
    }

    .vartec-custom-qty-input-wrapper {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-top: 8px !important;
        padding: 8px !important;
    }

    .vartec-custom-qty-input {
        font-size: 14px !important;
        padding: 8px !important;
    }

    .vartec-custom-qty-submit {
        font-size: 14px !important;
        padding: 8px 12px !important;
    }

    .vartec-selection-info {
        padding: 10px !important;
        margin-top: 10px !important;
    }

    .vartec-info-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .info-item {
        padding: 6px !important;
        background: #fff !important;
        border-radius: 4px !important;
    }

    .info-label {
        font-size: 9px !important;
    }

    .info-value {
        font-size: 12px !important;
    }

    .savings-item {
        padding: 8px !important;
    }

    .savings-item .info-label {
        font-size: 10px !important;
    }

    .savings-item .info-value {
        font-size: 14px !important;
    }

    .vartec-hint {
        font-size: 10px !important;
        padding: 6px !important;
    }
}

.vartec-hint-max {
    color: #b45309 !important;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 6px 10px !important;
}


/* Dropdown */
.vartec-custom-qty-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: transparent;
    min-width: 200px;
}

/* Dropdown */
.vartec-dropdown-wrapper {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 6px 8px;
    background: transparent;
    min-width: 160px;
    display: flex;
    align-items: center;
}

.vartec-qty-dropdown {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
    appearance: auto;
    transition: border-color 0.2s;
}

.vartec-qty-dropdown:focus {
    border-color: #f0a500;
    box-shadow: 0 0 0 2px rgba(240,165,0,0.15);
}

.vartec-qty-dropdown option[value=""] {
    color: #999;
}