/* ==============================================
   GlobalPost International Calculator — calc.css
   Full rewrite: form styles + hybrid V2+V3 tariffs
   ============================================== */

/* ---------- RESET NUMBER INPUTS ---------- */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ---------- WRAPPER ---------- */
.wrapper_calc {
  margin: 40px 0 60px;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variant-numeric: lining-nums proportional-nums;
}

/* ---------- TYPE SWITCHER ---------- */
.switcher-type-shipment {
  display: flex;
  background: #fff;
  backdrop-filter: blur(5px);
  border: 1px solid #F0F0F0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  margin-bottom: 7px;
}
.switcher-type-shipment button {
  flex: 1;
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.3s;
  color: #757575;
  font-weight: 700;
  line-height: normal;
}
.switcher-type-shipment button small {
  font-family: "Exo 2", sans-serif;
  font-size: 12px;
  font-weight: 400;
}
.switcher-type-shipment button.active {
  color: #000;
}
.switcher-type-shipment button:hover {
  color: #000;
}
.switcher-type-shipment .highlight {
  position: absolute;
  top: 5px;
  left: 0;
  width: 50%;
  height: calc(100% - 10px);
  background: #FFD749;
  border-radius: 16px;
  transition: transform 0.3s;
  opacity: 0.9;
  z-index: 1;
}
.switcher-type-shipment .highlight.invalid {
  background: #f47171;
}

/* ---------- PARAMETERS BLOCK ---------- */
.common-block-parameters {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 40px 40px 30px;
  border-radius: 30px;
  border: 1px solid #F0F0F0;
  background: #FFFFFF;
  backdrop-filter: blur(5px);
}
.common-block-parameters div.calc-h3-title {
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 20px;
}
.common-block-parameters .parameters-shipment div.calc-h3-title {
  text-align: center;
}
.common-block-parameters .parameters-shipment .block_presets div.calc-h3-title {
  font-weight: 400;
}
.common-block-parameters .countries-selectors {
  width: calc(33.33% - 24px);
}
.common-block-parameters .parameters-shipment {
  width: calc(66.66% - 24px);
  overflow-x: hidden;
}
.parameters-shipment .content-wrapper-shipment-type {
  position: relative;
  width: 100%;
  overflow: hidden;
  transition: height 0.3s ease-out;
}

/* ---------- SELECT & INPUT ---------- */
.common-block-parameters .calc-select-wrap {
  width: 100%;
  margin-bottom: 20px;
}
.common-block-parameters .i_calc__select_label {
  color: #757575;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 4px;
  padding: 0 10px;
}
.common-block-parameters .i_calc__select_label.duty-free-wrap {
  padding: 10px;
  margin-bottom: 0;
  margin-top: 10px;
  border: 1px solid #b99413;
  border-radius: 8px;
  background-color: #fff5d1;
  color: #000000;
}
.common-block-parameters .i_calc__select_label.inline-image {
  display: none;
  align-items: center;
  gap: 6px;
}
.wrapper_items_parameters .wrapper_parameters_parcel:nth-child(-n+2) .i_calc__select_label.inline-image {
  display: flex;
}
.common-block-parameters .calc-input-wrap.inline-switcher .i_calc__select_label {
  margin-bottom: 0;
}
.calc-select, .calc-input {
  position: relative;
  width: 100%;
  background: #FFFFFF;
}
.calc-select::after {
  z-index: 2;
  pointer-events: none;
  position: absolute;
  display: block;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  content: "";
  width: 12px;
  height: 7px;
  background: url('/wp-content/themes/global_post/calcs_new/img/arrow-selector.svg') no-repeat;
  transition: transform 0.3s ease;
}
.calc-select .select_manual {
  position: relative;
}
.calc-select input,
.calc-input input {
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  line-height: normal !important;
  font-weight: 500 !important;
  color: #000000 !important;
  font-variant-numeric: lining-nums proportional-nums !important;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  border-radius: 8px;
  padding: 16.5px 24px 16.5px 20px;
  border: 1px solid #757575;
  background: none;
  cursor: pointer;
  transition: .3s ease-out;
}
.calc-input input {
  font-family: "Raleway", sans-serif !important;
  font-size: 16px !important;
}
.calc-select input:focus {
  border-radius: 8px 8px 0 0;
  border-width: 2px 2px 0 2px;
  border-style: solid;
  border-color: #D9D9D9;
}
.calc-input input:focus {
  border: 1px solid #FFD749;
}
.calc-select:has(input:focus)::after {
  transform: translateY(-50%) rotate(180deg);
}
.calc-select input.invalid,
.calc-input input.invalid {
  border: 1px solid #da1414;
}

