/* GyftHint Button Styles */
.gyfthint-button-wrapper {
    margin-top: 10px;
}

.gyfthint-button {
    width: 100%;
    max-width: 345px !important;
    background-color: #fda328;
    font-family: inherit;
    color: #000;
    font-size: 14px;
    justify-content: center;
    align-items: center;
    padding: 8px 15px;
    border: 1.5px solid transparent !important;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 0 auto 1px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    box-shadow: 0 2px 6px rgba(253, 163, 40, 0.15);
}

.gyfthint-button:hover {
    background-color: #fcac07;
}

.gyfthint-button:active {
    transform: translateY(1px);
}

.gyfthint-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.gyfthint-button .gh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
}

.gyfthint-button .gh-icon img {
    height: 24px;
    width: auto;
}

.gyfthint-button .gh-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.gyfthint-button .gh-text span {
    font-weight: 600;
    line-height: 1.2;
}

.gyfthint-button .gh-text .gh-promo-text {
    font-size: 11px;
    font-weight: 700;
    color: #d32f2f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.gyfthint-button .gh-text small {
    font-size: 11px;
    opacity: 0.85;
    line-height: 1.2;
}

/* Button Color Variations */
.gyfthint-button--default {
    background-color: #fda328;
    color: #000;
    border: 1.5px solid transparent !important;
}

.gyfthint-button--default:hover {
    background-color: #fcac07;
}

.gyfthint-button--white {
    background-color: #fff;
    color: #000;
    border: 1.5px solid #ddd !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gyfthint-button--white:hover {
    background-color: #f5f5f5;
}

.gyfthint-button--clear {
    background-color: transparent;
    color: #000;
    border: 1.5px solid #000 !important;
    box-shadow: none;
}

.gyfthint-button--clear:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Button Style Variations */
.gyfthint-button--semi-rounded {
    border-radius: 10px;
}

.gyfthint-button--cornered {
    border-radius: 0px;
}

.gyfthint-button--rounded {
    border-radius: 50px;
}

/* Learn More Link */
.gyfthint-learn-more {
    font-size: 11px;
    font-family: inherit;
    text-align: center;
    margin: 0 auto;
    color: inherit;
    font-weight: 400;
}

.gyfthint-learn-more a {
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
}

.gyfthint-learn-more a:hover {
    opacity: 0.8;
}

.gyfthint-learn-more svg {
    height: 12px;
    width: 12px;
}

/* Modal Styles */
.gyfthint-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.gyfthint-modal.show {
    display: block;
}

.gyfthint-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    text-align: center;
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    height: auto;
    border-radius: 20px;
}

.gyfthint-modal-close {
    color: #333;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 0px;
    z-index: 999999;
    cursor: pointer;
}

.gyfthint-modal-close:hover,
.gyfthint-modal-close:focus {
    color: #000;
}

.gyfthint-modal-content h4 {
    margin-bottom: 0px;
    font-weight: bold;
}

.gyfthint-modal-content p {
    margin: 5px;
    line-height: 18px;
    color: #000;
}

.gyfthint-modal-content img {
    height: 44px !important;
    width: auto !important;
    margin-top: 10px !important;
    padding: 0 !important;
}

/* GyftHint Main Modal (Signup/Login) */
#gyfthintModal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

#gyfthintModal.show {
    display: block;
}

#gyfthintModal .modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    text-align: center;
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    height: auto;
    border-radius: 20px;
}

#gyfthintModal .modal-content img {
    height: 300px !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.gyfthint__button_modal {
    background-color: #fda329;
    font-family: inherit;
    color: #fff !important;
    font-size: 14px;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 0 auto;
    border-radius: 10px;
}

#gyfthintModal #signupButton {
    width: 100%;
    background-color: #fda329;
    color: #fff !important;
    border-radius: 10px;
    margin-top: 5px;
}

#gyfthintModal #loginButton {
    width: 100%;
    margin-top: 0px;
    background: none;
    color: #101b6d !important;
    text-decoration: underline;
}

/* Action Modal (Add Hint / Suggest to Friend) */
#gyfthintModalAction {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

