:root {
    --abw-primary-color: #232f3e;
    --abw-secondary-color: #146eb4;
    --abw-text-color: #333;
    --abw-bg-color: #ffffff;
    --abw-button-bg: #1999D6;
    --abw-button-hover: #1588be;
    --abw-font-family: 'Source Serif 4', serif;
}

/* v7.12: Error message styles */
.abw-error-box {
    border: 2px solid red !important;
    padding: 10px !important;
    color: red !important;
    background: #fff0f0 !important;
}

.abw-error-box strong {
    font-weight: 700 !important;
}

/* v7.12: Card header style */
.abw-card-header-white {
    background: transparent !important;
    color: #333 !important;
    font-family: 'Fira Sans', sans-serif !important;
    font-size: 20px !important;
    text-align: center !important;
    padding: 8px !important;
    width: 100% !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 0 !important;
}

/* v7.12: Product title link */
.abw-product-title a {
    text-decoration: none !important;
    color: #333 !important;
    font-family: 'Source Serif 4', serif !important;
    font-size: 18px !important;
}

/* v7.12: Price section container */
.abw-price-section {
    padding: 15px 15px 10px 15px !important;
    margin-top: 10px !important;
}

.abw-price-wrapper {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
}

.abw-price-row {
    display: flex !important;
    align-items: baseline !important;
    gap: 10px !important;
    justify-content: center !important;
}

.abw-button-row {
    text-align: center !important;
    margin-top: 8px !important;
}

/* v7.12: Price text styles */
.abw-price-discount {
    font-family: 'Source Serif 4', serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #cc0c39 !important;
}

.abw-price-sale {
    font-family: 'Source Serif 4', serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #cc0000 !important;
}

.abw-price-normal {
    font-family: 'Source Serif 4', serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f1111 !important;
}

.abw-price-split {
    font-family: 'Source Serif 4', serif !important;
    font-weight: 700 !important;
    color: #0f1111 !important;
}

.abw-price-split .abw-euros {
    font-size: 22px !important;
}

.abw-price-split .abw-cents {
    font-size: 12px !important;
    position: relative !important;
    top: -6px !important;
    margin-left: 3px !important;
}

/* v4.25: Professional underlined link style like Stiftung Warentest */
/* v4.37: Updated font to Source Serif 4 18px bold */
.abw-buy-btn {
    display: inline-block !important;
    background: transparent !important;
    color: #000000 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    padding: 8px 0 !important;
    border-radius: 0 !important;
    font-family: 'Source Serif 4', serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    transition: color 0.2s;
    margin-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    margin-top: auto !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

html body .abw-widget-container .abw-buy-btn:hover {
    color: #007185 !important;
    text-decoration: underline !important;
}

.abw-old-price-red {
    color: #B12704 !important;
    /* Amazon red */
    text-decoration: line-through !important;
}

/* Removed abw-amazon-logo styles */

.abw-disclaimer {
    font-size: 7pt !important;
    /* 7pt font size */
    color: #999 !important;
    text-align: left !important;
    /* Left aligned */
    line-height: 1.4 !important;
    font-style: normal !important;
    /* Not italic */
    font-family: 'Source Serif 4', serif !important;
    margin-top: 16px !important;
    /* Space above disclaimer */
    width: 100% !important;
    clear: both !important;
    padding-bottom: 15px !important;
    /* Whitespace before line */
    border-bottom: 1px solid #e7e7e7 !important;
    /* Thin closing line */
    margin-bottom: 20px !important;
    /* Space after widget */
}

/* Scoped to the widget container to avoid conflicts */
.abw-widget-container {
    width: 100% !important;
}

.abw-widget-container * {
    box-sizing: border-box;
}

.abw-products-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    /* border: 2px solid red !important; Debugging: Check if file is loaded */
    padding: 0 !important;
    list-style: none !important;
    /* Reset list style */
    max-width: 100% !important;
    /* Allow full width */
    width: 100% !important;
    /* Force full width */
    margin: 0 auto !important;
    /* Center the widget */
}

/* v4.26: Subtle thin border */
.abw-product-card {
    background: white !important;
    border: 1px solid #f0f0f0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    padding-bottom: 0 !important;
    box-shadow: none !important;
    font-family: 'Source Serif 4', serif !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

.abw-card-header {
    background: #eef7fa !important;
    color: #298CCD !important;
    font-family: 'Fira Sans', sans-serif !important;
    font-size: 12px !important;
    text-align: center !important;
    padding: 8px !important;
    width: 100% !important;
    font-weight: 600 !important;
    display: block !important;
    /* Ensure visibility */
    border: none !important;
}

/* Old badges removed */

.abw-product-image {
    height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    margin-top: 0 !important;
    /* Reset margin */
    overflow: hidden !important;
    /* Ensure image stays within bounds */
    background: white !important;
}

.abw-product-image a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    box-shadow: none !important;
}

