.sr-container-cd976d0e {
    display: flex;
    align-items: center;
    gap: 0px; /* Reduced base gap */
}
.sr-container-cd976d0e.sr-text-below {
    flex-direction: column;
    align-items: flex-start;
}
.sr-container-cd976d0e.sr-text-below.sr-align-center {
    align-items: center;
}
.sr-container-cd976d0e.sr-text-below.sr-align-right {
    align-items: flex-end;
}
/* Reversing the row so we can use ~ to style elements to the "right" (visually left) on hover */
.sr-stars-cd976d0e {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}
.sr-star-cd976d0e svg {
    fill: #ccc;
    transition: fill 0.3s ease;
    width: 24px;
    height: 24px;
}

/* Initially color stars based on current rating */
.sr-star-cd976d0e.active svg {
    fill: var(--active-color, #f5b301);
}

/* Hover logic:
   1) When container hovered, forcefully reset ALL stars to inactive color, overriding .active */
[data-mode="full"] .sr-stars-cd976d0e:hover .sr-star-cd976d0e svg,
[data-mode="full"] .sr-stars-cd976d0e:hover .sr-star-cd976d0e.active svg {
    fill: var(--inactive-color, #ccc) !important;
}

/* 2) When a specific star is hovered, it AND its subsequent siblings (visually to the left) get the hover color. 
   Using higher specificity to ensure it beats the container hover rule above. */
[data-mode="full"] .sr-stars-cd976d0e:hover .sr-star-cd976d0e:hover svg,
[data-mode="full"] .sr-stars-cd976d0e:hover .sr-star-cd976d0e:hover ~ .sr-star-cd976d0e svg {
    fill: var(--hover-color, #ffc107) !important;
}

[data-mode="full"] .sr-star-cd976d0e {
    cursor: pointer;
}
.sr-text-cd976d0e {
    margin-top: -14px; /* Pull text even closer to stars in below layout */
    margin-left: 3px;
}

/* Modal Overlay */
.sr-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sr-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.sr-popup-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.sr-popup-overlay.is-open .sr-popup-content {
    transform: translateY(0);
}

.sr-popup-close {
    position: absolute;
    top: 15px !important;
    right: 15px !important;
    font-size: 35px !important;
    padding: 0 !important;
    background: transparent;
    border: none;
    line-height: 1;
    cursor: pointer;
    color: #000;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-popup-close:hover {
    color: #333;
}

.sr-popup-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    color: #333;
}

.sr-input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: inherit;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
}

.sr-message-input {
    resize: vertical;
    margin-bottom: 0px; /* Reduced gap below message field */
}

.sr-html-below-fields {
    margin-top: 5px;
    margin-bottom: 5px; /* Reduced margin below html text */
    font-size: 14px;
    color: #666;
}

.sr-submit-wrapper {
    display: block;
}

.sr-submit-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.3s;
}

.sr-submit-btn:hover {
    opacity: 0.9;
}

.sr-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.sr-popup-success-area {
    text-align: center;
}

.sr-popup-success-area h4 {
    margin-top: 0;
    color: #4CAF50;
}

.sr-countdown {
    font-weight: bold;
}

/* Editor Preview Support */
.sr-force-open {
    position: absolute !important;
    height: auto !important;
    min-height: 400px;
    padding: 40px 20px;
}
