/**
 * WooCommerce Checkout Quantity Control - CSS
 */

/* Általános stílus */
.cqc-controls-wrapper,
.cqc-header,
.cqc-main-header,
.cqc-custom-qty-row,
.cqc-product-name,
.cqc-quantity,
.cqc-remove,
.cqc-qty-input,
.cqc-qty-decrease,
.cqc-qty-increase,
.cqc-continue-shopping,
.blockUI-message {
    font-family: "Poppins", Sans-serif;
    color: #34302F;
}

/* Fő fejléc */
.cqc-main-header {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eeeeee;
}

/* Konténer */
.cqc-controls-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #eeeeee;
}

/* Fejléc */
.cqc-header {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 15px 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Termék sor */
.cqc-custom-qty-row {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    background-color: #fafafa;
    border: 1px solid #f0f0f0;
    position: relative;
}

.cqc-custom-qty-row:last-child {
    margin-bottom: 5px;
}

/* Termék név */
.cqc-product-name {
    flex: 0 0 60%;
    font-weight: 500;
    padding-right: 15px;
    position: relative;
}

/* Termék ár */
.cqc-item-price {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* Mennyiség */
.cqc-quantity {
    flex: 0 0 30%;
    text-align: center;
}

/* Mennyiség vezérlő konténer */
.cqc-quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 120px;
    margin: 0 auto;
}

/* Mennyiség input mező */
.cqc-qty-input {
    width: 45px;
    text-align: center;
    border: 1px solid #e0e0e0;
    padding: 8px 5px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #ffffff;
    -moz-appearance: textfield; /* Firefox */
    box-shadow: none;
    font-weight: 500;
}

/* Input mező nyilak elrejtése */
.cqc-qty-input::-webkit-outer-spin-button,
.cqc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Plusz-mínusz gombok */
.cqc-qty-decrease,
.cqc-qty-increase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 16px;
    user-select: none;
}

.cqc-qty-decrease:hover,
.cqc-qty-increase:hover {
    background-color: #eeeeee;
}

/* Törlés */
.cqc-remove {
    flex: 0 0 10%;
    text-align: center;
}

/* Törlés gomb */
.cqc-remove-item {
    color: #ff6b6b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.cqc-remove-item:hover {
    color: #ff3333;
    background-color: #fff0f0;
    border-color: #ffcccc;
}

/* Vásárlás folytatása */
.cqc-continue-shopping {
    text-align: right;
    margin-bottom: 15px;
}

.cqc-continue-link {
    display: inline-block;
    color: #253896;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    font-size: 16px;
}

.cqc-continue-link:hover {
    background-color: #eeeeee;
    color: #34302F;
    text-decoration: none;
}

/* BlockUI üzenet */
.blockUI-message {
    padding: 15px 20px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    border-left: 4px solid #34302F;
}

/* BlockUI háttér */
.blockUI.blockOverlay {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Reszponzív megjelenés */
@media (max-width: 767px) {
    .cqc-product-name {
        flex: 0 0 50%;
    }
    
    .cqc-quantity {
        flex: 0 0 40%;
    }
    
    .cqc-remove {
        flex: 0 0 10%;
    }
    
    .cqc-quantity-wrapper {
        max-width: 100px;
    }
    
    .cqc-qty-decrease,
    .cqc-qty-increase {
        width: 26px;
        height: 26px;
    }
    
    .cqc-qty-input {
        width: 35px;
        padding: 5px 2px;
    }
    
    .cqc-continue-shopping {
        text-align: center;
    }
}