/**
 * Quantity Selector Frontend Styles
 * Basic styling for testing - will be improved later
 */

.flgb-qty-selector {
    max-width: 600px;
    margin: 0 auto;
    font-family: inherit;
}

/* Step Heading */
.flgb-step-heading {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 25px;
}

/* Discount Banner */
.flgb-discount-banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.flgb-discount-img {
    width: 60px;
    height: auto;
}

.flgb-discount-text {
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flgb-discount-heading {
    font-size: 17px;
    font-weight: 700;
    color: #c73126;
    text-align: left;
}

.flgb-discount-subtext {
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

/* Quantity Options Grid */
.flgb-qty-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Single Option */
.flgb-qty-option {
    flex: 1 1 calc(50% - 10px);
    min-width: 250px;
    border: 2px solid #fff;
    border-radius: 0;
    padding: 8px 5px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: #fff;
    box-shadow: 0 0 4px #d8d8d8;
}

.flgb-qty-option:hover {
    background: #f5f5f5;
    border-color: #f5f5f5;
}

.flgb-qty-option.selected {
    border-color: #1ac70e;
    background: #fafefa;
}

/* Most Popular Badge */
.flgb-most-popular {
    border-color: #fff;
}

.flgb-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #387ff5;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 12px;
    border-radius: 3px;
}

/* Option Content - 50/50 Layout */
.flgb-qty-content {
    display: flex;
}

.flgb-qty-image {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flgb-qty-image img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.flgb-qty-info {
    width: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.flgb-qty-number {
    font-weight: 700;
    line-height: 1;
}

.flgb-qty-num {
    font-size: 36px;
}

.flgb-qty-x {
    font-size: 30px;
}

.flgb-qty-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.flgb-qty-strike {
    font-size: 13px;
    color: #909090;
    text-decoration: line-through;
    line-height: 1;
}

.flgb-qty-price {
    font-size: 22px;
    font-weight: 700;
    color: #21b601;
    line-height: 1;
}

.flgb-qty-shipping {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

/* Hidden link for each option */
.flgb-add-to-cart-link {
    display: none;
}

/* Add to Cart Button */
.flgb-add-to-cart-wrapper {
    margin-top: 30px;
}

.flgb-add-to-cart-btn {
    width: 100%;
    padding: 20px 15px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: #21b601;
    border: none;
    border-bottom: 4px solid #009900;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.flgb-add-to-cart-btn:hover:not(:disabled) {
    background: #01ad00;
}

.flgb-add-to-cart-btn:disabled {
    background: #ccc;
    border-bottom-color: #999;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
    .flgb-qty-option {
        flex: 1 1 100%;
    }
}

@media (max-width: 575px) {
    .flgb-add-to-cart-wrapper {
        margin-top: 20px;
    }
    
    .flgb-discount-subtext {
        font-size: 14px;
    }
}
