.listicle-item-block {
    border: 1px solid #f4f4f4;
    border-radius: 5px;
    margin: 2em 0;
    box-shadow: 0 5px 25px -10px #d3d5d7;
    background-color: #fff;
}

.listicle-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #f4f4f4;
    gap: 10px;
}

.listicle-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.listicle-item-label {
    background-color: #f6f4ff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    color: var(--clmain);
    font-weight: 600;
    flex-shrink: 0;
}

.listicle-item-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
    margin-top: 0 !important;
    line-height: 1.3;
}

.listicle-item-price-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--clmain);
    color: white;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.9em;
}

.listicle-item-price-button:hover {
    background-color: #a32ded;
    color: white;
}

.listicle-item-price-button.is-unavailable {
    background-color: var(--clfade);
    cursor: default;
}

.listicle-item-price-button.is-unavailable:hover {
    background-color: var(--clfade);
    transform: none;
    color: white;
}

.listicle-item-price-button.is-placeholder {
    background-color: #e2e8f0;
    color: var(--clfade);
    cursor: default;
}

.listicle-item-price-button.is-placeholder:hover {
    background-color: #e2e8f0;
    color: var(--clfade);
}

.listicle-item-price-button .price-cta {
    font-size: 1em;
}

.listicle-item-price-button .price-unavailable {
    font-size: 1em;
    opacity: 0.9;
}

.listicle-item-image-wrapper {
    position: relative;
    background-color: #f9f9f9;
    line-height: 0;
    border-bottom: 1px solid #f4f4f4;
}

.listicle-item-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}

.listicle-item-image-placeholder {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clfade);
    font-size: 1em;
    text-align: center;
    padding: 20px;
}

.listicle-item-rating-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rating-circle {
    width: 64px;
    height: 64px;
    position: relative;
    background-color: #21273a;
    color: white;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
}

.rating-circle-svg {
    position: absolute;
    top: 2px;
    left: 2px;
    bottom: 2px;
    right: 2px;
    transform: rotate(180deg);
}

.rating-circle-bg {
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: .125rem;
    fill: none;
}

.rating-circle-progress {
    stroke: url(#rating-gradient);
    stroke-width: .125rem;
    fill: none;
    transition: stroke-dasharray 0.5s ease;
}

.rating-label-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.rating-label {
    font-size: 0.75em;
    font-weight: 600;
    color: var(--cldark);
    margin-bottom: 2px;
}

.rating-details-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 0.75em;
    color: var(--clmain);
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
}

.rating-details-button:hover {
    color: #a32ded;
}

.tab-list {
    display: flex;
    border-bottom: 1px solid #f4f4f4;
}

.tab-panels {
    padding: 20px;
}

.tab-button {
    padding: 15px 20px;
    border: none;
    background-color: transparent;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: var(--cldark);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    flex-grow: 1;
    text-align: center;
    display: flex;
    align-items: center;
	white-space:nowrap;
    justify-content: center;
    gap: 5px;
	border-left:1px solid #f4f4f4;
}

.tab-button:first-child {
	border-left:none;
}

.tab-button.is-active {
    border-bottom-color: var(--clmain);
    color: var(--clmain);
    background-color: #fff;
}

.tab-button:not(.is-active):hover {
    color: var(--clmain);
    background-color: #f6f4ff;
}

.tab-button:disabled {
    color: var(--clfade);
    cursor: not-allowed;
    background-color: transparent;
    border-bottom-color: transparent;
}

.tab-button:disabled:hover {
    color: var(--clfade);
    background-color: transparent;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.listicle-item-quick-take {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-radius: 0;
    border-bottom: 1px solid #f4f4f4;
    font-size: 0.95em;
	font-weight:500;
    line-height: 1.6;
    color: var(--cldark);
}

.listicle-item-quick-take p {
    margin: 0;
}

.listicle-item-key-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f4f4f4;
}

.key-spec-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.spec-icon {
    width: 40px;
    height: 40px;
    padding: 9px;
    background: #f6f4ff;
    fill: var(--clmain);
    color: var(--clmain);
    border-radius: 5px;
    flex-shrink: 0;
}

