/* assets/css/public-style.css */

/* --- B7 Feedback Overview Shortcode (Enhanced) --- */
.b7-feedback-overview {
    margin: 2em 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.b7-feedback-overview .b7-overview-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 1em;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5em;
    color: #333;
}

/* Works for both <ul> and <div> wrappers */
.b7-feedback-overview .b7-overview-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Works for both <li> and <div> items */
.b7-feedback-overview .b7-overview-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.b7-feedback-overview .b7-overview-items > .b7-overview-item:last-child {
    border-bottom: none;
}

.b7-feedback-overview .b7-overview-item-image a {
    display: block;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.b7-feedback-overview .b7-overview-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.b7-feedback-overview .b7-overview-item-image a:hover img {
    transform: scale(1.05);
}

.b7-feedback-overview .b7-overview-item-content {
    flex-grow: 1;
}

.b7-feedback-overview .b7-overview-item-title {
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
    font-size: 1.05em;
    display: block;
    margin-bottom: 5px;
}
.b7-feedback-overview .b7-overview-item-title:hover {
    color: #005177;
}

.b7-feedback-overview .b7-overview-item-stats {
    font-size: 0.9em;
    color: #666;
    display: flex;
    gap: 12px;
}

.b7-feedback-overview .b7-overview-item-stats .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
    margin-right: 3px;
}
.b7-feedback-overview .b7-overview-stat-likes .dashicons { color: #4CAF50; }
.b7-feedback-overview .b7-overview-stat-dislikes .dashicons { color: #F44336; }
.b7-feedback-overview .b7-overview-stat-comments .dashicons { color: #008CBA; }
.b7-feedback-overview .b7-overview-stat-time .dashicons { color: #9E9E9E; }


/* Grid Template */
.b7-overview-template-grid .b7-overview-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.b7-overview-template-grid .b7-overview-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.b7-overview-template-grid .b7-overview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.b7-overview-template-grid .b7-overview-item-image a {
    width: 100%;
    height: 150px; /* Taller image for grid layout */
    border-radius: 5px 5px 0 0;
}

.b7-overview-template-grid .b7-overview-item-content {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

.b7-overview-template-grid .b7-overview-item-title {
    font-size: 1.1em;
}



/* --- Loading Animation Styles --- */
.b7-feedback-form-container {
    position: relative; /* Needed for loader overlay */
}

.b7-feedback-loader-overlay {
    display: none; /* Hidden by default */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    border-radius: 12px; /* Match form container radius */
    justify-content: center;
    align-items: center;
}

.b7-feedback-loader-overlay.b7-is-loading {
    display: flex; /* Show when loading class is added */
}

/* Template: Spinner */
.b7-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: b7-spin 1s linear infinite;
}
@keyframes b7-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Template: Dots */
.b7-loader-dots {
    display: flex;
    gap: 10px;
}
.b7-loader-dots::before,
.b7-loader-dots::after,
.b7-loader-dots {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #3498db;
    border-radius: 50%;
    animation: b7-bouncedelay 1.4s infinite ease-in-out both;
}
.b7-loader-dots::before {
    animation-delay: -0.32s;
}
.b7-loader-dots::after {
    animation-delay: -0.16s;
}
@keyframes b7-bouncedelay {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Template: Pulse */
.b7-loader-pulse {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    border-radius: 100%;  
    animation: b7-pulse 1.2s infinite cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
@keyframes b7-pulse {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}


/* --- Device Visibility Styles --- */
/* Mobile: Hide on screens smaller than 768px */
@media (max-width: 767px) {
    .b7-hide-on-mobile,
    .b7-hide-on-tablet-mobile {
        display: none !important;
    }
}

/* Tablet: Hide on screens between 768px and 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .b7-hide-on-tablet,
    .b7-hide-on-tablet-mobile {
        display: none !important;
    }
}

/* Desktop: Hide on screens larger than 1024px */
@media (min-width: 1025px) {
    .b7-hide-on-desktop {
        display: none !important;
    }
}




/* e050725 */

/* Style for disabled feedback buttons */
.b7-feedback-button-disabled,
.b7-feedback-button-disabled:hover {
    opacity: 0.6; /* Reduce opacity to indicate disabled state */
    cursor: not-allowed; /* Change cursor to 'not-allowed' */
    pointer-events: none; /* Make sure it's not clickable */
}


.b7-feedback-comment-area.b7-comment-area-hidden {
    display: none; /* Class to hide comment area */
}


.b7-feedback-form-container {
    margin-top: 30px;
    padding: 25px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.b7-feedback-buttons {
    display: flex;
    justify-content: center; /* Center buttons */
    gap: 20px;
    margin-bottom: 20px;
}

.b7-feedback-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
    box-shadow: 0 3px 7px rgba(0,0,0,0.15);
    min-width: 100px;
}

.b7-feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.b7-feedback-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 7px rgba(0,0,0,0.15);
}


.b7-feedback-button .dashicons {
    margin-right: 10px;
    font-size: 1.3rem;
    line-height: 1;
}

.b7-like-button {
    background-color: #4CAF50; /* Green like button */
}
.b7-like-button:hover {
    background-color: #43A047;
}

.b7-dislike-button {
    background-color: #F44336; /* Red dislike button */
}
.b7-dislike-button:hover {
    background-color: #E53935;
}


.b7-feedback-comment-area {
    margin-top: 20px;
    padding-top: 20px;
	padding-left: 10px;
	padding-right: 10px;
    border-top: 1px solid #eee;
}

.b7-feedback-comment-area label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555; /* Darker label color */
}

.b7-feedback-comment-area textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    color: #444; /* Darker text color in textarea */
    background-color: #fefefe; /* Slightly lighter textarea background */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); /* Subtle inset shadow */
}
.b7-feedback-comment-area textarea:focus {
    border-color: #bbb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,120,215,0.1), inset 0 1px 3px rgba(0,0,0,0.05); /* Focus shadow */
}


.b7-feedback-comment-actions {
    margin-top: 20px;
    text-align: right;
}

.b7-feedback-comment-actions button {
    padding: 12px 22px;
    margin-left: 10px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: 500; /* Slightly bolder button text */
}
.b7-feedback-comment-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.b7-feedback-comment-actions button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.b7-feedback-submit-button {
    background-color: #008CBA; /* Blue submit button */
}
.b7-feedback-submit-button:hover {
    background-color: #0077A3;
}

.b7-feedback-cancel-button {
    background-color: #9E9E9E; /* Grey cancel button */
}
.b7-feedback-cancel-button:hover {
    background-color: #757575;
}


.b7-comment-char-count {
    display: block;
    text-align: right;
    font-size: 0.9em;
    color: #777; /* Slightly darker char count color */
    margin-top: 6px;
}

.b7-char-limit-exceeded {
    color: #d32f2f; /* Red for exceeded limit */
    font-weight: 500;
}


/* Thank you message style */
.b7-feedback-thank-you {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    background-color: #f8f8f8;
    color: #555;
}

.b7-feedback-thank-you i.dashicons-heart {
    font-size: 2.5em;
    color: #e57373; /* Light red/pink heart */
    display: inline-block;
    margin-bottom: 15px;
}

.b7-feedback-thank-you p {
    font-size: 1.1em;
    font-weight: 500;
    margin: 0;
}
.b7-feedback-form-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #333;
    font-weight: 600; /* Slightly bolder title */
}
/* assets/css/public-style.css */
/* ... existing styles ... */

/* Predefined comments styles */
.b7-predefined-comments {
    margin-top: 15px; /* More margin above predefined comments */
    display: flex;
    gap: 10px; /* Slightly more gap between buttons */
    flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
    justify-content: flex-start; /* Align predefined comments to the start by default */
}

.b7-predefined-comment-button {
    padding: 10px 14px; /* Slightly larger padding */
    border: 1px solid #ccc;
    border-radius: 6px; /* Slightly more rounded buttons */
    background-color: #f8f8f8; /* Lighter background for buttons */
    color: #444; /* Darker text color */
    cursor: pointer;
    font-size: 0.95rem; /* Slightly larger font size */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; /* Added transition for color and border */
    white-space: nowrap; /* Prevent text wrapping inside buttons */
    box-shadow: 0 1px 2px rgba(0,0,0,0.08); /* Subtle shadow */
}

.b7-predefined-comment-button:hover {
    background-color: #e8e8e8; /* Slightly darker hover background */
    border-color: #bbb; /* Darker border on hover */
    color: #222; /* Even darker text on hover */
}


/* Template: Default */
.b7-template-default .b7-feedback-form-title {
    margin-bottom: 10px;
}
.b7-template-default .b7-feedback-buttons {
    justify-content: flex-start; /* Default is already flex-start */
}
.b7-template-default .b7-predefined-comments {
    justify-content: flex-start; /* Align predefined comments to the start */
}


/* Template: Center Title */
.b7-template-center_title .b7-feedback-form-title {
    text-align: center;
    margin-bottom: 15px;
}
.b7-template-center_title .b7-feedback-buttons {
    justify-content: center;
}
.b7-template-center_title .b7-predefined-comments {
    justify-content: center; /* Center predefined comments in center template */
}


/* Template: Sticky Bottom */
.b7-template-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* Ensure it's on top */
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 20px; /* Spacing between title and buttons */
    box-sizing: border-box;
    border-top: 1px solid #e0e0e0;
    background-color: rgba(249, 249, 249, 0.95); /* Slightly transparent background */
    backdrop-filter: blur(5px); /* Optional blur for background */
}

.b7-template-sticky .b7-feedback-form-title {
    margin-bottom: 0; /* Remove default margin */
    font-size: 1.1rem;
    color: #333;
    white-space: nowrap; /* Prevent title from wrapping */
    overflow: hidden;      /* Hide overflow text */
    text-overflow: ellipsis; /* Ellipsis for overflow */
    max-width: 43%;       /* Limit title width to avoid pushing buttons too much */
    text-align: left;      /* Align title to the left in its limited space */
}

.b7-template-sticky .b7-feedback-buttons {
    margin-bottom: 0; /* Remove default margin */
    flex-grow: 1;       /* Allow buttons to take available space */
    justify-content: center; /* Center buttons in the available space */
}

.b7-template-sticky .b7-feedback-comment-area {
    margin-top: 15px; /* Add margin for comment area below buttons in sticky */
    border-top: 1px solid #eee; /* Add border to separate comment area */
    padding-top: 15px;      /* Add padding to comment area */
    display: none; /* Initially hidden, JS will control display */
    position: absolute;      /* Position comment area absolutely */
    bottom: 100%;           /* Position it above the sticky bar */
    left: 0;                /* Align to the left edge */
    width: 100%;            /* Full width of the sticky container */
    background-color: #fff; /* White background for comment area */
    border: 1px solid #ddd; /* Border for comment area */
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); /* Shadow to lift it above sticky bar */
    box-sizing: border-box; /* Include padding and border in width/height */
    padding: 20px;          /* Padding inside comment area */
    z-index: 1000;         /* Ensure it's above other sticky elements */
}

