/**
 * HFG AWS Marketing - Sponsored Banner Styles
 * Recommended banner image size: 728x90px (leaderboard) or 600x100px
 */

/* Sponsored result container */
.aws_result_tax_sponsored {
    position: relative !important;
    padding: 0 !important;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

/* Make the top link cover the entire banner */
.aws_result_tax_sponsored > a.aws_result_link_top {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 20 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

/* Content layout */
.aws_result_tax_sponsored .aws_result_content {
    display: block !important;
    width: 100%;
    position: relative;
}

.aws_result_tax_sponsored .aws_result_head {
    display: block !important;
    width: 100%;
    position: relative;
}

/* Sponsored label - bottom right corner */
.aws-sponsored-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 2px;
    z-index: 10;
}

/* Remove parentheses from count */
.aws_result_tax_sponsored .aws_result_count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;
}

.aws_result_tax_sponsored .aws_result_count::before,
.aws_result_tax_sponsored .aws_result_count::after {
    display: none !important;
    content: none !important;
}

/* Banner image - centered with cover */
.aws_result_tax_sponsored .aws_tax_image {
    display: block !important;
    width: 100% !important;
    height: 90px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 4px;
}

/* Hover effect */
.aws_result_tax_sponsored:hover {
    opacity: 0.9;
}
