/**
 * TutorPro-style share tutor profile modal.
 *
 * @package local_lat_findtutors
 */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

.lat-share-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lat-share-modal[aria-hidden="false"] {
    display: flex;
}

.lat-share-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 17, 23, 0.44);
    cursor: pointer;
}

.lat-share-profile-popup,
.lat-share-profile-popup * {
    box-sizing: border-box;
}

.lat-share-profile-popup {
    position: relative;
    z-index: 1;
    width: 520px;
    max-width: calc(100vw - 32px);
    padding: 32px;
    color: #121117;
    background: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(18, 17, 23, 0.15);
    animation: lat-share-popup-in 160ms ease-out;
}

@keyframes lat-share-popup-in {
    from {
        opacity: 0;
        transform: translateY(5px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lat-share-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #121117;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.lat-share-modal-close:hover,
.lat-share-modal-close:focus-visible {
    background: #f4f4f4;
    outline: none;
}

.lat-share-modal-title {
    margin: 0 48px 24px 0;
    color: #121117;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    font-family: "Platform";
    letter-spacing: 0.01em;
}

.lat-share-tutor-row {
    display: flex;
    align-items: center;
    min-width: 0;
}

.lat-share-avatar-wrap {
    position: relative;
    flex: 0 0 64px;
}

.lat-share-tutor-avatar {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid rgba(18, 17, 23, 0.06);
    border-radius: 4px;
}

.lat-share-country-flag {
    position: absolute;
    top: 3px;
    left: 3px;
    padding: 0 2px;
    font-size: 14px;
    line-height: 15px;
    background: #fff;
}

.lat-share-tutor-details {
    min-width: 0;
    margin-left: 12px;
}

.lat-share-tutor-rating-row {
    display: flex;
    align-items: center;
    min-width: 0;
    line-height: 1.2;
}

.lat-share-tutor-name {
    max-width: 235px;
    margin: 0;
    /* overflow: hidden; */
    color: #121117;
    font-size: 24px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Platform";
    letter-spacing: 0.0125em;
}

.lat-share-star {
    flex: 0 0 auto;
    margin-left: 12px;
    color: #121117;
}

.lat-share-ratings {
    margin-left: 4px;
    color: #121117;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Figtree', sans-serif;
}

.lat-share-review-count {
    margin-left: 8px;
    color: #121117;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
    font-family: 'Figtree', sans-serif;
}

.lat-share-badges-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 5px;
}

.lat-share-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #121117;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    font-family: 'Figtree', sans-serif;

}

.lat-share-badge-item svg {
    flex: 0 0 auto;
}

.lat-share-url-row {
    display: flex;
    gap: 16px !important;
    margin-top: 24px;
}

.lat-share-url-field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.lat-share-copy-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #121117;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.lat-share-copy-icon:hover,
.lat-share-copy-icon:focus-visible {
    background: #f1f1f3;
    outline: none;
}

.lat-share-copy-success,
.lat-share-copy-tooltip {
    display: none;
}

.lat-share-copy-icon.is-copied .lat-share-copy-default {
    display: none;
}

.lat-share-copy-icon.is-copied .lat-share-copy-success {
    display: block;
}

.lat-share-copy-icon.is-copied .lat-share-copy-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    display: block;
    padding: 7px 10px;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    background: #121117;
    border-radius: 4px;
    transform: translateX(-50%);
}

.lat-share-url-input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 12px 48px 12px 14px;
    overflow: hidden;
    color: #121117;
    font-size: 14px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #fff !important;
    border: 2px solid #dcdce5;
    border-radius: 8px;
    box-shadow: none;
}

.lat-share-url-input:focus {
    border-color: #121117;
    outline: none;
    box-shadow: none;
}

.lat-share-copy-button {
    flex: 0 0 auto;
    min-width: 132px;
    height: 48px;
    padding: 0 22px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    background: #ff2500;
    border: 2px solid #121117;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
}

.lat-share-copy-button:hover,
.lat-share-copy-button:focus-visible {
    background: rgba(255, 88, 60, 1) !important;
}

.lat-share-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.lat-share-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    color: #121117;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    border: 2px solid #121117;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
}

.tutor-flag {
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 12px;
}

.lat-share-social-button:hover,
.lat-share-social-button:focus-visible {
    color: #121117;
    text-decoration: none;
    background: #f4f4f4;
    outline: none;
}

.lat-share-social-button svg {
    flex: 0 0 auto;
}

.lat-share-social-button.sp img{
    height: 20px !important;
    width: 20px !important;
    flex: 0 0 20px !important;
}

.lat-share-social-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
}

.lat-share-social-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #fff;
    font-size: 10px;
    background: #121117;
    border-radius: 50%;
}

.lat-share-facebook-glyph {
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 768px),
(max-device-width: 768px) {
    .lat-share-modal {
        align-items: flex-end;
        padding: 12px 0;
    }

    .lat-share-profile-popup {
        width: 100vw;
        max-width: none;
        max-height: calc(100vh - 24px);
        padding: 24px;
        overflow-y: auto;
        border-radius: 8px;
        margin: 0;
        margin-bottom: -12px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .lat-share-modal-title {
        margin-bottom: 20px;
        font-size: 24px;
    }

    .lat-share-modal-close {
        top: 6px;
        right: 6px;
        width: 36px;
        height: 36px;
    }

    .lat-share-avatar-wrap {
        flex-basis: 48px;
    }

    .lat-share-tutor-details {
        margin-left: 9px;
    }

    .lat-share-star {
        margin-left: 8px;
    }

    .lat-share-url-row {
        gap: 8px;
    }

    .lat-share-url-field {
        width: 100%;
    }

    .lat-share-copy-button {
        width: auto;
        min-width: 147px;
        padding: 0 12px;
    }

    .lat-share-copy-icon {
        top: 4px;
    }

    .lat-share-social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lat-share-social-button {
        height: 38px;
        padding: 0 8px;
    }
}