.b7-template-sticky .b7-feedback-comment-area label,
.b7-template-sticky .b7-feedback-comment-area textarea,
.b7-template-sticky .b7-feedback-comment-area .b7-comment-char-count,
.b7-template-sticky .b7-feedback-comment-area .b7-feedback-comment-actions,
.b7-template-sticky .b7-feedback-comment-area .b7-predefined-comments {
    /* Inherit or reset styles as needed for sticky comment area */
}
.b7-template-sticky .b7-predefined-comments {
    justify-content: flex-start; /* Align predefined comments to the start in sticky template */
}

/* Template: Flat */
.b7-template-flat .b7-feedback-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px; /* Add margin below header */
}

.b7-template-flat .b7-feedback-form-title {
    margin-bottom: 0; /* Remove bottom margin for title */
    font-size: 1.2rem;
}

.b7-template-flat .b7-feedback-buttons {
    margin-bottom: 0; /* Remove bottom margin for buttons */
}

.b7-template-flat .b7-predefined-comments {
    justify-content: flex-start; /* Align predefined comments in flat template */
}

/* Template: Sticky Bottom - Adjust width */
.b7-template-sticky {
    /* ... existing sticky styles ... */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for centering */
    max-width: 1200px; /* Example max width, adjust as needed, larger than typical post width */
    width: 100%; /* Default width for smaller screens */
}



/* Adjust sticky width based on content width - more dynamic approach */
@media (min-width: 768px) { /* Example breakpoint, adjust as needed */
    .b7-template-sticky {
        max-width: 70%; /* Example percentage width, adjust to fit content area */
    }
}
@media (min-width: 1200px) { /* Example larger breakpoint */
    .b7-template-sticky {
        max-width: 960px; /* Example fixed width for larger screens, based on typical content widths */
    }
}
