.single-product .woocommerce-product-rating {
    display: none !important;
}

.as-widget.as-preview-badge,
.as-widget.as-review-widget,
.as-widget.as-carousel,
.as-widget.as-media-grid,
.as-widget.as-verified-badge {
    font-family: inherit;
}

.as-preview-badge {
    margin: 8px 0 14px;
}

.single-product .as-preview-badge {
    margin: 12px 0 18px;
}

.single-product .as-preview-badge .as-stars {
    font-size: 20px;
}

.as-preview-badge .as-preview-badge__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111827;
    flex-wrap: wrap;
    cursor: pointer;
}

.as-preview-badge__text {
    color: #6b7280;
    font-size: 13px;
}

.single-product .as-preview-badge__text {
    font-size: 16px;
    font-weight: 600;
}

.as-review-rating-link,
.as-review-count-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.as-review-count-link:hover,
.as-review-rating-link:hover {
    color: inherit;
    text-decoration: none;
}

.as-stars {
    position: relative;
    display: inline-block;
    line-height: 1;
    letter-spacing: 0.08em;
}

.as-stars__base {
    color: #d1d5db;
}

.as-stars__fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f59e0b;
}

.as-review-widget {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.as-review-widget__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.as-review-widget__title {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.2;
}

.as-review-widget__subtitle {
    margin: 0;
    color: #64748b;
}

.as-review-widget__summary {
    display: block;
    min-width: 150px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    text-decoration: none;
}

.as-review-widget__actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.as-review-write-button,
.as-review-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.as-review-write-button:hover,
.as-review-form__submit:hover {
    background: #ea580c;
    color: #ffffff;
}

.as-review-form__submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.as-review-widget__stars,
.as-review-card__stars,
.as-carousel__stars {
    display: inline-flex;
}

.as-review-widget__count {
    margin-top: 6px;
    color: #7c2d12;
    font-size: 13px;
}

.as-review-widget__empty {
    padding: 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #475569;
}

.as-review-list {
    display: grid;
    gap: 12px;
}

.as-review-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.as-review-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #ffffff;
    color: #0f3aa2;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.as-review-pagination__item:hover,
.as-review-pagination__item.is-active {
    border-color: #ff7a1a;
    background: #fff7ed;
    color: #c2410c;
}

.as-review-card {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.as-review-card__header,
.as-review-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.as-review-card__author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.as-review-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #0f766e;
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
}

.as-review-card__author strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.2;
}

.as-review-card__product {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.as-review-card__meta {
    margin-top: 7px;
    color: #64748b;
    font-size: 12px;
    justify-content: flex-start;
}

.as-review-card__verified {
    color: #166534;
    font-weight: 600;
}

.as-review-card__content {
    margin-top: 10px;
    color: #0f172a;
    line-height: 1.55;
    font-size: 14px;
}

.as-review-card__images,
.as-media-grid {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    -webkit-user-select: none;
    user-select: none;
}

.as-review-card__images {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}

.as-media-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.as-review-image-button {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    cursor: zoom-in;
    appearance: none;
}

.as-review-card__images img,
.as-media-grid img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
    transition: transform 0.18s ease;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.as-review-image-button:hover img {
    transform: scale(1.04);
}

.as-carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.as-carousel__card {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    min-height: 170px;
}

.as-carousel__text {
    color: #111827;
    line-height: 1.7;
    margin: 12px 0;
}

.as-carousel__author {
    color: #9a3412;
}

.as-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.as-review-lightbox-open,
.as-review-form-open {
    overflow: hidden;
}

.as-review-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 56px;
    box-sizing: border-box;
}

.as-review-lightbox.is-open {
    display: flex;
}

.as-review-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
}

.as-review-lightbox__panel {
    position: relative;
    z-index: 1;
    max-width: min(960px, 94vw);
    max-height: 86vh;
    border-radius: 16px;
    background: #0f172a;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    overflow: visible;
}

.as-review-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 86vh;
    border-radius: 16px;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.as-review-lightbox__close {
    position: absolute;
    top: -42px;
    right: -42px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.as-review-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.as-review-lightbox__prev {
    left: -50px;
}

.as-review-lightbox__next {
    right: -50px;
}

.as-review-lightbox__nav:hover {
    background: #ffffff;
}

.as-review-form-modal {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.as-review-form-modal.is-open {
    display: flex;
}

.as-review-form-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
}

.as-review-form-modal__panel {
    position: relative;
    z-index: 1;
    width: min(520px, 94vw);
    max-height: 90vh;
    overflow: auto;
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.as-review-form-modal__panel h3 {
    margin: 0 0 16px;
    font-size: 22px;
}

.as-review-form-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.as-review-form {
    display: grid;
    gap: 14px;
}

.as-review-form label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-weight: 700;
}

.as-review-form__phone-field {
    display: grid;
    gap: 6px;
}

.as-review-form__field-title {
    color: #334155;
    font-weight: 700;
}

.as-review-form__phone-row {
    display: grid;
    grid-template-columns: 84px 78px minmax(0, 1fr);
    gap: 8px;
    align-items: end;
}

.as-review-form__phone-row label {
    gap: 4px;
    font-size: 12px;
}

.as-review-form__phone-row input {
    text-align: center;
}

.as-review-form__number input {
    text-align: left;
}

.as-review-form input,
.as-review-form select,
.as-review-form textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 11px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
}

.as-review-form textarea {
    resize: vertical;
}

.as-review-form small {
    color: #64748b;
    font-weight: 400;
    line-height: 1.45;
}

.as-review-form__status {
    min-height: 20px;
    font-size: 13px;
}

.as-review-form__status.is-success {
    color: #166534;
}

.as-review-form__status.is-error {
    color: #b91c1c;
}

@media (max-width: 767px) {
    .as-review-widget {
        padding: 18px;
    }

    .as-review-widget__header {
        flex-direction: column;
    }

    .as-review-widget__summary {
        width: 100%;
    }

    .as-review-widget__actions {
        width: 100%;
        justify-content: stretch;
    }

    .as-review-write-button {
        width: 100%;
    }

    .as-review-form__phone-row {
        grid-template-columns: 68px 64px minmax(0, 1fr);
        gap: 6px;
    }

    .as-review-card__images {
        grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    }

    .as-review-card__images img,
    .as-media-grid img {
        height: 82px;
    }

    .as-review-lightbox {
        padding: 46px 38px;
    }

    .as-review-lightbox__panel,
    .as-review-lightbox__image {
        max-height: 82vh;
    }

    .as-review-lightbox__close {
        top: -38px;
        right: 0;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .as-review-lightbox__nav {
        width: 30px;
        height: 30px;
        font-size: 23px;
    }

    .as-review-lightbox__prev {
        left: -34px;
    }

    .as-review-lightbox__next {
        right: -34px;
    }
}