/* ---------- DROPDOWN ---------- */
.select_manual ul, .dropdown-places {
  z-index: 4;
  display: none;
  line-height: normal;
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%;
  background: #FFFFFF;
  max-height: 220px;
  overflow-y: auto;
  border-width: 0 2px 2px 2px;
  border-style: solid;
  border-color: #D9D9D9;
  box-shadow: 0 0 5px rgb(0 0 0 / 10%);
  scrollbar-width: thin;
  scrollbar-color: #FFD749 #FFFFFF;
  border-radius: 0 0 8px 8px;
}
.select_manual ul::-webkit-scrollbar,
.dropdown-places::-webkit-scrollbar {
  width: 8px;
}
.select_manual ul::-webkit-scrollbar-track,
.dropdown-places::-webkit-scrollbar-track {
  background-color: #FFFFFF;
  border-radius: 0 0 8px 0;
}
.select_manual ul::-webkit-scrollbar-thumb,
.dropdown-places::-webkit-scrollbar-thumb {
  background-color: #FFBE2E;
  border-radius: 2px;
}
.select_manual ul::-webkit-scrollbar-thumb:hover,
.dropdown-places::-webkit-scrollbar-thumb:hover {
  background-color: rgb(165, 107, 0);
}
.select_manual ul li, .dropdown-places li {
  line-height: normal;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s ease-out;
  font-family: "Raleway", sans-serif;
  font-style: normal;
  font-variant-numeric: lining-nums;
  color: #000000;
}
.select_manual.active ul {
  display: block;
}
.select_manual ul li.hidden {
  display: none;
}
.select_manual ul li:hover, .dropdown-places li:hover {
  background: #ffe2a2;
}

/* ---------- PARCEL / DOCS BLOCKS ---------- */
.block-with-parcel,
.block-with-docs {
  position: absolute;
  width: 100%;
  box-sizing: border-box;
  height: auto;
}
.block-with-parcel {
  height: 250px;
}

/* ---------- PARAMETERS GRID ---------- */
.wrapper_parameters_parcel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  gap: 20px;
  justify-content: space-between;
}
.wrapper_parameters_parcel:first-child {
  margin-bottom: 40px;
}
.common-block-parameters .calc-input-wrap {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
}
.common-block-parameters .calc-input-wrap.inline-switcher {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
}

/* ---------- TOGGLE SWITCH ---------- */
.common-block-parameters .calc-input-wrap .toggle-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}
.common-block-parameters .calc-input-wrap .toggle-switch input[type="checkbox"] {
  display: none;
}
.common-block-parameters .calc-input-wrap .toggle-switch label {
  display: inline-block;
  width: 64px;
  height: 32px;
  background-color: #F0F0F0;
  border: 1px solid #D9D9D9;
  border-radius: 18px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s;
}
.common-block-parameters .calc-input-wrap .toggle-switch label::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5px;
  width: 22px;
  height: 22px;
  background-color: #757575;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease-out, background-color 0.3s ease-out;
}
.common-block-parameters .calc-input-wrap .toggle-switch input:checked + label {
  background-color: #FFD749;
}
.common-block-parameters .calc-input-wrap .toggle-switch input:checked + label::before {
  transform: translate(32px, -50%);
  background-color: #ffffff;
}

