/* rw-google-status */
.rw-google-status__title {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rw-google-status.connected .rw-google-status__icon {
    color: #00a32a;
}

.rw-google-status.not-connected .rw-google-status__icon {
    color: #d63638;
}

.rw-google-status__data {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 20px;
}

.rw-google-status__data-item p {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 700;
}

.rw-google-status__data-item span {
    font-size: 14px;
    color: #0073aa;
}

/* rw-google-settings */
.rw-google-settings__validation .dashicons-info {
    color: #0073aa;
}

p.rw-google-settings__warning {
    color: #d63638;
}

.rw-google-settings__submit-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rw-google-settings__submit-item .button-secondary {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* rw-google-debug */
.rw-google-debug__forms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.rw-google-debug__forms button.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.rw-google-debug__results h4 {
    color: #0073aa;
}

.rw-google-debug__results-content {
    max-height: 400px;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    background: #f0f6fc;
}

/* rw-google-shortcode */
.rw-google-shortcode__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rw-google-shortcode__item button.button {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rw-google-shortcode .copy-hortcode-message.success {
    color: #00a32a;
}

.rw-google-shortcode .copy-hortcode-message.failed {
    color: #d63638;
}

/* .rw-empty-reviews */
.rw-empty-reviews {
    padding: 40px 20px;
    border: 2px dashed #c3c4c7;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.rw-empty-reviews .dashicons {
    margin-bottom: 15px;
    font-size: 48px;
    color: #c3c4c7;
}

.rw-empty-reviews h3 {
    margin-bottom: 10px;
    color: #646970;
}

.rw-empty-reviews p {
    margin: 0;
    color: #646970;
}

.rw-empty-reviews .dashicons {
    display: block;
    width: 100%;
    height: 100%;
}

/* rw-google-reviews */
.rw-google-reviews-section.loading-spin {
    position: relative;
    overflow: hidden;
}

.rw-google-reviews-section.loading-spin::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0.7;
    z-index: 10;
}

.rw-google-reviews-section.loading-spin::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 30px;
    height: 30px;
    margin: -15px;
    border: 3px solid transparent;
    border-radius: 50%;
    border-top-color: #3f4144;
    border-right-color: #3f4144;
    animation: loading-spin 1s linear infinite;
    z-index: 20;
}

.rw-google-reviews__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rw-google-reviews__arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rw-google-reviews__arrow-prev,
.rw-google-reviews__arrow-next {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 50%;
    background-color: #f7f7f7;
}

.rw-google-reviews__arrow-prev.swiper-button-prev::after,
.rw-google-reviews__arrow-next.swiper-button-next::after {
    display: none;
}

.rw-google-reviews__arrow-prev.swiper-button-prev svg,
.rw-google-reviews__arrow-next.swiper-button-next svg {
    width: 24px;
    height: 24px;
}

.rw-google-reviews__arrow-next {
    transform: rotate(180deg);
}

.rw-google-reviews__swiper .swiper-slide {
    height: auto;
}

.rw-google-review-card {
    position: relative;
    height: 100%;
    padding: 20px;
    background-color: #f7f7f7;
}

.rw-google-review-card__delete-review.button {
    position: absolute;
    top: 10px;
    right: 10px;
    border-color: #ef4224;
    color: #ef4224;
    transition: all 0.2s ease-out 0s;
}

.rw-google-review-card__delete-review.button:hover,
.rw-google-review-card__delete-review.button:focus {
    border-color: #ef4224;
    color: #fff;
    background-color: #ef4224;
    box-shadow: none;
}

.rw-google-review-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.rw-google-review-card__photo {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.rw-google-review-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rw-google-review-card__author {
    font-size: 14px;
    line-height: 16px;
    font-weight: 600;
}

.rw-google-review-card__rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rw-google-review-card__rating svg {
    width: 18px;
    height: 18px;
}

.rw-google-review-card__content {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}