.tfc-gc-widget {
  --tfc-gc-accent: #2b5993;
  --tfc-gc-text: #171717;
  color: var(--tfc-gc-text);
  font-family: inherit;
  max-width: none;
  width: 100%;
}

.tfc-gc-widget *,
.tfc-gc-widget *::before,
.tfc-gc-widget *::after {
  box-sizing: border-box;
}

.tfc-gc-widget__form,
.tfc-gc-widget__amount-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
}

.tfc-gc-widget__heading {
  display: block;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 14px;
  padding: 0;
}

.tfc-gc-widget__amounts {
  display: grid;
  gap: 2.15%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.tfc-gc-widget__amount {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid var(--tfc-gc-accent);
  border-radius: 10px;
  color: var(--tfc-gc-text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 24px;
  font-weight: 600;
  justify-content: center;
  height: 47px;
  min-height: 47px;
  padding: 6px 12px;
  transition: background-color .2s, border-color .2s, color .2s;
}

.tfc-gc-widget__amount:hover:not(.is-selected):not([aria-pressed="true"]) {
  background: color-mix(in srgb, var(--tfc-gc-accent) 7%, #fff);
}

.tfc-gc-widget__amount.is-selected,
.tfc-gc-widget__amount[aria-pressed="true"] {
  background: var(--tfc-gc-accent);
  color: #fff;
}

.tfc-gc-widget__amount.is-selected:hover,
.tfc-gc-widget__amount[aria-pressed="true"]:hover {
  background: color-mix(in srgb, var(--tfc-gc-accent) 90%, #000);
}

.tfc-gc-widget__amount:focus-visible,
.tfc-gc-widget button:focus-visible,
.tfc-gc-widget input:focus-visible,
.tfc-gc-widget textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tfc-gc-accent) 28%, transparent);
  outline-offset: 2px;
}

.tfc-gc-widget__fields {
  display: grid;
  gap: 2.15%;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
}

.tfc-gc-widget__field {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 400;
  gap: 8px;
}

.tfc-gc-widget .tfc-gc-widget__field input,
.tfc-gc-widget .tfc-gc-widget__message textarea {
  background: #fff;
  border: 1px solid #828282;
  border-radius: 10px;
  color: var(--tfc-gc-text);
  font: inherit;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

.tfc-gc-widget__field input {
  height: 47px;
}

.tfc-gc-widget__field input:focus,
.tfc-gc-widget__message textarea:focus {
  border-color: var(--tfc-gc-accent);
  box-shadow: 0 0 0 1px var(--tfc-gc-accent);
}

.tfc-gc-widget__message {
  margin-bottom: 22px;
}

.tfc-gc-widget__message-toggle {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  gap: 8px;
  margin-bottom: 6px;
}

.tfc-gc-widget__message-toggle input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.tfc-gc-widget__message-toggle span {
  align-items: center;
  border: 1px solid var(--tfc-gc-accent);
  border-radius: 50%;
  display: inline-flex;
  height: 15px;
  justify-content: center;
  width: 15px;
}

.tfc-gc-widget__message-toggle input:checked + span::after {
  background: var(--tfc-gc-accent);
  border-radius: 50%;
  content: "";
  height: 9px;
  width: 9px;
}

.tfc-gc-widget__message-toggle input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--tfc-gc-accent) 28%, transparent);
  outline-offset: 2px;
}

.tfc-gc-widget .tfc-gc-widget__message textarea {
  display: block;
  font-size: 14px;
  height: 79px;
  min-height: 79px;
  resize: vertical;
  width: 48.925%;
}

.tfc-gc-widget__message.is-collapsed textarea {
  display: none;
}

.tfc-gc-widget__actions {
  align-items: end;
  display: grid;
  gap: 2.15%;
  grid-template-columns: minmax(180px, 29.7%) 1fr;
}

.tfc-gc-widget__quantity > label {
  display: block;
  font-size: 16px;
  margin-bottom: 9px;
}

.tfc-gc-widget__quantity-control {
  align-items: center;
  border: 1px solid var(--tfc-gc-accent);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 47px;
  overflow: hidden;
}

.tfc-gc-widget__quantity-control button,
.tfc-gc-widget__quantity-control input {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--tfc-gc-accent);
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  height: 100%;
  margin: 0;
  min-width: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.tfc-gc-widget__quantity-control input {
  color: var(--tfc-gc-text);
  font-size: 24px;
  -moz-appearance: textfield;
}

.tfc-gc-widget__quantity-control input::-webkit-inner-spin-button,
.tfc-gc-widget__quantity-control input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.tfc-gc-widget__quantity-control button {
  cursor: pointer;
}

.tfc-gc-widget__quantity-control button:disabled {
  cursor: default;
  opacity: .35;
}

.tfc-gc-widget__submit {
  background: var(--tfc-gc-accent);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  height: 47px;
  margin: 0;
  padding: 6px 16px;
  transition: all .2s;
  white-space: nowrap;
  width: 100%;
}

.tfc-gc-widget__submit:hover {
  background: #25548c !important;
  color: white !important;
}

.tfc-gc-widget__submit.is-loading {
  cursor: wait;
  opacity: .72;
}

.tfc-gc-widget__status {
  font-size: 14px;
  margin-top: 10px;
  min-height: 20px;
}

.tfc-gc-widget__status.is-error {
  color: #b42318;
}

.tfc-gc-widget__status.is-success {
  color: #177245;
}

.tfc-gc-widget-notice {
  background: #fff7d6;
  border-left: 4px solid #d3a600;
  padding: 12px 14px;
}

@media (max-width: 767px) {
  .tfc-gc-widget__amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tfc-gc-widget__fields,
  .tfc-gc-widget__actions {
    grid-template-columns: 1fr;
  }

  .tfc-gc-widget__fields {
    gap: 18px;
  }

  .tfc-gc-widget .tfc-gc-widget__message textarea {
    width: 100%;
  }
}
.tfc-gc-cart-credit {
  margin-bottom: 9px;
}
