/* ===== AM Reviews Carousel Widget ===== */

.am-rc-section {
    font-family: 'General Sans', 'Inter', sans-serif;
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.am-rc-title {
    font-size: 32px;
    font-weight: 500;
    color: #000;
    letter-spacing: -0.8px;
    line-height: 1.1;
    text-align: center;
    margin: 0;
}

.am-rc-wrapper {
    position: relative;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

.am-rc-viewport {
    overflow: hidden;
    margin: 0 auto;
}

.am-rc-track {
    display: flex;
    gap: 32px;
    transition: transform 0.4s ease;
    padding: 12px;
}

.am-rc-card {
    background: #fff;
    border: 0.5px solid #2b3136;
    border-radius: 16px;
    box-shadow: 0px 7px 7px rgba(0,0,0,0.09), 0px 2px 4px rgba(0,0,0,0.1);
    padding: 24px;
    min-width: 300px;
    width: 300px;
    height: 375px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.am-rc-user { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.am-rc-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 600; font-size: 16px; flex-shrink: 0;
}

.am-rc-avatar-img {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}

.am-rc-details { flex: 1; }

.am-rc-name {
    font-family: 'Inter', sans-serif; font-weight: 600;
    font-size: 16px; color: #1a1a1a; margin: 0 0 4px 0; line-height: 20px;
}

.am-rc-date {
    font-family: 'Inter', sans-serif; font-size: 12px;
    color: rgba(0,0,0,0.5); margin: 0; line-height: 15px;
}

.am-rc-google { flex-shrink: 0; }
.am-rc-stars { display: flex; gap: 4px; flex-shrink: 0; }
.am-rc-star { color: #fbbc04; font-size: 20px; line-height: 1; }
.am-rc-star-empty { color: #ddd; }

.am-rc-text {
    font-family: 'Inter', sans-serif; font-style: italic;
    font-size: 14px; line-height: 20px; color: #1a1a1a;
    letter-spacing: 0.28px; margin: 0;
    flex: 1;
    overflow-y: hidden;
}

/* Thin scrollbar when overflow is set to scroll */
.am-rc-text::-webkit-scrollbar { width: 4px; }
.am-rc-text::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.am-rc-text::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.am-rc-text::-webkit-scrollbar-thumb:hover { background: #999; }
.am-rc-text { scrollbar-width: thin; scrollbar-color: #ccc #f0f0f0; }

/* Arrows */
.am-rc-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; display: flex; align-items: center;
    justify-content: center; cursor: pointer; font-size: 24px;
    color: #2b3136; z-index: 2; user-select: none; opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    background: none !important; background-color: transparent !important;
    border: none !important; padding: 0; text-decoration: none; outline: none;
}
.am-rc-arrow:hover,
.am-rc-arrow:focus,
.am-rc-arrow:active,
.am-rc-arrow:visited {
    opacity: 1; color: #2b3136; text-decoration: none; outline: none;
    background: none !important; background-color: transparent !important;
}
.am-rc-arrow-left { left: 0; }
.am-rc-arrow-right { right: 0; }

/* Dots */
.am-rc-dots { display: flex; gap: 8px; justify-content: center; }
.am-rc-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #ccc;
    cursor: pointer; transition: background 0.3s ease, transform 0.3s ease;
}
.am-rc-dot.active { background: #2b3136; transform: scale(1.2); }

@media (max-width: 1024px) {
    .am-rc-wrapper { padding: 0 30px; }
}

@media (max-width: 700px) {
    .am-rc-section { padding: 40px 0; }
    .am-rc-wrapper { padding: 0 20px; }
    .am-rc-title { font-size: 26px; }
}
