[hidden] { display: none !important; }

.cc-banner, .cc-modal, .cc-box, .cc-modal-box { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }

.cc-banner, .cc-modal { position: fixed; inset: 0; z-index: 9999; }

.cc-banner { display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 23, 42, 0.38); backdrop-filter: blur(3px); }

.cc-modal { align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.48); backdrop-filter: blur(4px); }

.cc-modal:not([hidden]) { display: flex; }

.cc-box, .cc-modal-box { width: min(760px, calc(100% - 24px)); background: #ffffff; color: #172033; border: 1px solid #d9e1ea; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18); }

.cc-box { margin: 12px; padding: 24px; }

.cc-modal-box { padding: 26px; max-height: calc(100vh - 32px); overflow: auto; }

.cc-header h3, .cc-modal-head h3 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; font-weight: 700; color: #172033; letter-spacing: -0.02em; }

.cc-header p, .cc-option p { margin: 0; color: #5b6472; line-height: 1.55; font-size: 15px; }

.cc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 6px; }

.cc-close { border: 0; background: #f4f7fa; color: #344054; width: 40px; height: 40px; border-radius: 10px; font-size: 26px; line-height: 1; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }

.cc-close:hover { background: #e9eef5; color: #111827; transform: scale(1.03); }

.cc-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 16px; margin: 0 0 14px; border: 1px solid #dbe3ec; border-radius: 14px; background: #f8fafc; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }

.cc-option:hover { border-color: #c6d2df; background: #f4f7fb; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05); }

.cc-option strong { display: block; margin-bottom: 6px; font-size: 17px; font-weight: 700; color: #182230; }

.cc-option input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 auto; accent-color: #1f4f8f; cursor: pointer; }

.cc-option-fixed { background: #f1f4f8; border-color: #d7dee7; }

.cc-badge { white-space: nowrap; padding: 8px 12px; border-radius: 999px; background: #1f2937; color: #ffffff; font-size: 12px; font-weight: 700; letter-spacing: 0.01em; }

.cc-actions { display: flex; gap: 10px; margin-top: 20px; }

.cc-actions-modal { margin-top: 22px; }

.cc-btn { flex: 1; border: 0; border-radius: 12px; padding: 14px 16px; cursor: pointer; font: inherit; font-weight: 700; text-align: center; transition: all 0.2s ease; }

.cc-btn-light { background: #fcebea; color: #b42318; }

.cc-btn-light:hover { background: #f8d2cf; }

.cc-btn-save { background: #e6f0fb; color: #1f4f8f; }

.cc-btn-save:hover { background: #d6e6f8; }

.cc-btn-accept { background: #e6f4ee; color: #2f6b57; }

.cc-btn-accept:hover { background: #d7ebe3; }

.cc-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }

.cc-links a { color: #1f4f8f; text-decoration: none; font-weight: 600; }

.cc-links a:hover { text-decoration: underline; color: #173f72; }

.cc-manage { position: fixed; right: 12px; bottom: 12px; z-index: 9998; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #334155; cursor: pointer; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.20); transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }

.cc-manage:hover { background: #1f2937; transform: scale(1.05); box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24); }

.cc-manage-icon { display: block; width: 28px; height: 28px; }

.btn-delete { background: #b42318; border: none; color: #ffffff; padding: 4px 8px; border-radius: 6px; cursor: pointer; transition: background 0.2s ease; }

.btn-delete:hover { background: #912018; }

.btn { display: inline-block; background: #1f2937; color: #ffffff; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 600; transition: background 0.2s ease; }

.btn:hover { background: #111827; }

.btn-pdf { display: inline-block; background: #1f2937; color: #ffffff; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; line-height: 1; transition: background 0.2s ease; }

.btn-pdf:hover { background: #111827; }

.decision-badge { padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }

.map-card { margin-bottom: 24px; }

.map-wrap { height: 420px; border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; background: #f8fafc; }

#visitsMap { width: 100%; height: 100%; }

.map-empty { padding: 20px; color: #667085; font-size: 14px; }

.leaflet-popup-content { font-size: 13px; line-height: 1.5; }

@media (max-width: 640px) {
    .cc-box, .cc-modal-box { border-radius: 16px; }
    .cc-header h3, .cc-modal-head h3 { font-size: 24px; }
    .cc-option { align-items: flex-start; flex-direction: column; }
    .cc-actions { flex-direction: column; }
    .cc-btn { width: 100%; }
    .cc-manage { right: 12px; bottom: 12px; left: auto; width: 46px; height: 46px; }
    .cc-manage-icon { width: 24px; height: 24px; }
}