@import url("/layout_obj_/assets/css/buttons.css");

.cc-widget {
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  color: #1a1a1a;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 12px;
  max-width: 680px;
  padding: 16px;
  width: 100%;
}

.cc-widget input,
.cc-widget button,
.cc-widget label,
.cc-widget select,
.cc-widget textarea {
  font-family: inherit;
}

.cc-widget-full {
  max-width: 680px;
}

.cc-brand {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  margin: 0 0 14px;
  padding: 0 0 10px;
}

.cc-brand img {
  display: block;
  height: auto;
  max-height: 34px;
  max-width: 100px;
  width: auto;
}

.cc-upgrade {
  display: inline-flex;
  margin-top: 10px;
  text-decoration: none;
}

.cc-limit-card {
  background: linear-gradient(135deg, #fff9df 0%, #fff 72%);
  border: 1px solid #f6c400;
  border-radius: 12px;
  padding: 18px;
}

.cc-limit-badge {
  color: #8a6300;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.cc-limit-card h3 {
  color: #0f172a;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.cc-limit-card p {
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.cc-limit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cc-limit-actions .ui-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  box-sizing: border-box;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
}

.cc-limit-actions .ui-button-primary {
  background: #f6c400;
  border-color: #f6c400;
  color: #111827;
}

.cc-limit-actions .ui-button-dark {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.cc-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}

.cc-row {
  display: flex;
  gap: 8px;
}

.cc-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

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

.cc-grid-3 {
  grid-template-columns: repeat(var(--cc-grid-columns, 3), minmax(0, 1fr));
}

.cc-field {
  color: #111;
  display: grid;
  font-size: 14px;
  font-weight: 500;
  gap: 6px;
}

.cc-field > span small {
  color: #777;
  font-size: 12px;
  font-weight: 400;
  margin-left: 6px;
  white-space: nowrap;
}

.cc-input {
  border: 1px solid #ccc;
  border-radius: 8px;
  flex: 1;
  box-sizing: border-box;
  font-size: 1.1rem;
  height: 46px;
  min-width: 0;
  padding: 0 14px;
  width: 100%;
}

.cc-input:focus {
  border-color: #ffd400;
  box-shadow: 0 0 10px rgba(255, 140, 0, .6);
  outline: 0;
}

.cc-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 0 16px;
}

