:root {
  --p-font-family-sans: 'Montserrat', sans-serif !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 100px #fff inset !important;
  box-shadow: 0 0 0 100px #fff inset !important;
  -webkit-text-fill-color: inherit !important;
  transition: background-color 9999s ease-in-out 0s;
}

body,
body * {
  font-family: 'Montserrat', sans-serif !important;
}

body {
  background: #f6f6f7;
}

.cc-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cc-page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-page-title {
  margin: 0;
  font-weight: 700;
  color: #101828;
  font-family: Montserrat;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.cc-script-toggle-wrap {
  position: relative;
  display: inline-flex;
}

.cc-script-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid;
  cursor: pointer;
  line-height: 20px;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.cc-script-toggle.is-active {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}

.cc-script-toggle.is-active:hover {
  background: #dcfce7;
  border-color: #4ade80;
}

.cc-script-toggle.is-updating {
  background: #fefce8;
  border-color: #fde68a;
  color: #a16207;
  cursor: not-allowed;
  opacity: 0.85;
}

.cc-script-toggle.is-inactive {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.cc-script-toggle.is-inactive:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.cc-script-toggle:disabled {
  cursor: not-allowed;
}

.cc-script-toggle-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cc-script-toggle.is-active .cc-script-toggle-dot {
  background: #22c55e;
}

.cc-script-toggle.is-updating .cc-script-toggle-dot {
  background: #eab308;
}

.cc-script-toggle.is-inactive .cc-script-toggle-dot {
  background: #ef4444;
}

.cc-script-toggle.is-active .cc-script-toggle-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0.3;
  animation: cc-pulse 1.8s ease-in-out infinite;
}

@keyframes cc-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.cc-script-toggle-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 999;
}

.cc-script-toggle-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #1a1a1a;
}

.cc-script-toggle-wrap:hover .cc-script-toggle-tooltip {
  opacity: 1;
}

.cc-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
}

.cc-card {
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 12px;
  overflow: hidden;
}

.cc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e1e3e5;
  cursor: pointer;
  user-select: none;
}

.cc-section-head:hover {
  background: #fafbfb;
}

.cc-section-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-section-head-left h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #202223;
  font-family: 'Montserrat', sans-serif;
}

.cc-section-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-sec-icon {
  flex-shrink: 0;
}

.cc-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.cc-chevron.is-down {
  transform: rotate(180deg);
}

.cc-accordion-wrap {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.28s ease;
}

.cc-accordion-wrap.closed {
  grid-template-rows: 0fr;
}

.cc-accordion-inner {
  overflow: hidden;
  min-height: 0;
}

.cc-badge-hidden {
  visibility: hidden;
}

.cc-badge-on {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  border: 1px solid #282447;
  background: #282447;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 12px;
  letter-spacing: 0.01em;
  line-height: 20px;
  font-family: 'Montserrat', sans-serif;
}

.cc-card-body {
  padding: 20px 24px 24px;
}

.cc-tooltip-wrap {
  position: relative;
  display: inline-flex;
}

.cc-tooltip-bubble {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 999;
}

.cc-tooltip-bubble::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #1a1a1a;
}

.cc-tooltip-wrap:hover .cc-tooltip-bubble {
  opacity: 1;
}

.cc-btn-outline {
  display: inline-flex;
  padding: 8px 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #fff;
  color: #202223;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #c9cccf;
  cursor: pointer;
  line-height: 20px;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.cc-btn-outline:hover {
  background: #f6f6f7;
  border-color: #8c9196;
}

.cc-btn-outline:active {
  background: #f1f2f3;
}

.cc-btn-save,
.Polaris-Button--textAlignCenter {
  position: relative;
  display: inline-flex;
  padding: 8px 24px;
  min-width: 150px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background: #F36319;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  line-height: 20px;
  transition: background 0.15s;
  white-space: nowrap;
}

.cc-btn-save:hover {
  background: #d95714;
}

.cc-btn-save:active {
  background: #c24e12;
}

.cc-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.cc-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-toggle-track {
  display: block;
  position: absolute;
  inset: 0;
  background: #c9cccf;
  border-radius: 100px;
  transition: background 0.2s;
}

.cc-toggle-thumb {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.cc-toggle input:checked + .cc-toggle-track {
  background: #e8450a;
}

.cc-toggle input:checked + .cc-toggle-track .cc-toggle-thumb {
  transform: translateX(18px);
}

.cc-enable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #202223;
}

.cc-global-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.cc-fallback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cc-fallback-title {
  font-size: 14px;
  font-weight: 600;
  color: #202223;
}

.cc-fallback-desc {
  margin: 0;
  font-size: 13px;
  color: #6A7282;
  line-height: 20px;
}

.cc-theme-dd-wrap {
  position: relative;
  display: inline-block;
}

.cc-theme-dd-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 998;
}

