/* News Letter form */
.newsletter-form .elementor-form-fields-wrapper {
    position: relative;
}

.newsletter-form .elementor-field {
    padding: 15px 10px;
}

.newsletter-form .elementor-field-group.elementor-field-type-submit {
    align-items: flex-start !important;
    position: absolute;
    right: 38px;
    top: 5px;
}

/* Gift a word Page Filter */
/* Font Rules */
.gift-finder-container,
.gift-products-grid,
.filter-box,
.gift-card {
    font-family: "Google Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

.filter-box h3,
.dynamic-heading,
.gift-card-title,
.tile-btn span {
    font-family: "Playfair Display", serif !important;
}

/* Layout Containers */
.gift-finder-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;

}



.filter-box {
    background: #FFFAF1;
    border: 2px solid #DBAA25;
    border-radius: 10px;
    padding: 24px 18px;
    text-align: center;
    max-width: calc(33.33% - 20px);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
}

.filter-box h3 {
    font-family: "Playfair Display", serif !important;
    font-size: 22px;
    color: #1C3527;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.filter-box .subtitle {
    font-size: 13px;
    color: #666666;
    margin: 0 0 18px 0;
}

.tile-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

/* Checkbox Tile Button */
.tile-btn {
    background: #FFFAF1 !important;
    border: 2px solid #DBAA25 !important;
    border-radius: 6px !important;
    padding: 10px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: #113527;
    width: calc(33.33% - 6.66px);
    min-height: 86px;
    height: auto;
    box-sizing: border-box;
}

.tile-icon {
    width: 22px;
    height: 22px;
    color: #113527;
    transition: color 0.2s ease;
}

.tile-icon path {
    color: #113527;
    fill: #113527;
    transition: color 0.2s ease;
}

.tile-btn.active .tile-icon path {
    color: #DBAA25;
    fill: #DBAA25;
}

.tile-btn span {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25em;
    color: #113527;
    text-align: center;
    width: 100%;
    /* Limits text to a maximum of 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    /* Balances words evenly across 2 lines */
    text-wrap: balance;
}


/* Active Multi-Select State */
.tile-btn.active {
    background: #113527 !important;
    border-color: #DBAA25 !important;
}

.tile-btn.active span {
    color: #DBAA25 !important;

}


/* Dynamic Title */
.dynamic-heading {
    text-align: center;
    color: #DBAA25;
    font-family: "Playfair Display", serif !important;
    font-size: clamp(1.25rem, 0.7753rem + 1.519vw, 2rem);
    margin: 40px 0 30px 0;
    font-weight: 500;
}

/* Product Cards Grid */
/* 4-Card Product Grid */
.gift-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


.gift-card {
    background: #FFFDF9;
    border: 1px solid #E6D7BD;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    text-align: center;
    box-sizing: border-box;
}

/* TI Wishlist Positioning */
.gift-card-bookmark {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
}

.gift-card-bookmark .tinv-wl-shortcode-add-to-cart {
    margin: 0 !important;
    padding: 0 !important;
}

.gift-card-content {
    padding: 36px 20px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gift-card-title {
    font-size: 26px;
    letter-spacing: 1px;
    color: #1C3527;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-weight: 600;
}

.gift-card-desc {
    font-size: 13px;
    color: #555555;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* Radio Button Styling (NO Pulse Effect) */
.gift-card-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.radio-icon-available {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #113527;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.radio-dot-inner {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #113527;
}

.status-label.available-label {
    color: #113527;
    font-size: 13px;
    font-weight: 500;
}

.status-label.claimed-label {
    color: #C59B27;
    font-size: 13px;
    font-weight: 500;
}

/* Action Buttons */
.gift-card-action {
    width: 100%;
}

.gift-btn {
    display: block;
    width: 100%;
    padding: 14px 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.btn-primary {
    background: #113527;
    color: #DBAA25 !important;
}

.btn-secondary {
    background: #FFFFFF00;
    color: #DBAA25 !important;
    border-top: 1px solid #E6D7BD;
}

.no-products-msg {
    text-align: center;
    padding: 40px 0;
    font-size: 16px;
    color: #666;
    width: 100%;
}

/* END - Gift a word Page Filter */

/* MEDIA QUERY */
@media (max-width: 991px) {
    .gift-finder-container {
        flex-direction: column;
        gap: 20px;
    }

    .filter-box {
        max-width: 100%;
        width: 100%;
        padding: 12px 9px;
    }

}


@media (max-width: 1024px) {
    .gift-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gift-products-grid {
        grid-template-columns: 1fr;
    }

    .tile-btn span {
        font-size: 10px;
    }

    .newsletter-form .elementor-field-group.elementor-field-type-submit {

        right: 11px;
        top: 4px;
    }

}

/* END - Media QUERY */