.cc-check {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.cc-button {
  align-items: center;
  background: #f6c400;
  border: 1px solid #f6c400;
  border-radius: 8px;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-transform: uppercase;
}

.cc-button:disabled {
  cursor: wait;
  opacity: .7;
}

.cc-powered-row {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.cc-powered-by {
  align-items: center;
  color: #94a3b8;
  display: inline-flex;
  font-size: 10px;
  font-weight: 600;
  gap: 5px;
  white-space: nowrap;
}

.cc-powered-by img {
  display: block;
  height: auto;
  max-height: 20px;
  width: 82px;
}

.cc-button.is-loading {
  pointer-events: none;
}

.cc-button-spinner {
  animation: cc-button-spin .72s linear infinite;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-right-color: transparent;
  flex: 0 0 auto;
  height: 14px;
  width: 14px;
}

@keyframes cc-button-spin {
  to {
    transform: rotate(360deg);
  }
}

.cc-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cc-results-head {
  align-items: center;
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  margin: 2px 0 0;
}

.cc-result-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cc-result-grid > .cc-result:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.cc-result {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-sizing: border-box;
  cursor: pointer;
  height: 100%;
  padding: 12px;
  position: relative;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.cc-result:has(.cc-result-radio:checked) {
  background: #f0fdf4;
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .08);
}

.cc-result-radio {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.cc-result-radio-mark {
  background: #fff;
  border: 1.5px solid #94a3b8;
  border-radius: 50%;
  box-sizing: border-box;
  flex: 0 0 15px;
  height: 15px;
  position: relative;
  width: 15px;
}

.cc-result-radio:checked + .cc-result-main .cc-result-radio-mark {
  border-color: #2563eb;
}

.cc-result-radio:checked + .cc-result-main .cc-result-radio-mark::after {
  background: #2563eb;
  border-radius: 50%;
  content: "";
  inset: 3px;
  position: absolute;
}

.cc-result-radio:focus-visible + .cc-result-main .cc-result-radio-mark {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

.cc-result-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 24px;
  row-gap: 7px;
}

.cc-service-logo-wrap {
  align-items: center;
  display: inline-flex;
  flex: 0 0 56px;
  justify-content: center;
}

.cc-service-logo {
  display: block;
  max-height: 22px;
  max-width: 58px;
  object-fit: contain;
}

.cc-service-name {
  color: #111;
  font-size: 1.1em;
  font-weight: 700;
  white-space: nowrap;
}

.cc-service-name--jadlog-suffix {
  align-items: center;
  color: #64748b;
  display: inline-flex;
  font-size: .82em;
  height: 22px;
  letter-spacing: .01em;
  line-height: 1;
  margin-left: -8px;
}

.cc-hidden {
  display: none !important;
}

.cc-addresses {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.cc-address {
  background: #f7f7f7;
  border-radius: 7px;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  padding: 12px;
}

.cc-address strong {
  display: block;
  font-size: 14px;
  margin: 0 0 4px;
}

.cc-shipment-summary {
  background: #f7f7f7;
  border-radius: 7px;
  display: grid;
  font-size: 13px;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 10px;
  padding: 7px 10px;
}

.cc-price {
  color: #111;
  font-size: 1.1em;
  font-weight: 700;
  white-space: nowrap;
}

.cc-service-badge {
  background: #f1f5f9;
  border-radius: 999px;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
  padding: 4px 8px;
  white-space: nowrap;
}

.cc-service-badge-discount {
  background: #ecfdf5;
  color: #047857;
}

.cc-deadline {
  color: #555;
  font-size: 1.1em;
  white-space: nowrap;
}

.cc-meta,
.cc-error {
  color: #475569;
  font-size: 13px;
  margin-top: 4px;
}

.cc-error {
  background: #fde8e8;
  border: 1px solid #f8b4b4;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, .08);
  color: #111827;
  line-height: 1.4;
  padding: 12px 14px;
}

.cc-dropoff {
  border: 1px solid #9cc6ff;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  margin-top: 10px;
  overflow: hidden;
}

.cc-dropoff-head {
  align-items: center;
  background: #f3f8ff;
  border-bottom: 1px solid #d5e7ff;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 11px;
}

.cc-dropoff-head::-webkit-details-marker,
.cc-dropoff-head::marker {
  display: none;
  content: "";
}

.cc-dropoff-head > span:first-child {
  align-items: center;
  display: flex;
  gap: 12px;
}

.cc-dropoff-toggle {
  color: #1458e8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.cc-dropoff-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 10px 12px;
}

.cc-dropoff-card {
  border: 1px solid #d5e7ff;
  border-radius: 7px;
  color: #0f172a;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 10px;
  padding: 12px;
  position: relative;
}

.cc-dropoff-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  margin: 0 74px 5px 0;
}

.cc-dropoff-card .cc-meta {
  color: #475569;
  font-size: 12px;
  margin: 0 0 6px;
}

.cc-dropoff-card + .cc-dropoff-card {
  border-top: 1px solid #d5e7ff;
}

.cc-dropoff-distance {
  background: #eef6ff;
  border: 1px solid #c5dcff;
  border-radius: 999px;
  color: #334155;
  font-size: 12px;
  padding: 4px 10px;
  position: absolute;
  right: 12px;
  top: 10px;
}

.cc-map-link {
  color: #1458e8;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .cc-grid-2,
  .cc-grid-3,
  .cc-addresses,
  .cc-result-grid,
  .cc-shipment-summary {
    grid-template-columns: 1fr;
  }

  .cc-row {
    flex-direction: column;
  }

  .cc-powered-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
