body, button, input, select, textarea {
  font-family: 'Montserrat', sans-serif;
}

body {
  background: #f6f6f7;
}

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

.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-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-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 {
  display: inline-flex;
  padding: 8px 24px;
  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-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-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: 12px;
}

.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 {
  border-color: #458fff;
  box-shadow: 0 0 0 2px rgba(69, 143, 255, 0.2);
}

.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: 14px;
  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-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: #6A7282;
}

.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: 56%;
}

.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 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;
}

.cc-country-select:focus {
  border-color: #458fff;
  box-shadow: 0 0 0 2px rgba(69, 143, 255, 0.2);
}

.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 {
  border-color: #458fff;
  box-shadow: 0 0 0 2px rgba(69, 143, 255, 0.2);
}

.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;
  }
}
