/* Main Trust Ribbon Container */
.trust-ribbon {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

/* Content Wrapper (Holds static-content and toggle-content) */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Static Content (Editorial Process, Review Board) */
.loc.static-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

/* Toggle Content (Share Feedback Button) */
.loc.toggle-content {
    display: flex;
    align-items: center;
}

/* Trust Ribbon Items (Editorial, Review, Feedback) */
.trust-ribbon-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icons */
.trust-ribbon-item svg {
    fill: #28a745;
}

/* Links and Buttons */
.trust-ribbon-item__text {
	font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    font-size: 15px;
    color: #000000;
    cursor: pointer;
    text-decoration: none;
}

.trust-ribbon-item__text:hover {
	color: green;
    text-decoration: underline;
}

/* Ensure consistent styling */
.loc.expandable-content {
	margin-top: 10px;
    display: none; /* Start hidden */
}

.loc.expandable-content.is-hidden {
    display: none !important;
}

.article-feedback {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    /*width: 400px;*/
    max-width: 100%;
}

/* Feedback Form Sections */
.article-feedback__success-section,
.article-feedback__feedback-section {
    margin-bottom: 10px;
    opacity: 1;
}

.article-feedback__heading {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Close Button */
.close-button {
	margin: -10px;
    width: 18px;
    height: 18px;
    fill: #666;
    cursor: pointer;
    float: right;
}

/* Feedback Form */
.article-feedback__feedback-form {
    margin-top: 10px;
}

.article-feedback__feedback-text {
    width: 100%;
    height: 130px !important;
    resize: none;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.article-feedback__submit-button {
    background-color: #28a745;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.article-feedback__submit-button:hover {
    background-color: #218838;
}

.js-success-section {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
    opacity: 0;
    text-align: center; /* ✅ Center the text */
    transition: opacity 0.6s ease-in-out;
}

.js-success-section:not(.is-hidden) {
    display: block;
    opacity: 1;
}
/* Meta box css */
.merged-feedback-meta-box {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
}
.merged-feedback-meta-box .feedback-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    margin-bottom: 10px;
}
.merged-feedback-meta-box .feedback-item:last-child {
    border-bottom: none;
}
.delete-feedback-button {
    margin-top: 5px;
}
#feedback-error {
    color: red;
    margin-bottom: 10px;
}
/* Mobile Responsiveness */
@media (max-width: 600px) {
    .loc.static-content,
    .loc.toggle-content {
        flex-direction: column;
        gap: 10px;
    }

    .article-feedback {
        width: 100%;
    }
	.content-wrapper {
		gap: 5px;
	}
}