/* Hide WC + theme extras on gift card product pages. Belt-and-suspenders for
   themes (Flatsome etc.) that bypass standard remove_action() hooks. */
.wcgc-gift-card-page .related,
.wcgc-gift-card-page .related.products,
.wcgc-gift-card-page .upsells,
.wcgc-gift-card-page .upsells.products,
.wcgc-gift-card-page .up-sells,
.wcgc-gift-card-page .cross-sells,
.wcgc-gift-card-page .product_meta,
.wcgc-gift-card-page .product-meta,
.wcgc-gift-card-page .posted_in,
.wcgc-gift-card-page .tagged_as,
.wcgc-gift-card-page .sku_wrapper,
.wcgc-gift-card-page #reviews,
.wcgc-gift-card-page .woocommerce-tabs .tabs li.reviews_tab,
.wcgc-gift-card-page .woocommerce-tabs .tabs li.additional_information_tab,
.wcgc-gift-card-page .related-products-wrapper,
.wcgc-gift-card-page .product-section.product-section-related,
.wcgc-gift-card-page .product-section.product-section-upsell,
.wcgc-gift-card-page .row-related,
.wcgc-gift-card-page .row-upsell,
.wcgc-gift-card-page .product-page-related,
.wcgc-gift-card-page .product-page-upsells,
.wcgc-gift-card-page section[class*="related"],
.wcgc-gift-card-page section[class*="upsell"],
.wcgc-gift-card-page aside[class*="related"],
.wcgc-gift-card-page aside[class*="upsell"],
.wcgc-gift-card-page .product-footer .related,
.wcgc-gift-card-page .product-footer .upsells,
.wcgc-gift-card-page .product-page-accordian,
.wcgc-gift-card-page .product-page-accordion {
    display: none !important;
}

.wcgc-form {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fafafa;
}

.wcgc-form .form-row {
    margin-bottom: 10px;
}

.wcgc-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

/* Inputs inherit width/height from theme via `.input-text` class on each element. */

.wcgc-amount-range {
    display: block;
}

.wcgc-slider {
    width: 100%;
    margin: 6px 0 10px;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}

.wcgc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #2271b1;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.wcgc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #2271b1;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.wcgc-amount-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcgc-amount-number {
    max-width: 140px;
    text-align: right;
}

.wcgc-currency {
    font-weight: 600;
    color: #444;
}

.wcgc-form .wcgc-gc-hint,
.wcgc-form .description {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #777;
    font-weight: 400;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0;
}

.wcgc-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.wcgc-gallery-option {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px;
    transition: border-color .15s ease;
    position: relative;
}

.wcgc-gallery-option:has(input:checked) {
    border-color: #2271b1;
}

.wcgc-gallery-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wcgc-gallery-option img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}