.abw-product-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    width: auto !important;
    /* Ensure aspect ratio is preserved */
    height: auto !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.abw-product-content {
    padding: 0 16px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.abw-product-title {
    font-family: 'Source Serif 4', serif !important;
    font-size: 18px !important;
    /* v4.38: Updated to Source Serif 4 18px */
    font-weight: 600 !important;
    color: #0f1111 !important;
    text-decoration: none !important;
    margin-bottom: 15px !important;
    /* Reduced from 8px */
    line-height: 1.3 !important;
    height: 48px !important;
    /* Fixed height for 2 lines */
    overflow: hidden !important;
    /* Prevent content from spilling out */
    display: block !important;
    /* Disable flex/box layout for line-clamp */
    background: transparent !important;
    border: none !important;
    text-align: center !important;
    padding: 0 20px !important;
    /* Added padding */
}

/* ... (skipping unchanged lines) ... */



.abw-product-title a:hover {
    color: #007185 !important;
    text-decoration: none !important;
}

.abw-product-meta {
    margin-bottom: 4px !important;
    height: 20px !important;
}

.abw-prime-logo {
    color: #00a8e1 !important;
    font-weight: 700 !important;
    font-style: italic !important;
    font-size: 13px !important;
}

.abw-product-price-container {
    display: flex !important;
    justify-content: center !important;
    /* Center price */
    align-items: baseline !important;
    margin-bottom: 16px !important;
    /* Increased from 12px */
    gap: 8px !important;
    margin-top: 8px !important;
    /* Added margin top for spacing from title */
}

.abw-price-current {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #000 !important;
}

.abw-price-green {
    color: #007600 !important;
    /* Amazon green for reduced price */
}

.abw-price-old {
    font-size: 13px !important;
    color: #565959 !important;
    text-decoration: line-through !important;
}

/* Pros and Cons */


/* Responsive adjustments */
@media (max-width: 900px) {
    .abw-products-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .abw-products-list {
        grid-template-columns: 1fr !important;
    }

    .abw-product-card {
        margin-bottom: 20px;
    }
}

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Single Product Horizontal Layout */
.abw-single-product-container {
    background: white !important;
    border: 1px solid #e7e7e7 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    font-family: 'Source Serif 4', serif !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.abw-single-product-inner {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.abw-single-product-container .abw-single-image {
    width: 100% !important;
    margin-bottom: 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.abw-single-product-container .abw-single-image img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    object-fit: contain !important;
}

.abw-single-product-container .abw-single-content {
    width: 100% !important;
    text-align: left !important;
}

.abw-single-product-container .abw-single-title {
    font-size: 18px !important;
    font-weight: bold !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
}

.abw-single-product-container .abw-single-title a {
    color: #007185 !important;
    text-decoration: none !important;
}

.abw-single-product-container .abw-single-title a:hover {
    color: #c7511f !important;
    text-decoration: underline !important;
}

.abw-single-product-container .abw-single-desc {
    font-size: 14px !important;
    color: #cc0000 !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
}

.abw-single-product-container .abw-buy-btn {
    align-self: flex-end !important;
    /* Align button to the right */
    margin: 10px 0 15px 0 !important;
    width: auto !important;
    display: inline-block !important;
}

.abw-single-product-container .abw-single-disclaimer {
    font-size: 11px !important;
    color: #999 !important;
    margin-top: 10px !important;
    text-align: right !important;
}

/* Price Block Styles */
.abw-price-block {
    margin-top: 20px !important;
    text-align: right !important;
}

.abw-price-row {
    margin-bottom: 5px !important;
}

.abw-old-price {
    text-decoration: line-through !important;
    color: #cc0000 !important;
    font-size: 14px !important;
    margin-right: 10px !important;
}

.abw-current-price {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #000000 !important;
}

.abw-savings {
    font-size: 15px !important;
    color: #999 !important;
    font-family: 'Source Serif 4', serif !important;
    margin-bottom: 10px !important;
}

.abw-savings-val {
    color: #007600 !important;
    font-weight: bold !important;
}


/* Desktop Layout (Horizontal) */
@media (min-width: 768px) {
    .abw-single-product-inner {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        /* Prevent wrapping */
        align-items: flex-start !important;
    }

    .abw-single-product-inner .abw-single-image {
        flex: 0 0 30% !important;
        /* Fixed width 30% */
        width: 30% !important;
        margin-bottom: 0 !important;
        padding-right: 20px !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .abw-single-product-inner .abw-single-content {
        flex: 1 !important;
        /* Take remaining space */
        width: auto !important;
    }

    .abw-single-product-inner .abw-single-disclaimer {
        flex-basis: 100% !important;
        /* Force new line */
        margin-top: 15px !important;
    }
}

.abw-features-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 10px 0 10px -5px !important;
    /* Negative margin to pull checkmarks left */
    text-align: left !important;
}

.abw-features-list li {
    margin-bottom: 5px !important;
    padding-left: 20px !important;
    position: relative !important;
    font-size: 14px !important;
    color: #333 !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
}

.abw-features-list li::before {
    content: "✔" !important;
    color: #28a745 !important;
    /* Green checkmark */
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
}

/* v4.31: Detailed Layout Styles */
.abw-detailed-container {
    width: 100% !important;
}

.abw-detailed-card {
    background: white !important;
    border: 1px solid #e7e7e7 !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
}

.abw-detailed-header {
    width: 100% !important;
}

.abw-detailed-inner {
    display: flex !important;
    flex-direction: row !important;
}

.abw-detailed-product {
    flex: 0 0 35% !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    border-right: 1px solid #e7e7e7 !important;
}

.abw-detailed-image {
    width: 100% !important;
    height: 150px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 15px !important;
}

.abw-detailed-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.abw-detailed-title {
    font-family: 'Source Serif 4', serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
}

.abw-detailed-title a {
    color: #333 !important;
    text-decoration: none !important;
}

.abw-detailed-title a:hover {
    color: #007185 !important;
}

.abw-detailed-price {
    margin-bottom: 15px !important;
}

.abw-detailed-button {
    margin-top: auto !important;
}

.abw-detailed-button .abw-buy-btn {
    margin: 0 !important;
}

.abw-detailed-content {
    flex: 0 0 65% !important;
    padding: 25px !important;
    font-family: 'Source Serif 4', serif !important;
}

.abw-detailed-section-title {
    font-family: 'Fira Sans', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 10px 0 !important;
}

.abw-detailed-urteil {
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
}

.abw-detailed-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
}

