/* Feedback button */
.yak-feedback-button {
	transition: opacity 0.2s ease, border-color 0.2s ease, outline 0.2s ease !important;
    padding: 0.33rem 0.67rem;
    font-size: var(--yak-font-xs, 0.875rem);
    font-weight: 400;
    background: transparent !important;
    border: 1px solid var(--yak-color-black, #000) !important;
    border-radius: var(--yak-radius, 4px) !important;
    color: var(--yak-color-black, #000) !important;
    opacity: 0.6;
    cursor: pointer;
    /* Override theme hover effects */
    background-image: none !important;
    background-size: 0 !important;
    box-shadow: none !important;
    /* Center icon and text */
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    outline: 0 solid transparent;
}

.yak-feedback-button i {
    font-size: 1em;
}

.yak-feedback-button:hover {
    opacity: 1;
    border-color: var(--yak-color-black, #000) !important;
    background: transparent !important;
    background-image: none !important;
    transform: none !important;
    outline: 2px solid rgba(0, 0, 0, 0.15) !important;
    outline-offset: 2px;
}

/* Panel overlay */
.yak-feedback-panel {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 0.96);
    border-radius: var(--yak-radius);
	display: none;
	align-items: flex-start;
	justify-content: center;
	z-index: 9998;
}

/* Inner panel */
.yak-feedback-panel.open {
	display: flex;
}

.yak-feedback-inner {
    margin-top: 3rem;
	background: #fff;
	padding: 2rem;
    padding-top: 1.5rem;
	border-radius: var(--yak-radius);
	max-width: 400px;
	width: 90%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	position: relative;
}

/* Question text */
.yak-feedback-question {
	margin-bottom: 1rem;
	font-weight: 700;
    line-height: 1.4;
}

/* Options */
.yak-feedback-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.yak-feedback-option,
.yak-feedback-submit {
    transition: all ease-in-out .33s;
    padding: 0.33rem 0.67rem;
    font-size: var(--yak-font-xs);
    font-weight: 400;
    background: transparent;
    border: 1px solid #aaa;
    border-radius: var(--yak-radius, 4px);
    color: var(--yak-color-black);
    opacity: 0.7;
    cursor: pointer;
}

.yak-feedback-option:hover,
.yak-feedback-submit:hover {
	opacity: 1;
    border: 1px solid var(--yak-color-black);
    box-shadow: 0 0 4px rgba(0,0,0,.2);
    outline: 2px solid rgba(0, 0, 0, 0.1);
    outline-offset: 1px;
}

/* Textarea */
.yak-feedback-textarea {
	width: 100%;
	padding: 0.75rem;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	resize: vertical;
}

/* Close button */
.yak-feedback-close {
	position: absolute;
	top: -12px;
    right: -12px;
	background: #eee;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: var(--yak-color-black);
    transition: all ease-in-out .25s;
    height: 30px;
    width: 30px;
    line-height: 1;
    padding: 1rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.yak-feedback-close:hover {
    color: #fff;
} 


.yak-feedback-toast {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--yak-color-black, #003a5d);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 4px;
	font-size: 0.9rem;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
	z-index: 9999;
}
.yak-feedback-toast.visible {
	opacity: 0.95;
	transform: translateX(-50%) translateY(-10px);
}



.yak-feedback-modal {
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
}

.yak-feedback-modal-content {
	background: #fff;
	padding: 1.5rem;
	border-radius: 8px;
	max-width: 600px;
	width: 90%;
	position: relative;
	box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.yak-feedback-modal-close {
    color: red;
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
}


.clb-yak-feedback-text-wrapper {
    margin-bottom:1rem; 
    padding:0.5rem; 
    background:#eee; 
    border-radius:4px; 
    white-space: pre-wrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a.yak-feedback-view-entry {
    font-size: var(--yak-font-xs);
    opacity: 0.5;
}

a.yak-feedback-view-entry:hover {
    opacity: 1;
}

h3.yak-feedback-modal-header {
    margin-top: 0;
}

.yak-feedback-modal-content ul {
    margin-top: 1rem;
}

/* Rating labels */
.yak-feedback-rating-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: var(--yak-font-xs, 0.875rem);
    opacity: 0.7;
}

/* Rating group - horizontal pills */
.yak-feedback-rating-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.yak-feedback-rating-pill {
    transition: all ease-in-out .25s;
    padding: 0.67rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid #ddd;
    border-radius: var(--yak-radius, 50px);
    color: var(--yak-color-black, #000);
    min-width: 50px;
    cursor: pointer;
}

.yak-feedback-rating-pill:hover {
    border-color: var(--yak-color-black, #000);
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    outline: 2px solid rgba(0, 0, 0, 0.1);
    outline-offset: 2px;
}

.yak-feedback-rating-pill:active {
    transform: translateY(0);
}