svg.strokes {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.spec-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

span.spec-title {
    font-size: 0.85em;
    color: var(--clfade);
    margin-bottom: 2px;
}

.spec-value {
    font-size: 1em;
    font-weight: 500;
    color: var(--cldark);
    line-height: 1.2;
}

.listicle-item-pros-cons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f4f4f4;
}

@media (min-width: 600px) {
    .listicle-item-pros-cons {
        grid-template-columns: 1fr 1fr;
    }
}

div.listicle-item-pros-cons .pros-section h4,
div.listicle-item-pros-cons .cons-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: 600;
    color: var(--cldark);
}

.pros-list,
.cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-list li,
.cons-list li {
    margin-bottom: 8px;
    font-size: 0.9em;
    display: flex !important;
    align-items: flex-start;
    line-height: 1.5;
    color: var(--cldark);
}

.list-icon {
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.listicle-item-pros-cons svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

div ul.pros-list, div ul.cons-list {
    padding: 0;
}

.pros-list .list-icon {
    color: #38a169;
}

.cons-list .list-icon {
    color: #e53e3e;
}

.listicle-item-body-text {
    line-height: 1.7;
    color: #495057;
    font-size: 1em;
}

.listicle-item-body-text p:first-child {
    margin-top: 0;
}

.listicle-item-body-text p:last-child {
    margin-bottom: 0;
}

.specs-section {
    margin-bottom: 30px;
}

.specs-section:last-child {
    margin-bottom: 0;
}

.specs-section-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 0 !important;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f4f4f4;
}

.specs-category {
    margin-bottom: 25px;
}

.specs-category-title {
    font-size: 1em;
    font-weight: 600;
    color: var(--cldark);
    margin-top: 0;
    margin-bottom: 15px;
}

.specs-category-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 20px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 16px;
    flex-direction: column;
}

.spec-item-label {
    color: var(--clfade);
    font-size: 14px;
    flex-shrink: 0;
}

.spec-item-value {
    font-weight: 500;
    color: var(--cldark);
}

.spec-item-value .spec-yes {
    color: #38a169;
    font-weight: 500;
    display: flex;
    gap: 5px;
    align-items: center;
}

.spec-item-value .spec-no {
    color: #e53e3e;
    font-weight: 500;
    display: flex;
    gap: 5px;
    align-items: center;
}

.spec-item-value .spec-na {
    color: var(--clfade);
    font-style: italic;
}

.spec-item-value svg {
    width: 16px;
    height: 16px;
    fill: currentcolor;
    color: inherit;
}

.chart-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    padding: 20px;
}

.chart-spinner {
    border: 4px solid rgba(94, 44, 237, 0.1);
    border-left-color: var(--clmain);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    display: block;
    padding: 10px;
    border: 1px solid #f4f4f4;
    border-radius: 5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.chart-tracking-info {
    text-align: center;
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.5;
    color: var(--cldark);
}

.chart-tracking-info strong {
    color: var(--cldark);
    font-weight: 600;
}

.chart-tracking-info .current-best-price {
    margin-top: 10px;
    font-size: 0.9em;
}

.chart-tracking-info .current-best-price a {
    color: var(--clmain);
    text-decoration: underline;
    font-weight: 500;
}

.chart-tracking-info .current-best-price a:hover {
    color: #a32ded;
}

.chart-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 12px 10px;
    border: 1px solid #f4f4f4;
    border-radius: 5px;
}

.stat-item .stat-label {
    display: block;
    font-size: 0.8em;
    margin-bottom: 5px;
    color: var(--clfade);
}

.stat-item .stat-value {
    display: block;
    font-size: 1em;
    font-weight: 500;
    color: var(--cldark);
    margin-bottom: 3px;
    line-height: 1.2;
}

.stat-item .stat-date {
    display: block;
    font-size: 0.8em;
    color: var(--clfade);
}

.chart-error-message {
    color: #c53030;
    background-color: #fed7d7;
    border: 1px solid #feb2b2;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 10px 0;
    font-size: 0.9em;
}

.listicle-item-bottom-row {
    padding: 15px 20px;
    border-top: 1px solid #f4f4f4;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    align-items: center;
}

.review-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    color: var(--clmain);
    transition: color 0.2s ease;
    border: none;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.review-link:hover {
    color: #a32ded;
}