/* ---------- NUMBER BUTTONS ---------- */
.calc-input .buttons-block {
  position: absolute;
  top: 0;
  right: 10px;
  height: 100%;
  width: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.calc-input .buttons-block .btn-number {
  width: 15px;
  height: 15px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calc-input .buttons-block .btn-number:hover {
  transform: scale(1.2);
}
.calc-input .buttons-block .btn-number:active {
  transform: scale(0.9);
}
.calc-input .buttons-block .btn-number img {
  width: 12px;
  height: 7px;
  pointer-events: none;
}

/* ---------- PRESETS ---------- */
.block_presets {
  margin-bottom: 40px;
  transition: max-height 0.3s ease-out, margin-bottom 0.3s ease-out;
  overflow-y: hidden;
}
.block_presets.hide {
  margin-bottom: 0px;
}
.wrap_presets {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
}
.wrap_presets .button_preset {
  flex: 1 1 calc(16.666% - 10px);
  max-width: calc(16.666% - 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 5px 15px;
  border: 1px solid #D9D9D9;
  background: #FFFFFF;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  line-height: normal;
  font-weight: 400;
  transition: background 0.3s ease-out, border 0.3s ease-out;
}
.wrap_presets .button_preset:hover,
.wrap_presets .button_preset.active {
  border: 1px solid #FFA51D;
  background: #FFF1AA;
}
.wrap_presets .button_preset p {
  font-size: 12px;
  color: #000000;
}
.wrap_presets .button_preset small {
  font-size: 12px;
  color: #757575;
}

/* ---------- SUBMIT BUTTON ---------- */
.btn-submit-tariffs {
  display: block;
  width: 284px;
  margin: 0 auto 20px;
  font-size: 16px;
  cursor: pointer;
  color: #FFFFFF;
  font-weight: 600;
  line-height: normal;
  padding: 16px 0;
  border-radius: 40px;
  border: none;
  text-align: center;
  background: #DA2C38;
  box-shadow: 0px 86px 24px 0px rgba(133, 71, 0, 0.00), 0px 55px 22px 0px rgba(133, 71, 0, 0.01), 0px 31px 18px 0px rgba(133, 71, 0, 0.05), 0px 14px 14px 0px rgba(133, 71, 0, 0.09), 0px 3px 8px 0px rgba(133, 71, 0, 0.10);
  transition: transform 0.2s ease-out, background 0.2s ease-out;
}
.btn-submit-tariffs:hover {
  transform: scale(1.05);
  background: #ae141e;
}
.btn-submit-tariffs:active {
  transform: scale(0.95);
  background: #ae141e;
}

/* ---------- LINK ---------- */
.link-custom-red {
  color: #DA2C38;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  display: block;
  margin: 0 auto;
  width: fit-content;
  cursor: pointer;
  transition: all 0.3s ease-out;
}
.link-custom-red:hover,
.link-custom-red:active,
.link-custom-red:focus {
  transform: scale(1.03);
  color: #ae141e;
}

/* ---------- MULTIPLE PLACES ---------- */
.wrapper_parameters_parcel:not(:first-child) {
  gap: 10px;
  margin-bottom: 10px;
}
.wrapper_parameters_parcel:last-child {
  margin-bottom: 40px;
}
.wrapper_parameters_parcel:not(:first-child) .calc-input-wrap {
  flex: 1 1 calc(25% - 10px);
  max-width: calc(25% - 10px);
}

/* ---------- DOCS WEIGHT RADIO ---------- */
.block-with-docs .wrapper_items_docs {
  margin: 25px 0 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.block-with-docs .wrapper_items_docs .weight-option {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px;
  border-radius: 7px;
  cursor: pointer;
  background-color: #FFFFFF;
  transition: background-color 0.3s ease-out;
}
.block-with-docs .wrapper_items_docs .weight-option.invalid {
  border: 1px solid #da1414;
}
.block-with-docs .wrapper_items_docs .weight-option input {
  display: none;
}
.block-with-docs .wrapper_items_docs .weight-option .radio-dot {
  width: 14px;
  height: 14px;
  border: 1px solid #D9D9D9;
  border-radius: 50%;
  background: #F0F0F0;
  position: relative;
  transition: border-color 0.3s ease;
}
.block-with-docs .wrapper_items_docs .weight-option .radio-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #FFD749;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
}
.block-with-docs .wrapper_items_docs .weight-option input:checked + .radio-dot {
  border-color: #757575;
  background: #FFFFFF;
}
.block-with-docs .wrapper_items_docs .weight-option input:checked + .radio-dot::after {
  transform: translate(-50%, -50%) scale(1);
}
.block-with-docs .wrapper_items_docs .weight-option .weight-label {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #757575;
  font-weight: 400;
  line-height: normal;
  transition: color 0.3s;
  padding: 0 10px;
}
.block-with-docs .wrapper_items_docs .weight-option input:checked ~ .weight-label {
  color: #000000;
}
.block-with-docs .wrapper_items_docs .weight-option:has(input:checked) {
  background-color: #FFF1AA;
}

/* ---------- FANCYBOX MODAL ---------- */
.fancybox-slide.custom-padding {
  padding: 140px 70px;
}

/* ---------- RESULT WRAPPER ---------- */
.calc_result_wrapper {
  width: 100%;
  padding: 60px 20px !important;
  border-radius: 20px;
  border: 1px solid #F0F0F0;
  background-color: #FFFFFF;
  backdrop-filter: blur(5px);
  position: relative;
  max-width: 1000px;
}

/* ==============================================
   CTA BANNERS — State A / B / C
   ============================================== */

/* --- A: Volume / Regular shipper (blue outlined) --- */
.cta-vol {
  margin: 16px 0 12px;
  padding: 18px 16px;
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
}
.cta-vol__title {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 4px;
}
.cta-vol__text {
  font-size: 12px;
  color: #3b82f6;
  line-height: 1.5;
  margin-bottom: 14px;
}
.cta-vol__btn {
  display: block;
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid #93c5fd;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  font-family: "Raleway", sans-serif;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.cta-vol__btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

/* --- B: Big cargo / Pallet soft (amber) --- */
.cta-pallet-s {
  margin: 16px 0 12px;
  padding: 18px 16px;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
}
.cta-pallet-s__title {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 4px;
}
.cta-pallet-s__text {
  font-size: 12px;
  color: #b45309;
  line-height: 1.5;
  margin-bottom: 14px;
}
.cta-pallet-s__btn {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  background: #0c1220;
  color: #fef3c7;
  border: none;
  font-size: 14px;
  font-weight: 700;
  font-family: "Raleway", sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}
.cta-pallet-s__btn:hover {
  background: #1a2436;
}

/* --- C: Better price / Pallet accent (amber gradient) --- */
.cta-pallet-a {
  margin: 16px 0 12px;
  padding: 22px 18px;
  background: linear-gradient(140deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  font-family: "Inter", sans-serif;
}
.cta-pallet-a::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 50%;
}
.cta-pallet-a__title {
  font-family: "Raleway", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
  position: relative;
}
.cta-pallet-a__text {
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
  margin-bottom: 16px;
  position: relative;
}
.cta-pallet-a__btn {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: #78350f;
  color: #fef3c7;
  border: none;
  font-size: 15px;
  font-weight: 700;
  font-family: "Raleway", sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.cta-pallet-a__btn:hover {
  background: #451a03;
}
.cta-pallet-a__hint {
  text-align: center;
  font-size: 11px;
  color: #b45309;
  margin-top: 10px;
  font-weight: 500;
  position: relative;
}

/* ==============================================
   STATE D — Empty / No Tariffs
   ============================================== */
.block_no_tariffs {
  text-align: center;
  padding: 10px 28px 28px;
}
.block_no_tariffs__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: #f4f6f9;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.block_no_tariffs__title {
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0c1220;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.block_no_tariffs__text {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #6b7a8d;
  line-height: 1.6;
  margin-bottom: 24px;
}
.block_no_tariffs__btn {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 12px;
  padding: 15px;
  border-radius: 12px;
  background: #0c1220;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  font-family: "Raleway", sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}
.block_no_tariffs__btn:hover {
  background: #1a2436;
}
.block_no_tariffs__hint {
  text-align: center;
  font-size: 12px;
  color: #9ca8b7;
  margin-bottom: 8px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
}
.block_no_tariffs__tel {
  text-align: center;
  font-size: 13px;
  color: #6b7a8d;
  font-family: "Inter", sans-serif;
}
.block_no_tariffs__tel a {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
}
.block_no_tariffs__tel a:hover {
  text-decoration: underline;
}

/* ---------- ADDITIONAL INFO ---------- */
.wrapper_additional_info {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 20px;
  flex-direction: column-reverse;
}
.wrapper_additional_info .item_additional_info {
  flex: 1 1 0;
  min-width: 0;
}

/* -- Actual price disclaimer -- */
.wrapper_actual_price {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
}
.wrapper_actual_price p {
  color: #475569;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}
.wrapper_actual_price p span {
  font-weight: 700;
  color: #1e293b;
}
.wrapper_actual_price p #span-attention-carriers {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
}

/* -- Customs limits block -- */
#block-for-customs-limits {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 16px 18px;
}
#block-for-customs-limits .title_info_limits {
  color: #0369a1;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  margin-top: 0;
}
#block-for-customs-limits .result_limits {
  color: #1e293b;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

/* ---------- FANCYBOX CLOSE ---------- */
.calc_result_wrapper .fancybox-button[title="Close"] {
  padding: 12px;
  right: 10px;
  top: 10px;
  border-radius: 50%;
  border: 1px solid #FFFFFF;
  background: #FFD749;
  color: #000000;
}

/* ---------- DUTY INPUT GROUP ---------- */
.flex-input-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.select-currency-duty {
  max-width: 95px;
}


/* ==============================================
   TARIFF CARDS — Card-based design (v4)
   ============================================== */

/* ---------- CARD BASE ---------- */
.tc {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tc--var:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}
.tc--best {
  border-color: #22c55e;
  background: linear-gradient(to bottom, #f0fdf4, #ffffff);
}

/* ---------- TOP TAG (hero only) ---------- */
.tc__top {
  background: #f0fdf4;
  padding: 10px 20px 0;
}
.tc__tag {
  font-family: "Raleway", sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #16a34a;
}

/* ---------- BODY (grid: logo | info | price) ---------- */
.tc__body {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 20px;
}
.tc__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc__logo-img {
  width: 72px;
  display: block;
}

/* ---------- INFO ---------- */
.tc__info {
  min-width: 0;
}
.tc__carrier {
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}
.tc__badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.tc__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
}
.tc__badge--cheap {
  background: #dcfce7;
  color: #15803d;
}
.tc__badge--fast {
  background: #dbeafe;
  color: #1d4ed8;
}
.tc__badge--b2b {
  background: #f3e8ff;
  color: #7c3aed;
}
.tc__meta {
  font-size: 12px;
  line-height: 1.5;
  color: #6b7a8d;
  font-family: "Inter", sans-serif;
  margin-bottom: 4px;
}
.tc__dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9ca8b7;
  vertical-align: middle;
  margin: 0 6px;
}
.tc__date {
  font-size: 12px;
  line-height: 1.5;
  color: #6b7a8d;
  font-family: "Inter", sans-serif;
}
.tc__date b {
  color: #0f172a;
  font-weight: 700;
}

/* ---------- PRICE BLOCK ---------- */
.tc__price-block {
  text-align: right;
  flex-shrink: 0;
  padding-left: 14px;
}
.tc__price {
  font-family: "Raleway", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-variant-numeric: lining-nums proportional-nums;
  letter-spacing: -0.3px;
}
.tc__price-eur {
  font-size: 11px;
  color: #6b7a8d;
  margin-top: 2px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}
.tc__duty {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.4;
}

/* ---------- FOOTER (CTA button) ---------- */
.tc__footer {
  padding: 0 20px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.tc__btn {
  display: block;
  width: 200px;
  padding: 13px;
  border-radius: 8px;
  border: none;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  letter-spacing: 0.2px;
}
.tc__btn--green {
  background: #22c55e;
  color: #ffffff;
}
.tc__btn--green:hover {
  background: #16a34a;
}
.tc__btn--secondary {
  background: #ffbe2e;
  color: #0f172a;
  border: 1.5px solid #cf9005;
}
.tc__btn--secondary:hover {
  background: #cf9005;
}

/* ---------- "OTHER OPTIONS" LABEL ---------- */
.tc-others-label {
  font-family: "Raleway", sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #9ca8b7;
  padding: 18px 0 8px;
}

/* ---------- CALCULATED WEIGHT (before tariffs, full width) ---------- */
.calculated-weight {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 18px;
  margin: 0 0 14px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
}
.calculated-weight p {
  width: auto;
  margin: 0;
  color: #1e3a8a;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
  font-variant-numeric: lining-nums;
}
/* Warning variant: when volumetric weight > actual */
.calculated-weight--warning {
  background: #fef3c7;
  border-color: #fcd34d;
  border-left-color: #f59e0b;
}
.calculated-weight--warning p {
  color: #78350f;
}


/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 1300px) {
  .fancybox-slide.custom-padding {
    padding: 140px 20px;
  }
}

@media (max-width: 1130px) {
  .common-block-parameters {
    padding: 24px 15px 45px;
  }
  .block-with-docs .wrapper_items_docs {
    justify-content: flex-start;
  }
}

@media (max-width: 950px) {
  .common-block-parameters {
    flex-wrap: wrap;
  }
  .common-block-parameters .countries-selectors,
  .common-block-parameters .parameters-shipment {
    width: 100%;
  }
  .common-block-parameters div.calc-h3-title {
    text-align: center;
    margin-bottom: 10px;
  }
  .common-block-parameters .calc-select-wrap:first-child {
    margin-bottom: 10px;
  }
  .block-with-docs .wrapper_items_docs {
    justify-content: center;
    margin: 20px 0;
  }
  .countries-selectors div.calc-h3-title {
    display: none;
  }
  .common-block-parameters .i_calc__select_label {
    font-weight: 700;
    color: #000000;
  }
  .common-block-parameters .i_calc__select_label.duty-free-wrap {
    font-weight: 500;
  }
  .common-block-parameters .calc-input-wrap.inline-switcher .i_calc__select_label {
    font-weight: 400;
    color: #757575;
  }
}

/* Cards: stack body grid on narrow screens + logo → top-right corner */
@media (max-width: 768px) {
  .tc {
    position: relative;
  }
  .tc__logo {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 56px;
    height: auto;
    margin: 0;
    padding: 0;
    z-index: 2;
    pointer-events: none;
  }
  .tc__logo-img {
    width: 56px;
    max-width: 100%;
  }
  /* Hero: tc__top holds the "Рекомендуємо" tag — make room for logo on the right */
  .tc--best .tc__top {
    padding-right: 80px;
  }
  .tc__body {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-right: 80px; /* keep content from running under the absolute logo */
  }
  .tc__carrier {
    font-size: 15px;
  }
  .tc__price-block {
    grid-column: 1 / -1;
    text-align: left;
    padding: 2px 0 0;
    display: block;
  }
  .tc__price {
    display: inline-block;
    font-size: 20px;
    margin-right: 8px;
    vertical-align: baseline;
  }
  .tc__price-eur {
    display: inline-block;
    margin-top: 0;
    vertical-align: baseline;
  }
  .tc__duty {
    display: block;
    margin-top: 4px;
  }
  .tc__btn {
    width: 100%;
  }
}


@media (max-width: 660px) {
  .tc__body {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
    padding-right: 70px;
  }
  .tc__logo,
  .tc__logo-img {
    width: 48px;
  }
  .tc__logo {
    top: 12px;
    right: 12px;
  }
  .tc--best .tc__top {
    padding-right: 70px;
  }
  .tc__carrier {
    font-size: 15px;
  }
  .tc__price {
    font-size: 18px;
  }
  .tc__footer {
    padding: 0 14px 14px;
  }
  .tc__btn {
    padding: 12px;
    font-size: 13px;
  }
  .tc__top {
    padding: 8px 14px 0;
  }

  .block-with-docs .wrapper_items_docs {
    justify-content: flex-start;
    gap: 20px;
  }

  .wrapper_additional_info {
    gap: 20px;
  }
  .wrapper_additional_info .item_additional_info {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .block_presets {
    margin-bottom: 20px;
  }
  .wrap_presets {
    flex-wrap: wrap;
  }
  .wrap_presets .button_preset {
    flex: 1 1 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
    flex-direction: row;
    justify-content: flex-start;
    padding: 20px 5px 20px 10px;
    gap: 4px;
  }
  .wrap_presets .button_preset p,
  .wrap_presets .button_preset small {
    text-align: left;
  }
  .wrap_presets .button_preset img {
    width: 36px;
  }
  .description-preset {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .wrapper_parameters_parcel {
    gap: 10px;
  }
  .common-block-parameters .calc-input-wrap,
  .wrapper_parameters_parcel:not(:first-child) .calc-input-wrap {
    flex: 1 1 calc(50% - 5px);
    max-width: calc(50% - 5px);
  }
  .common-block-parameters .calc-input-wrap:nth-child(5),
  .common-block-parameters .calc-input-wrap:nth-child(6) {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .common-block-parameters .i_calc__select_label.inline-image {
    display: flex !important;
  }
  .wrapper_parameters_parcel:first-child {
    margin-bottom: 30px;
  }
  .wrapper_parameters_parcel:not(:first-child) {
    margin-bottom: 0;
    padding: 10px 0;
    border-bottom: 1px dashed #D9D9D9;
  }
  .wrapper_parameters_parcel:last-child {
    margin-bottom: 40px;
  }
  .block-with-parcel {
    height: 370px;
  }
}

@media (max-width: 550px) {
  .switcher-type-shipment {
    border-radius: 10px;
    margin-bottom: 10px;
  }
  .switcher-type-shipment button {
    font-size: 12px;
    padding: 10px;
  }
  .switcher-type-shipment button small {
    font-size: 10px;
  }
  .switcher-type-shipment .highlight {
    border-radius: 8px;
  }
  .common-block-parameters {
    border-radius: 10px;
  }
  .common-block-parameters div.calc-h3-title {
    font-size: 14px;
  }
  .calc-select input, .calc-input input {
    font-size: 16px !important;
    padding: 16px 10px;
  }
}

@media (max-width: 450px) {
  .wrap_presets .button_preset {
    flex: 1 1 calc(50% - 5px);
    max-width: calc(50% - 5px);
    border-radius: 4px;
  }

  .tc__body {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 12px;
    padding-right: 60px;
  }
  .tc__logo,
  .tc__logo-img {
    width: 42px;
  }
  .tc__logo {
    top: 10px;
    right: 10px;
  }
  .tc--best .tc__top {
    padding-right: 60px;
  }
  .tc__carrier {
    font-size: 14px;
  }
  .tc__price {
    font-size: 17px;
  }
  .tc__btn {
    padding: 11px;
    font-size: 12px;
  }
  .tc__footer {
    padding: 0 12px 12px;
  }

  .cta-vol__title,
  .cta-pallet-s__title {
    font-size: 14px;
  }
  .cta-pallet-a__title {
    font-size: 15px;
  }
  .cta-pallet-a__btn {
    font-size: 14px;
    padding: 13px;
  }

  .block_no_tariffs {
    padding: 10px 16px 24px;
  }
  .block_no_tariffs__title {
    font-size: 18px;
  }
  .block_no_tariffs__text {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .block-with-docs .wrapper_items_docs {
    justify-content: space-between;
    gap: 10px;
  }
  .btn-submit-tariffs {
    width: 100%;
  }
  .btn-submit-tariffs:hover {
    transform: scale(1);
  }
  .link-custom-red {
    text-align: center;
  }
}