.cc-theme-dd-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #1a1a1a;
}

.cc-theme-dd-wrap:hover .cc-theme-dd-tooltip {
  opacity: 1;
}

.cc-theme-dd-wrap.is-open:hover .cc-theme-dd-tooltip {
  opacity: 0;
}

.cc-header-theme-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 39px;
  padding: 0 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #fff;
  min-width: 160px;
  max-width: 220px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
  text-align: left;
}

.cc-header-theme-select:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.cc-header-theme-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cc-theme-dd-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-theme-live-tag {
  color: #16a34a;
  font-weight: 700;
}

.cc-theme-dd-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  z-index: 1000;
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}

.cc-theme-dd-option {
  padding: 9px 14px;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.1s;
}

.cc-theme-dd-option:hover {
  background: #f3f4f6;
}

.cc-theme-dd-option.is-selected {
  background: #f0fdf4;
  font-weight: 600;
  color: #202223;
}

.cc-divider {
  border: none;
  border-top: 1px solid #e1e3e5;
  margin: 20px 0;
}

.cc-behaviors-heading {
  font-size: 14px;
  font-weight: 600;
  color: #202223;
  margin: 0 0 16px;
}

.cc-behaviors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cc-behavior-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cc-behavior-item > svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.cc-behavior-title {
  font-size: 13px;
  font-weight: 600;
  color: #202223;
  margin-bottom: 4px;
}

.cc-behavior-desc {
  font-size: 12px;
  color: #6A7282;
  line-height: 18px;
}

.cc-tag-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
}

.cc-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #202223;
  margin-bottom: 10px;
}

.cc-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #202223;
  cursor: pointer;
}

.cc-radio-item span {
  color: #6A7282;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.cc-radio {
  accent-color: #e8450a;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.cc-tag-input {
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #c9cccf;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: #202223;
  outline: none;
  background: #fff;
}

.cc-tag-input:focus {
  box-shadow: inset 0 0 0 0.0625rem #1a1a1a, inset 0 0 0 1px rgba(26, 26, 26, 1);
  outline: 2px solid #005bd3;
  outline-offset: 0.1px;
}

.cc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f2f3;
  border: 1px solid #d1d5da;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #202223;
}

.cc-chip-x {
  all: unset;
  cursor: pointer;
  color: #6A7282;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.cc-chip-x:hover {
  color: #202223;
}

.cc-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6A7282;
}

.cc-ratio-label {
  font-size: 13px;
  font-weight: 600;
  color: #202223;
  margin-bottom: 4px;
}

.cc-ratio-desc {
  font-size: 13px;
  color: #6A7282;
  margin-bottom: 14px;
}

.cc-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 16px;
  align-items: start;
}

.cc-info-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f6f6f7;
  border: 1px solid #e1e3e5;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #282447;
  line-height: 20px;
}

.cc-info-box > svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.cc-country-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cc-enable-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #202223;
}

.cc-country-table-head {
  display: grid;
  grid-template-columns: 1fr 1fr 48px;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e1e3e5;
  font-size: 13px;
  font-weight: 600;
  color: #202223;
}

.cc-country-row {
  display: grid;
  grid-template-columns: 1fr 1fr 48px;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
}

.cc-del-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #6A7282;
  transition: background 0.15s;
}

.cc-del-btn:hover {
  background: #f1f2f3;
}

.cc-info-country {
  margin-top: 16px;
  margin-left: auto;
  max-width: 63%;
}

.cc-footer-save {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.cc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  border: 1px dashed #c9cccf;
  border-radius: 10px;
  text-align: center;
  color: #6A7282;
  margin-bottom: 16px;
}

.cc-empty-state svg {
  opacity: 0.35;
  margin-bottom: 4px;
}

.cc-empty-state p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.cc-empty-state p:first-of-type {
  font-weight: 600;
  color: #202223;
}

.cc-country-select {
  width: 100%;
  height: 36px;
  padding: 0 50px 0 12px;
  border: 1px solid #c9cccf;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: #202223;
  background: #fff;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
}

.cc-country-select.is-open {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4 10l4-4 4 4' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
}

.cc-country-select:focus {
  box-shadow: inset 0 0 0 0.0625rem #1a1a1a,
              inset 0 0 0 1px rgba(26, 26, 26, 1);
  outline: 2px solid #005bd3;
  outline-offset: 0.1px;
}

