.cdg-quiz__question-head {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
gap: 0.35rem 0.75rem;
margin-bottom: 0.5rem;
}
.cdg-quiz__question-head .cdg-quiz__question-title {
flex: 1 1 12rem;
margin: 0;
}
.cdg-quiz__player-feedback {
flex: 0 0 auto;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.25rem;
max-width: 100%;
}
.cdg-quiz__player-feedback-btn {
border: 0;
background: transparent;
color: var(--cdg-muted, #6b7280);
font-size: 0.78rem;
line-height: 1.3;
padding: 0.15rem 0.35rem;
cursor: pointer;
text-decoration: underline;
text-underline-offset: 2px;
opacity: 0.85;
white-space: nowrap;
}
.cdg-quiz__player-feedback-btn:hover:not(:disabled),
.cdg-quiz__player-feedback-btn:focus-visible {
color: var(--cdg-accent, #7c3aed);
opacity: 1;
outline: none;
}
.cdg-quiz__player-feedback-btn:disabled {
cursor: default;
opacity: 0.55;
text-decoration: none;
}
.cdg-quiz__player-feedback-msg {
font-size: 0.72rem;
color: var(--cdg-muted, #6b7280);
text-align: right;
}
.cdg-pf-modal {
position: fixed;
inset: 0;
z-index: 100050;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}
.cdg-pf-modal[hidden] {
display: none !important;
}
.cdg-pf-modal__backdrop {
position: absolute;
inset: 0;
background: rgba(8, 10, 18, 0.45);
cursor: pointer;
}
.cdg-pf-modal__panel {
position: relative;
width: min(22rem, 100%);
max-height: min(70vh, 28rem);
overflow: auto;
background: var(--cdg-surface, #fff);
color: var(--cdg-text, #111827);
border-radius: 12px;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
padding: 1rem 1rem 0.85rem;
}
.cdg-pf-modal__title {
margin: 0 0 0.65rem;
font-size: 1rem;
font-weight: 600;
line-height: 1.35;
}
.cdg-pf-modal__textarea {
width: 100%;
min-height: 4.5rem;
max-height: 12rem;
resize: vertical;
border: 1px solid var(--cdg-border, #d1d5db);
border-radius: 8px;
padding: 0.55rem 0.65rem;
font: inherit;
line-height: 1.4;
box-sizing: border-box;
background: var(--cdg-surface, #fff);
color: inherit;
}
.cdg-pf-modal__textarea:focus {
border-color: var(--cdg-accent, #7c3aed);
outline: 2px solid rgba(124, 58, 237, 0.2);
outline-offset: 1px;
}
.cdg-pf-modal__check {
display: flex;
gap: 0.45rem;
align-items: flex-start;
margin: 0.55rem 0 0.75rem;
font-size: 0.82rem;
line-height: 1.35;
color: var(--cdg-muted, #4b5563);
cursor: pointer;
}
.cdg-pf-modal__check input {
margin-top: 0.15rem;
flex-shrink: 0;
}
.cdg-pf-modal__actions {
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
justify-content: flex-end;
}
.cdg-pf-modal__error {
margin: 0.55rem 0 0;
font-size: 0.82rem;
color: #b45309;
}
@media (max-width: 390px) {
.cdg-quiz__player-feedback {
width: 100%;
align-items: flex-start;
}
.cdg-quiz__player-feedback-msg {
text-align: left;
}
.cdg-pf-modal {
padding: 0.65rem;
align-items: flex-end;
}
.cdg-pf-modal__panel {
width: 100%;
border-radius: 12px 12px 0 0;
max-height: 85vh;
}
.cdg-pf-modal__actions {
justify-content: stretch;
}
.cdg-pf-modal__actions .cdg-quiz__btn {
flex: 1 1 auto;
min-width: 0;
}
}