.svg-icon {
    cursor: pointer;
    margin-left: 7px;
}

/* Default styles for the tooltip text box */
.tooltip-text-box {
    display: none;
    background-color: #fff;
    color: #000;
    border: 2px solid #fff;
    padding: 15px;
    padding-top: 24px;
    padding-bottom: 0 !important;
    position: absolute;
    font-weight: normal;
    width: 590px; /* Default width for desktop */
    margin-top: 15px;
    left: 6; /* Align to the left edge of the screen */
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    box-sizing: border-box;
}

.tooltip-text-box::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 6%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
}

.close-tooltip-box {
    cursor: pointer;
    font-weight: normal;
    position: absolute;
    top: -2px;
    right: -2px;
    color: white;
    background-color: #3e3e3e;
    border: none;
    border-radius: 5%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    transform: translate(50%, -50%);
}

.close-tooltip-box:hover {
    background-color: #0c0c0c;
}

.awvp-social-links, .awvp-ecommerce-links, .awvp-publisher-details, .awvp-popular-books {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.awvp-publisher-details{
    padding-bottom:5px !important;
    padding: 25px;
}

.awvp-popular-books {
    padding-bottom:27px;
}

.awvp-ecommerce-links {
    padding-bottom:27px;
}

.awvp-social-links h3, .awvp-ecommerce-links h3, .awvp-publisher-details h3, .awvp-popular-books h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 600;
}

.awvp-social-links a, .awvp-ecommerce-links a, .awvp-popular-books a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.awvp-social-links a:hover, .awvp-ecommerce-links a:hover, .awvp-popular-books a:hover {
    color: #003087;
}

.awvp-social-links i, .awvp-ecommerce-links i, .awvp-popular-books i {
    margin-right: 10px;
}

.awvp-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 10px 15px;
    background: #f5f7fa;
    border: 1px solid #e0e7ff;
    border-radius: 6px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 17px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.awvp-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background: #e6efff;
}

.awvp-social-link i {
    margin-right: 8px;
    font-size: 17px;
    transition: color 0.3s ease;
}

/* Platform-specific icon colors */
.awvp-social-link a[href*="facebook"] i {
    color: #1877f2; /* Facebook blue */
}
.awvp-social-link a[href*="twitter"] i,
.awvp-social-link a[href*="x.com"] i {
    color: #000000; /* X/Twitter black */
}
.awvp-social-link a[href*="linkedin"] i {
    color: #0a66c2; /* LinkedIn blue */
}
.awvp-social-link a[href*="instagram"] i {
    color: #e4405f; /* Instagram pink */
}
.awvp-social-link a[href*="http"] i.fas.fa-globe,
.awvp-social-link a[href*="https"] i.fas.fa-globe {
    color: #4caf50; /* Green for website */
}

.awvp-ecommerce-link {
    margin-right: 20px;
    display: inline-block;
}

.awvp-publisher-details p {
    margin: 2px 0; /* Minimal gap for contact details */
    font-size: 17px;
    font-weight: normal;
    line-height: 1.2; /* Tighten text spacing */
}

.awvp-publisher-details .awvp-contact-label {
    font-weight: bold;
}

.awvp-publisher-details p i {
    margin-right: 8px;
    vertical-align: middle;
}

.awvp-ecommerce-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.awvp-ecommerce-grid > * {
    flex: 1 1 160px;
    max-width: calc(33.33% - 20px);
    box-sizing: border-box;
}

.awvp-ecommerce-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #d6e0ff;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #003087;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 50px;
}

.awvp-ecommerce-card:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: #001f5b;
}

.awvp-ecommerce-card i {
    margin-right: 10px;
    font-size: 18px;
    color: #ff6200;
}

.awvp-ecommerce-card[data-platform="Flipkart"] i {
    color: #2874f0;
}

.awvp-ecommerce-card[data-platform="Barnes & Noble"] i {
    color: #2e7d32;
}

.awvp-ecommerce-card[data-platform="Google Play"] i {
    color: #d81b60;
}

/* Modern Popular Books – clean link list (no heavy boxes) */
.awvp-popular-books-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.awvp-popular-books-list li {
    margin: 0;
    padding: 0;
}

.awvp-popular-book-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.awvp-popular-book-link:hover {
    color: #0e59af;
    border-bottom-color: #0e59af;
}

