/* ECCV Checklist Styles */
.eccv-checklist {
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    border-radius: 5px;
    background: #f9f9f9;
}

.eccv-checklist h2 {
    margin-top: 0;
}

.eccv-checklist .checklist-item {
    padding: 15px;
    border-top: 1px solid #eee;
}

.eccv-checklist .checklist-item.time-warning {
    background: #fffbe6;
}

.eccv-checklist .checklist-status {
    margin-top: 10px;
    font-weight: bold;
}

.eccv-checklist input[type="text"],
.eccv-checklist input[type="email"] {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
}

.eccv-checklist #eccv-show-change-email {
    margin-left: 10px;
}

/* Status Messages */
.eccv-error,
.checklist-status.eccv-error {
    color: red;
}

.eccv-info,
.checklist-status.eccv-info {
    color: blue;
}

.eccv-success,
.checklist-status.eccv-success {
    color: green;
}

.eccv-success-message {
    color: green;
    font-weight: bold;
}

/* New Style for Disabled Navigation */
.eccv-nav-disabled {
    pointer-events: none !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* CRITICAL FIX: Ensure checklist is above comments section on mobile */
#gatekeeper-checklist-container {
    position: relative;
    z-index: 9999 !important;
}

/* Hide comments section when checklist is shown to prevent overlay */
#learn-press-content-item:has(#gatekeeper-checklist-container) ~ #learn-press-item-comments {
    display: none !important;
}

/* Fallback for browsers that don't support :has() */
body.learnpress-page #learn-press-item-comments {
    position: relative;
    z-index: 1;
}

body.learnpress-page #gatekeeper-checklist-container {
    position: relative;
    z-index: 10000 !important;
    background: white;
}
/* Multi-state pack: per-state license rows in the preflight */
.eccv-state-license-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0 16px;
}
.eccv-state-license-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
}
.eccv-state-license-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    line-height: 1.35;
}
.eccv-state-license-input {
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.eccv-state-license-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Placeholders — clearly light grey + italic so they don't look like real
   saved values. Each browser needs its own selector. */
.eccv-state-license-input::placeholder,
.eccv-ss-license-row input::placeholder {
    color: #9ca3af !important;
    font-style: italic !important;
    opacity: 1; /* Firefox dims to 0.5 by default */
}
.eccv-state-license-input::-webkit-input-placeholder,
.eccv-ss-license-row input::-webkit-input-placeholder {
    color: #9ca3af !important;
    font-style: italic !important;
}
.eccv-state-license-input::-moz-placeholder,
.eccv-ss-license-row input::-moz-placeholder {
    color: #9ca3af !important;
    font-style: italic !important;
    opacity: 1;
}
.eccv-state-license-input:-ms-input-placeholder,
.eccv-ss-license-row input:-ms-input-placeholder {
    color: #9ca3af !important;
    font-style: italic !important;
}

/* Single-state preflight: 3-field row (State + Role + License) */
.eccv-ss-license-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 12px 0 14px;
}
@media (min-width: 700px) {
    .eccv-ss-license-row { grid-template-columns: 200px 1fr 1fr; }
}
.eccv-ss-license-row label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.eccv-ss-license-row label > span {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.eccv-ss-license-row select,
.eccv-ss-license-row input[type=text] {
    width: 100%;
    height: 40px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    box-sizing: border-box;
    line-height: 1.4;
}
.eccv-ss-license-row select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23475569' d='M0 0l5 6 5-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
