/* =========================================================
   EcoRebates PDP rebate callout
   Beige band, green amount and button, dark brown accent.
   Applies to ecr-product-widget slot markup on all PDPs.
   Nov 2026 redesign. Fonts: Encode Sans, Source Sans Pro.
   ========================================================= */

/* Hide slot content until the widget script defines the element */
ecr-product-widget:not(:defined) > div[data-ecr-slot] {
    display: none;
}

.product-rebate-button {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    margin: 0 0 28px;
    padding: 0;
    background: #efe9dc;
    border: 1px solid #ddd4c1;
    border-left: 12px solid #4a3524;
    color: #163029;
    font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.product-rebate-button:hover {
    background: #e6dcc6;
}

.product-rebate-button a {
    display: block;
    position: relative;
    padding: 26px 250px 26px 28px;
    color: #163029 !important;
    text-decoration: none !important;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.product-rebate-button a [data-ecr-var="totalAmount"] {
    display: block;
    margin: 2px 0 4px;
    font-family: "Encode Sans", "Source Sans Pro", Arial, sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.05;
    color: #006241;
}

.product-rebate-button a [data-ecr-var="cityState"] {
    color: #4a3524;
}

/* Button text. Edit the content line to change the wording. */
.product-rebate-button a::after {
    content: "See rebate details \2192";
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    padding: 14px 22px;
    background: #006241;
    color: #ffffff;
    font-family: "Encode Sans", "Source Sans Pro", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.product-rebate-button:hover a::after,
.product-rebate-button a:focus-visible::after {
    background: #4a3524;
    color: #ffffff;
}

.product-rebate-button a:focus-visible {
    outline: 2px solid #4a3524;
    outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
    .product-rebate-button,
    .product-rebate-button a::after {
        transition: none;
    }
}

@media (max-width: 640px) {
    .product-rebate-button a {
        padding: 22px 20px;
    }

    .product-rebate-button a [data-ecr-var="totalAmount"] {
        font-size: 36px;
    }

    .product-rebate-button a::after {
        position: static;
        display: block;
        transform: none;
        margin-top: 16px;
        text-align: center;
    }
}