.dg-rating-box {
    margin: 0 auto;
    padding: 20px;
}

.dg-rating-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.dg-rating-summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.dg-rating-score {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 120px;
}

.dg-rating-number {
    font-size: 26px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.dg-rating-number i {
    color: orange;
    margin-right: 5px;
}

.dg-out-of {
    font-size: 16px;
    margin-left: 2px;
}

.dg-rating-details {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.dg-stars-distribution {
    flex: 1;
    min-width: 200px;
}

.dg-stars-row {
    display: flex;
    align-items: center;
    margin: 6px 0;
}

.dg-star-label {
    width: 40px;
    font-size: 14px;
}

.dg-stars-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    margin: 0 10px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.dg-stars-fill {
    height: 100%;
    background-color: var(--Salem-Green);
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
}

.dg-star-percent {
    width: 40px;
    text-align: right;
    font-size: 13px;
}

.dg-rating-button {
    text-align: center;
    margin-top: 25px;
}

.dg-button {
    background-color: var(--Salem-Green);
    color: white;
    padding: 5px 15px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dg-button:hover {
    background-color: var(--White);
	color: var(--Salem-Green);
	border: 2px solid var(--Salem-Green);
}

@media (max-width: 600px) {
    .dg-rating-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .dg-rating-button .dg-button {
        width: 100%;
    }
}

.dg-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.dg-popup-content {
    background: #fff;
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    padding: 20px;
    position: relative;
/*     max-height: calc(100vh - 40px); */
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}


.dg-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.dg-popup-title {
    text-align: center;
    font-size: 22px;
}

.dg-product-image {
    max-width: 120px;
    height: auto;
    margin: 10px auto;
    display: block;
}

.dg-product-name {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.dg-stars {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.dg-stars label {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.dg-stars input[type="radio"] {
    display: none;
}

.dg-stars span {
    font-size: 32px;
    color: transparent;
    -webkit-text-stroke: 1.2px orange;
    transition: all 0.2s ease;
}

.dg-stars label:hover span,
.dg-stars input[type="radio"]:checked + span {
    color: orange;
    -webkit-text-stroke: 1.2px orange;
}

@media (max-width: 480px) {
    .dg-popup-content {
        max-width: 95%;
    }

    .dg-stars {
        gap: 4px;
    }

    .dg-stars label p {
        font-size: 12px;
    }
}

.dg-stars label {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.dg-stars input[type="radio"] {
    display: none;
}

.dg-stars span {
    font-size: 32px;
    color: transparent;
    -webkit-text-stroke: 1.5px orange;
    transition: all 0.2s ease;
}

.dg-stars input[type="radio"]:checked + span,
.dg-stars label:hover span {
    color: orange;
    -webkit-text-stroke: 1.5px orange;
}

.dg-stars label p {
    margin: 5px 0 0;
}

/* .dg-form-details {
    margin-top: 20px;
} */

.dg-form-details textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    font-size: 14px;
}

.dg-options {
    display: flex;
    justify-content: space-between;
/*     align-items: center; */
    flex-wrap: wrap;
    gap: 10px;
}

.dg-upload-btn input[type="file"] {
    display: none;
}

.dg-upload-btn span {
    cursor: pointer;
    color: var(--Salem-Green);
    font-weight: 500;
}

.dg-inputs {
    display: flex;
    gap: 10px;
	margin-top: 10px;
}

.dg-inputs input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.dg-policy {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dg-policy a {
    color: var(--Salem-Green);
    text-decoration: none;
}

.dg-submit-btn {
    background: var(--Salem-Green);
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
}

.dg-links {
    text-align: center;
    font-size: 12px;
}

.dg-links a {
    color: var(--Salem-Green);
    text-decoration: none;
}

.dg-stars label.checked span {
    color: orange;
}

.dg-stars label.checked p {
    font-weight: bold;
    color: orange;
}

.dg-image-preview {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.dg-image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

.dg-image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dg-image-preview-item .remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: red;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.dg-rating-list {
    margin-top: 30px;
}
.dg-rating-item {
    border-top: 1px solid #eee;
    padding: 15px 0;
}
.dg-rating-header {
    font-weight: bold;
    display: flex;
    gap: 10px;
}
.dg-rating-badge {
    background: #eee;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
}
.dg-rating-stars .star {
    color: #ccc;
    font-size: 16px;
}
.dg-rating-stars .star.filled {
    color: #f5a623;
}
.dg-heart {
    margin-left: 10px;
    color: red;
}

.dg-rating-images {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dg-rating-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}