﻿.footer-feedback-host,
.footer-feedback-host.feedback-section,
.footer-feedback-host.article-feedback,
.footer-feedback-host.generic-ts-feedback,
#page-feedback {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    background: #f7f7f7;
}

    .footer-feedback-host.row,
    #page-feedback.row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .footer-feedback-host::before,
    .footer-feedback-host::after,
    #page-feedback::before,
    #page-feedback::after {
        display: none !important;
        content: none !important;
    }

.ces-feedback-section {
    width: 100%;
    background: #f7f7f7;
    margin: 0 !important;
    padding: 36px 16px 32px;
    box-sizing: border-box;
    font-family: "Costco Sans Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333333;
}

.ces-feedback-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.ces-rating-container {
    text-align: center;
}

.ces-feedback-question {
    margin: 0 0 20px;
    font-size: 18px;
    line-height: 150%;
    font-weight: 400;
    color: #333333;
}

.ces-rating-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ces-rating-button {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #005DAB;
    border-radius: 2px;
    background: #ffffff;
    color: #005DAB;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}

    .ces-rating-button .ces-star-icon {
        display: inline-block;
        color: #005DAB;
        font-size: 22px;
        line-height: 1;
        font-weight: 400;
    }

    .ces-rating-button:hover,
    .ces-rating-button:focus {
        outline: 2px solid #005DAB;
        outline-offset: 2px;
    }

    .ces-rating-button.is-highlighted,
    .ces-rating-button.is-selected {
        background: #005DAB;
        border-color: #005DAB;
        color: #ffffff;
    }

        .ces-rating-button.is-highlighted .ces-star-icon,
        .ces-rating-button.is-selected .ces-star-icon {
            color: #ffffff;
        }

.ces-rating-tooltip {
    min-height: 16px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 130%;
    font-weight: 400;
    color: #707070;
}

.ces-feedback-expanded-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 300ms ease-out, opacity 300ms ease-out;
    text-align: left;
}

    .ces-feedback-expanded-panel.is-expanded {
        max-height: 900px;
        opacity: 1;
        margin-top: 24px;
    }

.ces-feedback-form-container {
    width: 900px;
    max-width: 100%;
    min-height: 545px;
    border-top: 1px solid #cccccc;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.ces-feedback-heading {
    width: 900px;
    max-width: 100%;
    margin: 0;
    font-size: 24px;
    line-height: 130%;
    font-weight: 400;
    color: #333333;
}

.ces-feedback-copy {
    margin: 0;
    font-weight: 400;
    color: #333333;
}

.ces-feedback-intro {
    width: 370px;
    max-width: 100%;
    font-size: 16px;
    line-height: 150%;
}

.ces-feedback-support-copy {
    width: 900px;
    max-width: 100%;
    font-size: 14px;
    line-height: 150%;
}

.ces-feedback-link {
    color: #005DAB;
    text-decoration: underline;
    text-underline-offset: 10%;
}

.ces-feedback-form {
    width: 900px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ces-feedback-field {
    width: 400px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
}

.ces-feedback-label-row {
    width: 400px;
    max-width: 100%;
    min-height: 63px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 8px;
    box-sizing: border-box;
}

.ces-feedback-label {
    width: 100%;
    margin: 0;
    font-size: 14px;
    line-height: 150%;
    font-weight: 700;
    color: #333333;
    vertical-align: middle;
}

.ces-feedback-optional {
    width: 57px;
    height: 18px;
    margin: 0 0 1px;
    font-size: 12px;
    line-height: 150%;
    font-weight: 400;
    color: #707070;
    white-space: nowrap;
    vertical-align: middle;
}

.ces-feedback-textarea {
    width: 400px;
    max-width: 100%;
    height: 120px;
    min-height: 120px;
    resize: vertical;
    border: 1px solid #004c8a;
    border-radius: 4px;
    box-shadow: none;
    font-size: 14px;
    line-height: 150%;
    font-weight: 400;
    padding: 12px;
    background: #ffffff;
    color: #333333;
    box-sizing: border-box;
}

    .ces-feedback-textarea:focus {
        border-color: #004c8a;
        box-shadow: none;
        outline: 1px solid #004c8a;
        outline-offset: 0;
    }

.ces-feedback-counter {
    width: 400px;
    max-width: 100%;
    height: 16px;
    margin-top: 0;
    text-align: right;
    font-size: 12px;
    line-height: 130%;
    font-weight: 400;
    color: #707070;
    vertical-align: middle;
    box-sizing: border-box;
}

.ces-feedback-validation {
    display: block;
    margin-top: 8px;
}

/*
    Important:
    Do not scale Google reCAPTCHA.
    The native checkbox widget is rendered by Google at a fixed size.
    Scaling it makes the text/logo look zoomed and inconsistent with Figma.
*/
.ces-feedback-captcha-row {
    width: 400px;
    max-width: 100%;
    height: 74px;
    min-height: 74px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
}

.ces-feedback-captcha {
    width: 400px;
    max-width: 100%;
    height: 74px;
    min-height: 74px;
    background: transparent;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

    /*
    Google injects a 304px-wide widget.
    Keep it native. Do not force 400px and do not transform.
*/
    .ces-feedback-captcha > div {
        width: 304px !important;
        height: 78px !important;
        transform: none !important;
        transform-origin: top left !important;
    }

    .ces-feedback-captcha iframe {
        width: 304px !important;
        height: 78px !important;
        transform: none !important;
        transform-origin: top left !important;
    }

.ces-feedback-actions {
    width: 900px;
    max-width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.ces-feedback-submit {
    width: auto;
    min-width: 90px;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 2px;
    background-color: #005DAB;
    border: 1px solid #005DAB;
    color: #ffffff;
    font-size: 14px;
    line-height: 150%;
    font-weight: 400;
    box-sizing: border-box;
}

    .ces-feedback-submit:hover,
    .ces-feedback-submit:focus {
        background-color: #004c8a;
        border-color: #004c8a;
        color: #ffffff;
    }

    .ces-feedback-submit:disabled,
    .ces-feedback-submit[disabled] {
        background-color: #e6e6e6;
        border-color: #d6d6d6;
        color: #b5b5b5;
        cursor: not-allowed;
        opacity: 1;
    }

@media only screen and (max-width: 767px) {
    .ces-feedback-section {
        padding: 28px 16px 28px;
    }

    .ces-feedback-inner,
    .ces-feedback-form-container,
    .ces-feedback-form,
    .ces-feedback-actions {
        width: 100%;
        max-width: 100%;
    }

    .ces-feedback-form-container {
        min-height: auto;
    }

    .ces-feedback-heading {
        font-size: 24px;
        line-height: 130%;
    }

    .ces-feedback-intro,
    .ces-feedback-support-copy {
        width: 100%;
    }

    .ces-feedback-field,
    .ces-feedback-label-row,
    .ces-feedback-textarea,
    .ces-feedback-counter,
    .ces-feedback-captcha-row,
    .ces-feedback-captcha {
        width: 100%;
        max-width: 100%;
    }

    .ces-feedback-label-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media only screen and (max-width: 430px) {
    .ces-feedback-captcha-row,
    .ces-feedback-captcha {
        width: 304px;
        max-width: 100%;
        height: 78px;
        min-height: 78px;
    }
}