.abw-detailed-features li {
    padding-left: 25px !important;
    position: relative !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.abw-detailed-features li::before {
    content: "•" !important;
    color: #333 !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
    font-size: 18px !important;
}

.abw-detailed-nachteil {
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.6 !important;
}

/* Responsive: Tablet */
@media (max-width: 900px) {
    .abw-detailed-product {
        flex: 0 0 40% !important;
    }

    .abw-detailed-content {
        flex: 0 0 60% !important;
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .abw-detailed-inner {
        flex-direction: column !important;
    }

    .abw-detailed-product {
        flex: 1 !important;
        border-right: none !important;
        border-bottom: 1px solid #e7e7e7 !important;
        padding: 15px !important;
    }

    .abw-detailed-content {
        flex: 1 !important;
        padding: 20px !important;
    }

    .abw-detailed-section-title {
        font-size: 18px !important;
    }
}

/* ============================================
   RESPONSIVE VISIBILITY UTILITIES
   251229: Responsive utilities
   ============================================ */

/* Hide on mobile (600px and below) */
@media (max-width: 600px) {
    .abw-hide-mobile { display: none !important; }
}

/* Show only on mobile (600px and below) */
@media (min-width: 601px) {
    .abw-show-mobile-only { display: none !important; }
}

/* Hide on tablet (768px and below) */
@media (max-width: 768px) {
    .abw-hide-tablet { display: none !important; }
}

/* Show only on tablet (768px and below) */
@media (min-width: 769px) {
    .abw-show-tablet-only { display: none !important; }
}

/* Responsive Spacing */
.abw-p-responsive { padding: 16px; }
@media (max-width: 768px) { .abw-p-responsive { padding: 12px; } }
@media (max-width: 600px) { .abw-p-responsive { padding: 8px; } }

.abw-gap-responsive { gap: 16px; }
@media (max-width: 768px) { .abw-gap-responsive { gap: 12px; } }
@media (max-width: 600px) { .abw-gap-responsive { gap: 8px; } }