.listicle-item-bottom-row-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

span.price-diff-indicator {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    background: #c3ffdf;
    color: white;
    justify-content: center;
    font-size: 10px;
    padding: 5px;
    border-radius: 5px;
    font-weight: 600;
    color: #165c37;
}

span.price-diff-indicator.is-positive {
    background: #ffdada;
    color: #8b1f1f;
}

a.review-link.bottom-price-link {
    margin-left: auto;
}

svg.listicle-item-bottom-row-icon.icon-external-link {
    fill: currentColor;
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: #21273a;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.video-modal-close:hover {
    background-color: var(--clmain);
}

body.modal-open {
    overflow: hidden;
}

/* Inline Coupon Styles */
.listicle-coupon-inline {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f4f4f4;
}

.coupon-code-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.9em;
}

.coupon-code-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fef3c7;
    border: 1.5px dashed #fbbf24;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: inherit;
}

.coupon-code-button:hover {
    background: #fde68a;
    border-color: #f59e0b;
}

.coupon-code-button.copied {
    background: #d1fae5;
    border-color: #10b981;
}

.coupon-copy-icon {
    width: 16px;
    height: 16px;
    stroke: #92400e;
    flex-shrink: 0;
}

.coupon-code-button.copied .coupon-copy-icon {
    stroke: #059669;
}

.coupon-code-text {
    font-weight: 600;
    font-family: monospace;
    letter-spacing: 0.5px;
    color: #92400e;
    font-size: 1.1em;
}

.coupon-code-button.copied .coupon-code-text {
    color: #059669;
}

.coupon-description {
    color: var(--cldark);
    font-weight: 500;
}

.coupon-use-link {
    color: var(--clmain);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.coupon-use-link:hover {
    color: #a32ded;
    text-decoration: underline;
}

/* Specification Accordions */
.specs-accordion-item {
    border-bottom: 1px solid #f4f4f4;
    margin-bottom: 0;
    padding-bottom: 0;
}

.specs-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 15px 0;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: var(--cldark);
    text-align: left;
    font-family: inherit;
    transition: color 0.2s ease;
}

.specs-accordion-trigger:hover {
    color: var(--clmain);
}

.specs-accordion-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: currentColor;
    transform-origin: center;
}

.specs-accordion-icon.is-rotated {
    transform: rotate(180deg);
}

.specs-accordion-content {
    padding-bottom: 15px;
}

.specs-accordion-content[hidden] {
    display: none;
}

/* Ensure Performance Tests section stays styled correctly */
.performance-tests-group {
    padding: 15px 0;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .specs-accordion-trigger {
        padding: 12px 0;
        font-size: 0.95em;
    }
}


@media (max-width: 600px) {
    .coupon-code-wrapper {
        font-size: 0.85em;
        gap: 10px;
    }
    
    .coupon-code-button {
        padding: 6px 12px;
    }
}

@media screen and (max-width:685px){
	.listicle-item-price-button {
		padding: 7px 14px;
		font-size: 14px;
	}
	h3.listicle-item-title {
		font-size: 16px !important;
	}
	.tab-button {
		padding: 15px;
	}
	span.spec-title {
		font-size:14px;
	}
	.spec-value {
		font-size: 16px;
	}
	.listicle-item-key-specs {
		grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
		gap: 15px;
	}
}

@media screen and (max-width:490px){
	.spec-item-label {
		font-size: 13px;
	}
	.spec-item {
		font-size: 15px;
	}
	.specs-category-group {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: 10px 15px;
	}
	.specs-section-title {
		font-size:18px;
	}
	h5.specs-category-title {
		font-size: 16px;
	}
	
	.rating-circle {
		font-size:.85rem;
		width:50px;
		height:50px;
	}
	.listicle-item-rating-overlay {
		right:10px;
		top:10px;
	}
	.video-modal-content {
		width:95%;
	}
}

@media screen and (max-width:450px){
	.tab-list {
		overflow: auto;
	}
	.tab-button {
		padding:12px 15px;
	}
}

@media screen and (max-width:420px){
	.listicle-item-header {
		flex-direction: column;
	}
	.listicle-header-left {
		justify-content: center;
	}
}