html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

html {
    --scroll-behavior: smooth !important;
    scroll-behavior: smooth !important;
}

/* Alpine modal-related */
[x-cloak] {
    display: none !important;
}

/* Temporary solution for fixed header until we can get Pinegrow playing nicely with Tailwind */
[data-pg-name="Head"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 20;
}

/* Navigation-related */
.active {
    color: #ef6359;

    /* Tailwind value: coral-500 */
}

.product-image {
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7f5f1;
    border-radius: 0.5rem;
}

.product-image:hover {
    background: #fcfbf9;
}

.product-image.active {
    outline: 3px solid #749c72;
    background: white;
}

.product-image:hover {
    transform: translateY(-2px);
}

/* Free Guide trigger animation */
#toilet_guide_trigger {
    animation: combined-attention 8s infinite;
}

@keyframes combined-attention {
    /* Static state for most of the animation duration */
    0%,
    70%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* First pulse effect */
    73% {
        transform: translateY(0) scale(1.05);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(255, 255, 255, 0.2);
    }

    76% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

/* Subscribe & Save graph styling and anim */
@media screen and (max-width: 1023px) {
    .horiz-placement {
        margin-left: 0 !important;
    }
}

.horiz-placement {
    margin-left: -5rem;
}

@keyframes slideRight {
    from {
        width: 0;
    }

    to {
        width: var(--bar-width);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-slide-right {
    animation: slideRight 1s ease-out forwards;
    animation-play-state: paused;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
    animation-delay: 0.7s;
    opacity: 0;
    animation-play-state: paused;
}

.start-animation .animate-slide-right,
.start-animation .animate-fade-in {
    animation-play-state: running;
}

/* Happy Dogs counter (static) */
.counter {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    font-size: 64px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.digit {
    background: #749c72;
    color: white;
    padding: 8px 4px;
    border-radius: 8px;
    position: relative;
    width: 1em;
    height: 1.2em;
    overflow: hidden;
}

.digit::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
    content: "0";
}

.counter.animate .d1::before {
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    content: "8";
}

.counter.animate .d2::before {
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.15s;
    content: "3";
}

.counter.animate .d3::before {
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.3s;
    content: "6";
}

.counter.animate .d4::before {
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.45s;
    content: "7";
}

.counter.animate .d5::before {
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.6s;
    content: "2";
}

@keyframes slideUp {
    0% {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.digit:nth-child(3n-1) {
    margin-right: 12px;
}

/* Comparison table */
@media (max-width: 768px) {
    .comparison-scroll-container {
        position: relative;
        overflow: hidden;
    }

    .comparison-scroll-container:after {
        content: "← Swipe to view more →";
        position: absolute;
        bottom: -30px;
        left: 0;
        width: 100%;
        text-align: center;
        color: #86a683;
        font-size: 16px;
    }
}

/* Better Value by All Measures */
.cost-block {
    width: 4.5rem !important;
    height: 4.5rem !important;
}

.cost-block>p {
    font-size: 0.67rem !important;
}

/* A Cut Above The Rest - responsive columns */
.responsive-grid {
    grid-template-columns: 215px repeat(6, 90px);
}

@media (min-width: 640px) {
    .responsive-grid {
        grid-template-columns: 215px repeat(6, 130px);
    }
}

/* FAQ Accordion */
.accordion-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.accordion-icon {
    transform: rotate(180deg);
    transition: all 0.3s ease-out;
}

.accordion-button:not([aria-selected="true"]) .accordion-icon {
    transform: rotate(180deg);
}

.accordion-button[aria-expanded="true"] .accordion-icon {
    transform: rotate(360deg);
}

.accordion-button[aria-expanded="true"]+.accordion-content {
    max-height: 2000px;
}

/* Reviews carousel */
.review-carousel {
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.review-card {
    flex: 0 0 auto;
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
}

.review-card.focused {
    opacity: 1;
    z-index: 2;
}

.review-card.adjacent {
    opacity: 0.6;
    z-index: 1;
}

.review-card.distant {
    opacity: 0.3;
    z-index: 0;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Stars styling */
.star {
    width: 20px;
    height: 20px;
    margin-right: 2px;
}

.star-full {
    fill: #FBBC05;
}

.star-half {
    fill: #FBBC05;
}

.star-empty {
    fill: none;
    stroke: #FBBC05;
    stroke-width: 1px;
}

/* Card scaling for focus effect */
.review-card.focused {
    transform: scale(1);
}

.review-card.adjacent {
    transform: scale(0.95);
}

.review-card.distant {
    transform: scale(0.9);
}

.review-text {
    position: relative;
    z-index: 1;
}

/* Gradient overlay effect */
.review-slide {
    position: relative;
    overflow: hidden;
}

/* Gradient overlays */
.review-slide::before,
.review-slide::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%;
    z-index: 3;

    /* Higher than the card z-index to ensure visibility */
    pointer-events: none;
}

/* Left gradient */
.review-slide::before {
    left: 0;
    background: linear-gradient(to right, #deeada 50%, rgba(230, 240, 230, 0));
}

/* Right gradient */
.review-slide::after {
    right: 0;
    background: linear-gradient(to left, #deeada 50%, rgba(230, 240, 230, 0));
}

@media (max-width: 1023px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    /* Gradient width for smaller screens */
    .review-slide::before,
    .review-slide::after {
        width: 20%;
    }
}

@media (max-width: 767px) {
    .carousel-btn {
        width: 32px;
        height: 32px;
    }

    /* Gradient width on mobile */
    .review-slide::before,
    .review-slide::after {
        width: 2%;
    }

    .star {
        width: 16px;
        height: 16px;
    }
}

/* Dropdown menu - topics (FAQ) */
#dropdown-menu {
    width: 50%;
}

@media (max-width: 767px) {
    #dropdown-menu {
        width: 80%;
    }
}

/* Reviews page */
.romw-review-ExzJG4dUKlb1Ul9F9fINf1xrU6kNqCLpMwvxEnkhZ3uouZLTXD {
    font-family: 'Inter', sans-serif !important;
    color: #616161;
}

.romw-date {
    font-size: 0.8rem;
}

.scrollContent {
    font-weight: 300;
}

