.cg-feedback-widget {
    font-family: "Roboto", sans-serif;
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 380px;
    text-align: center;
    margin: 30px auto;
}

.cg-feedback-widget h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #0088a8;
}

.cg-feedback-widget p {
    font-size: 14px;
    margin-bottom: 18px;
    color: #555;
}

.cg-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.cg-star {
    font-size: 34px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.cg-star.cg-hover,
.cg-star.cg-selected {
    color: #0088a8;
}

.cg-btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.cg-primary-btn {
    background: #0088a8;
    color: #ffffff;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s ease;
}

.cg-primary-btn:hover {
    background: #005f75;
    transform: scale(1.03);
}

.cg-skip-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.cg-skip-btn:hover {
    color: #0088a8;
    background: rgba(0, 136, 168, 0.08);
    text-decoration: none;
}

.cg-success-msg {
    display: none;
    margin-top: 16px;
    color: #0088a8;
    font-weight: 700;
    font-size: 16px;
}

.cg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 32, 39, 0.65);
    backdrop-filter: blur(5px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.cg-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.4s ease, visibility 0s;
}

.cg-feedback-widget.modal-box {
    position: relative;
    background: #ffffff;
    padding: 32px 36px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 136, 168, 0.28);
    max-width: 410px;
    width: 90%;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cg-feedback-widget.modal-box:focus { outline: none; }

.cg-modal-overlay.show .cg-feedback-widget.modal-box {
    transform: translateY(0) scale(1);
}

.cg-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.cg-close-btn:hover {
    color: #0088a8;
}


.cg-feedback-widget { box-sizing: border-box; font-family: "Roboto", sans-serif; }
.cg-feedback-widget h3 { line-height: 1.3; }
.cg-stars { border: 0; }
.cg-star {
  background: transparent;
  border: 0;
  padding: 0 2px;
  line-height: 1;
  font: inherit;
  font-size: 34px;
  color: #ccc;
  cursor: pointer;
}
.cg-star:focus-visible,
.cg-primary-btn:focus-visible,
.cg-skip-btn:focus-visible,
.cg-close-btn:focus-visible {
  outline: 3px solid rgba(0, 136, 168, 0.35);
  outline-offset: 3px;
}
.cg-feedback-error {
  color: #9f2626 !important;
  min-height: 18px;
  margin: 0 0 8px !important;
}
.cg-primary-btn:disabled { opacity: 0.65; cursor: wait; transform: none; }
.cg-modal-overlay { padding: 18px; box-sizing: border-box; }
.cg-feedback-widget.modal-box { max-height: calc(100dvh - 36px); overflow-y: auto; }
@media (max-width: 480px) {
  .cg-feedback-widget.modal-box { padding: 34px 22px 26px; }
  .cg-feedback-widget h3 { font-size: 20px; }
  .cg-star { font-size: 31px; }
}