.cc-country-url-input {
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #c9cccf;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: #202223;
  outline: none;
  background: #fff;
}

.cc-country-url-input:focus {
  box-shadow: inset 0 0 0 0.0625rem #1a1a1a, inset 0 0 0 1px rgba(26, 26, 26, 1);
  outline: 2px solid #005bd3;
  outline-offset: 0.1px;
}

.cc-btn-save:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .cc-global-grid,
  .cc-tag-grid,
  .cc-split-grid {
    grid-template-columns: 1fr;
  }

  .cc-behaviors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cc-info-country {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .cc-behaviors-grid {
    grid-template-columns: 1fr;
  }

  .cc-country-table-head,
  .cc-country-row {
    grid-template-columns: 1fr;
  }
}

.cc-ob-page {
  min-height: 50vh;
  background: #f6f6f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.cc-ob-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 40px 44px;
  width: 100%;
  max-width: 530px;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08), 0 1px 4px rgba(0,0,0,0.06);
}

.cc-ob-logo {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 18px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.cc-ob-header {
  margin-bottom: 32px;
  text-align: center;
}

.cc-ob-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.cc-ob-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

.cc-ob-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cc-ob-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cc-ob-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-ob-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
}

.cc-ob-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: #111827;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cc-ob-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cc-ob-input-readonly {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #f3f4f6;
}

.cc-ob-submit {
  margin-top: 4px;
  width: 100%;
  font-size: 15px;
  padding: 12px;
  letter-spacing: 0.01em;
}

.cc-ob-steps {
  margin-top: 28px;
  padding: 18px 20px;
  background: #f9fafb;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
}

.cc-ob-steps-title {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.cc-ob-steps-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-ob-steps-list li {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  padding-left: 4px;
}

.cc-ob-steps-list li strong {
  color: #111827;
}

.cc-ob-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 4px;
  border: 1px solid #fde68a;
}

.cc-ob-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 24px 0 16px;
}

.cc-ob-hint {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.6;
}

.cc-tag-route-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.cc-tag-route-card {
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  background: #fafafa;
  overflow: hidden;
}

.cc-tag-route-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f3f4f6;
  border-bottom: 1px solid #e1e3e5;
}

.cc-tag-route-drag {
  cursor: grab;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
  letter-spacing: -2px;
}

.cc-tag-route-drag:active {
  cursor: grabbing;
}

.cc-tag-route-label {
  font-size: 13px;
  font-weight: 600;
  color: #202223;
  flex: 1;
}

.cc-tag-route-match {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.cc-match-hint {
  font-size: 12px;
  color: #6d7175;
  margin-right: 4px;
  white-space: nowrap;
}

.cc-match-btn {
  all: unset;
  cursor: pointer;
  padding: 3px 10px;
  border: 1px solid #c9cccf;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #6a7282;
  background: #fff;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cc-match-btn.active {
  background: #e8450a;
  color: #fff;
  border-color: #e8450a;
}

.cc-match-btn:not(.active):hover {
  background: #f3f4f6;
}

.cc-tag-route-body {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cc-field-optional {
  font-weight: 400;
  color: #9ca3af;
  font-size: 12px;
}

@media (max-width: 768px) {
  .cc-tag-route-body {
    grid-template-columns: 1fr;
  }
}

.cc-btn-copy-shim {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #c9cccf;
  border-radius: 8px;
  background: #fff;
  color: #202223;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.cc-btn-copy-shim:hover {
  background: #f6f6f7;
  border-color: #8c9196;
}

.cc-btn-copy-shim:active {
  background: #f1f2f3;
}

.cc-tooltip-bubble.cc-tooltip-left {
  left: auto;
  right: 0;
  transform: none;
  white-space: normal;
  max-width: 240px;
  text-align: center;
}

.cc-tooltip-bubble.cc-tooltip-left::after {
  left: auto;
  right: 16px;
  transform: none;
}

.cc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.cc-modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.cc-modal-message {
  font-size: 14px;
  color: #303030;
  margin: 0 0 20px;
  line-height: 1.5;
}

.cc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cc-btn-secondary {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #DDDDDD;
  background: #fff;
  color: #303030;
  font-size: 13px;
  cursor: pointer;
}

.cc-btn-secondary:hover {
  background: #f6f6f7;
}

.cc-btn-danger {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: #d72c0d;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.cc-btn-danger:hover {
  background: #bc2200;
}

.cc-info-stack {
  flex-direction: column;
  gap: 10px;
}

.cc-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cc-info-row > svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