.awvp-popular-book-link i {
    margin-top: 3px;
    font-size: 15px;
    color: #2e7d32;
    flex-shrink: 0;
}


@media (max-width: 720px) {
    .tooltip-text-box {
        width: 100%;
        max-width: 100%;
        left: 0;
        padding: 15px;
        padding-top: 21px;
    }

    .verified-icon {
        position: relative;
        bottom: -3px !important;
    }

    .awvp-social-links h3, .awvp-ecommerce-links h3, .awvp-publisher-details h3, .awvp-popular-books h3 {
        font-size: 17px;
    }

    .awvp-ecommerce-links h3 {
        text-align:center;
    }

    .awvp-ecommerce-intro {
    font-size: inherit;
    line-height: inherit;
    margin: 10px 0;
    color: #000;
    text-align:center;
    font-weight: normal;
    }    

    .awvp-social-link {
        font-size: 18px;
        padding: 8px 12px;
        margin-right: 10px;
    }

    .awvp-social-link i {
        font-size: 17px;
    }

    .awvp-ecommerce-grid {
        gap: 20px;
        margin-top: 15px;
    }

    .awvp-ecommerce-grid > * {
        max-width: 100%; /* Full width for e-commerce links */
        flex: 1 1 100%; /* Ensure full width with flex */
    }

    .awvp-ecommerce-card {
        font-size: 17px;
        padding: 12px;
        min-height: 45px;
    }

    .awvp-ecommerce-card i {
        font-size: 17px;
    }

    .awvp-popular-book-link {
        font-size: 15px;
    }

    .awvp-popular-book-link i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .awvp-social-link {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .awvp-ecommerce-card {
        font-size: 17px;
        padding: 10px;
    }

    .awvp-popular-book-link {
        font-size: 15px;
    }
    .awvp-ecommerce-links h3 {
        text-align:center;
    }
    
    .awvp-ecommerce-intro {
    font-size: inherit;
    line-height: inherit;
    margin: 10px 0;
    color: #000;
    text-align:center;
    font-weight: normal;
    }    
}

.awvp-ecommerce-links .awvp-ecommerce-intro {
    font-size: inherit;
    line-height: inherit;
    margin: 10px 0;
    color: #000;
    font-weight: normal;
}

.awvp-ecommerce-intro {
    margin-bottom:21px !important;
}

.awvp-ecommerce-review {
    font-size: inherit;
    line-height: inherit;
    margin: 30px 0;
    color: #555;
    font-style: normal;
}

.awvp-publisher-feedback {
    font-size: inherit;
    line-height: inherit;
    margin: 30px 0;
    color: #333;
}

.awvp-interview-closing {
    font-size: 17px !important;
    line-height: 1.5 !important;
    margin: 30px 0;
    color: #333;
}

/* Book Information – modern attractive look */
.awvp-book-info {
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.awvp-book-info h3 {
    margin: 0 0 14px 0;
    padding: 0;
    border: none;
    font-size: inherit;
    font-weight: 700;
    color: inherit;
    letter-spacing: 0;
}

.awvp-book-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: inherit;
    color: inherit;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
}

.awvp-book-info-table th,
.awvp-book-info-table td {
    padding: 13px 18px;
    text-align: left;
    vertical-align: middle;
    font-size: inherit;
    line-height: 0.8;
    color: inherit;
    border-bottom: 1px solid #ebebeb;
}

.awvp-book-info-table tr:last-child th,
.awvp-book-info-table tr:last-child td {
    border-bottom: none;
}

.awvp-book-info-table tr:nth-child(even) th,
.awvp-book-info-table tr:nth-child(even) td {
    background: #f3f3f3;
}

.awvp-book-info-table th {
    width: 20%;
    max-width: 160px;
    font-weight: 600;
    color: inherit;
    background: transparent;
    white-space: nowrap;
}

.awvp-book-info-table td {
    font-weight: 400;
    color: inherit;
}

.awvp-book-info-table td a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.awvp-book-info-table td a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .awvp-book-info-table th,
    .awvp-book-info-table td {
        padding: 11px 14px;
    }
    .awvp-book-info-table th,
    .awvp-book-info-table td {
    padding: 13px 18px;
    text-align: left;
    vertical-align: middle;
    font-size: inherit;
    line-height: 1.5;
    color: inherit;
    border-bottom: 1px solid #ebebeb;
    }
    .awvp-book-info-table th {
        width: 34%;
    }
}