#gyfthintModalAction .modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    text-align: center;
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    height: auto;
    border-radius: 20px;
}

#gyfthintModalAction .modal-content img {
    height: 300px !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.custom-close {
    color: #333;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 0px;
    z-index: 999999;
    cursor: pointer;
}

.custom-close:hover,
.custom-close:focus {
    color: #000;
}

.gh_loader {
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: none;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Suggest to Friend Modal */
#gyfthintModalSuggest {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

#gyfthintModalSuggest .modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    text-align: center;
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    height: auto;
    transform: translateY(-10%);
    border-radius: 20px;
}

.friend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
    height: 300px;
    overflow-y: scroll;
}

.friend-card {
    text-align: center;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.15);
    background: #fff;
    padding: 1.5em 2em;
    margin-bottom: 0.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.friend-card img {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.friend-card label {
    font-size: 17px;
    display: block;
    margin-top: 5px;
    font-weight: 500;
    text-transform: capitalize;
    color: rgba(0, 0, 0, 0.85);
}

.friend-card .gh_birthday_p {
    font-size: 12px;
    color: #979797;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.friend-toggle-button {
    width: 100% !important;
    border-radius: 10px;
    cursor: pointer;
    color: #343a40;
    background-color: transparent !important;
    background-image: none;
    border: 2px solid #343a40;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    padding: 0.375rem 0.75rem;
    font-size: 16px;
    line-height: 1.5;
    height: 35px;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.friend-toggle-button:hover {
    color: #fff;
    background-color: #1d2124 !important;
    border: 2px solid #343a40;
}

.friend-toggle-button.selected {
    color: #fff;
    background-color: #1d2124 !important;
    border: 2px solid #343a40;
}

.gh_suggest_friend_header {
    border-bottom: 1px solid #e9ecef;
}

.gh_suggest_friend_p {
    font-size: inherit;
    font-weight: bold;
    color: #101b6d;
    margin-bottom: 10px;
}

.gh_suggest_friend_search-control {
    border: none;
    border-radius: 0;
    height: 45px;
    background-color: #f3f5f7 !important;
    width: 100%;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    outline: none;
    cursor: pointer;
    font-size: inherit;
    margin-top: 1rem;
    padding: 5px 10px;
    box-shadow: none;
    color: #757575;
}

.gh_suggest_friend_search_container {
    display: flex;
}

.gh_suggest_friend_search_bar {
    width: 90%;
}

.gh_suggest_friend_search_button-control {
    background-color: #fda328;
    border: none;
    height: 45px;
    padding: 10px 33px;
    border-radius: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    outline: none;
    text-align: center;
    display: flex;
    justify-content: center;
    font-size: 1.1em;
    align-items: center;
    margin-top: 1rem;
}

.gh_suggest_friend_modal_button {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e9ecef;
    padding-block-start: 2rem;
}

.gh_suggest_friend_button_submit {
    background-color: #fda328;
    color: #101b6d;
    border: none;
    height: 50px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    padding: 0.375rem 1.5rem;
    font-size: inherit;
    line-height: 1.5;
    cursor: pointer;
}

.gh_suggest_friend_button_submit:hover {
    color: #fff;
}

.gh_suggest_friend_button_submit:disabled {
    background-color: #959595;
}

.gh_suggest_friend_button_cancel {
    background-color: transparent !important;
    background-image: none;
    border: 2px solid #343a40;
    color: #101b6d;
    height: 50px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    padding: 0.375rem 1.5rem;
    font-size: inherit;
    line-height: 1.5;
    width: 150px;
    cursor: pointer;
}

.gh_suggest_friend_button_cancel:hover {
    background-color: #343a40 !important;
    color: #fff;
}

/* Responsive Design for Suggest Friend Modal */
@media (max-width: 768px) {
    #gyfthintModalSuggest .modal-content {
        margin: 40% auto !important;
        width: 90% !important;
    }

    .gh_suggest_friend_p {
        font-size: 24px;
    }

    .gh_suggest_friend_modal_button {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .gh_suggest_friend_button_cancel {
        width: 100%;
        height: 45px;
    }
}
