:root {
  color-scheme: light;
  --checkout-primary: #2779fc;
  --checkout-primary-dark: #1e63d4;
  --checkout-success: #009961;
  --checkout-success-dark: #007a4d;
  --checkout-secondary: #f1f5f9;
  --checkout-accent: #e6efff;
  --checkout-border: #e1e7ef;
  --checkout-muted: #65758b;
  --checkout-text: #535d6a;
  --checkout-card-bg: #ffffff;
  --checkout-bg: #f8fafc;
  --checkout-font: "Poppins", "Segoe UI", sans-serif;
  --checkout-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --checkout-shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.15);
  --checkout-shadow-primary: 0 0 0 4px rgba(39, 121, 252, 0.2), 0 10px 15px -3px rgba(39, 121, 252, 0.3), 0 4px 6px -4px rgba(39, 121, 252, 0.3);
  --checkout-shadow-success: 0 10px 20px rgba(0, 153, 97, 0.25);
  --checkout-shadow-stepper: 0 10px 15px -3px rgba(39, 121, 252, 0.3), 0 4px 6px -4px rgba(39, 121, 252, 0.3);
}

body.checkout-novo-body {
  font-family: var(--checkout-font);
  background: var(--checkout-bg);
  color: var(--checkout-text);
  min-height: 100vh;
}

.checkout-novo-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.checkout-novo-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid var(--checkout-border);
}

.checkout-novo-header-inner {
  max-width: 390.4px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discount_total {
    font-weight: 600;
}

.checkout-novo-header-inner img {
  width: 108px;
  height: 48px;
  object-fit: contain;
}

.checkout-novo-main {
  flex: 1;
  width: 100%;
}

.checkout-novo-container {
  max-width: 390.4px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.checkout-novo-intro {
  text-align: center;
  margin-bottom: 32px;
}

.checkout-novo-intro h1 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.checkout-novo-intro p {
  color: var(--checkout-muted);
  margin: 0 auto;
  max-width: 358.4px;
  font-size: 16px;
  line-height: 24px;
}

.checkout-novo-stepper {
  margin-bottom: 24px;
}

.checkout-stepper-desktop {
  display: none;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.checkout-stepper-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.checkout-stepper-track {
  display: flex;
  align-items: center;
  width: 100%;
}

.checkout-stepper-line {
  flex: 1;
  height: 2px;
  background: var(--checkout-border);
  transition: background 0.3s ease;
}

.checkout-stepper-line.muted {
  opacity: 0;
}

.checkout-stepper-line.active {
  background: var(--checkout-primary);
}

.checkout-stepper-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--checkout-border);
  color: var(--checkout-muted);
  transition: all 0.3s ease;
  font-size: 14px;
}

.checkout-stepper-circle.active {
  background: var(--checkout-primary);
  border-color: var(--checkout-primary);
  color: #ffffff;
  box-shadow: var(--checkout-shadow-primary);
}

.checkout-stepper-circle.completed {
  background: var(--checkout-primary);
  border-color: var(--checkout-primary);
  color: #ffffff;
  box-shadow: var(--checkout-shadow-stepper);
}


.checkout-stepper-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--checkout-muted);
}

.checkout-stepper-label.active {
  color: var(--checkout-primary);
}

.checkout-stepper-label.completed {
  color: var(--checkout-primary);
}

.checkout-stepper-mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-stepper-mobile-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--checkout-muted);
}

.checkout-stepper-mobile-row .current {
  color: var(--checkout-primary);
}

.checkout-stepper-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--checkout-border);
  overflow: hidden;
}

.checkout-stepper-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--checkout-primary);
  transition: width 0.3s ease;
}

.checkout-novo-grid {
  display: grid;
  gap: 24px;
}

.checkout-success-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0 40px;
}

.checkout-success-card {
  max-width: 520px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 32px;
}

.checkout-success-icon {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: #16a34a;
  stroke-width: 2;
}

.checkout-success-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.checkout-success-card p {
  margin: 0;
  color: var(--checkout-muted);
}


.checkout-card {
  background: var(--checkout-card-bg);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--checkout-border);
  box-shadow: var(--checkout-shadow);
}

.checkout-form-steps {
  display: flex;
  flex-direction: column;
}

.checkout-step {
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: fadeSlide 0.25s ease;
}

.checkout-step.active {
  display: flex;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.checkout-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--checkout-border);
}

.checkout-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9f1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--checkout-primary);
}

.checkout-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout-step-title h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.checkout-step-title p {
  margin: 0;
  color: var(--checkout-muted);
  font-size: 14px;
}

.checkout-field-grid {
  display: grid;
  gap: 16px;
}

.checkout-field-row {
  display: grid;
  gap: 16px;
}

.checkout-field-row.row-2-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-field-row.row-3-col {
  grid-template-columns: 180px minmax(0, 1fr) 120px;
}

.checkout-field-row.row-4-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checkout-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.checkout-title {
    font-weight: 700;
}

.checkout-input,
.checkout-select,
.checkout-static {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--checkout-border);
  padding: 8px 12px;
  font-size: 14px;
  background: hsl(210 40% 98%);
  color: var(--checkout-text);
  line-height: 22px;
  text-transform: uppercase;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}


/*Comentando para caso mudem de ideia depois*/
/*.checkout-input::placeholder,*/
/*.checkout-select::placeholder,*/
/*.checkout-static::placeholder,*/
/*.checkout-select2+.select2-container .select2-selection__placeholder {*/
/*  text-transform: none;*/
/*}*/

.checkout-select-wrapper {
  position: relative;
  display: block;
}

.checkout-select-wrapper .checkout-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background: #ffffff;
  cursor: pointer;
}

.checkout-payment-details .checkout-select {
  background: var(--checkout-card-bg);
}
/*Desktop*/
@media (min-width: 992px) {
  .checkout-payment-details .checkout-field-row.row-3-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.checkout-select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(100, 116, 139, 0.8);
  pointer-events: none;
}

.checkout-select-icon .checkout-icon {
  width: 20px;
  height: 20px;
}

.checkout-select2+.select2-container {
  width: 100% !important;
  font-size: 14px;
}

.checkout-select2+.select2-container .select2-selection--single {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--checkout-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 12px;
  box-shadow: none;
}

.checkout-select2+.select2-container--default .select2-selection--single {
  border-radius: 10px;
}

.checkout-select2+.select2-container .select2-selection__rendered {
  line-height: 44px;
  color: #52606d;
  padding-left: 0;
}

.checkout-select2+.select2-container .select2-selection__placeholder {
  color: var(--checkout-muted);
}

.checkout-select2+.select2-container .select2-selection__arrow {
  height: 44px;
  right: 10px;
  opacity: 0.5 !important;
}

.checkout-select2+.select2-container .select2-selection__arrow b {
  border: none !important;
}

.checkout-select2+.select2-container--open .select2-selection__arrow b {
  border: none !important;
}

.checkout-select2+.select2-container .select2-selection__arrow::after {
  content: "\ea4e" !important;
  font-family: "remixicon" !important;
  font-size: 20px !important;
  color: rgba(100, 116, 139, 0.8) !important;
  position: absolute !important;
  top: 80% !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  border-bottom-left-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
}

.checkout-novo-body .select2-container--open .select2-dropdown--below {
  margin-top: 4px;
}

.checkout-novo-body .select2-container--open .select2-dropdown--above {
  top: calc(100% + 4px) !important;
  bottom: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 14px !important;
}

.checkout-novo-body .select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
.checkout-novo-body .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
  border-radius: 10px !important;
}

.select2-container--default .select2-dropdown {
  border-radius: 10px !important;
  border: 1px solid var(--checkout-border);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.select2-container--default .select2-results__options {
  max-height: 384px;
  padding: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.select2-container--default .select2-results__options::-webkit-scrollbar {
  display: none;
}

.select2-container--default .select2-results__option {
  position: relative;
  border-radius: 14px;
  padding: 6px 8px 6px 32px;
  font-size: 14px;
  color: #52606d;
}



.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option:hover {
  background: #eaf1ff !important;
  color: #1e40af !important;
  border-radius: 10px;
}

.select2-container--default .select2-results__option[aria-selected='true'] {
  background: var(--checkout-accent) !important;
  color: #1e40af !important;
}

.select2-container--default .select2-results__option[aria-selected='true']::before {
  content: '✓';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #1e40af;
}


.checkout-input:focus,
.checkout-select:focus {
  outline: none;
  border-color: var(--checkout-primary);
}

.checkout-input.has-error,
.checkout-select.has-error {
  border-color: #dc2626;
}

.checkout-input[disabled],
.checkout-select[disabled] {
  background: #f1f5f9;
  color: #64748b;
}

.checkout-static {
  background: #f8fafc;
  color: #64748b;
}

.checkout-error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

.checkout-required {
  font-size: 12px;
  color: var(--checkout-muted);
}

.checkout-section-note {
  font-size: 12px;
  color: var(--checkout-muted);
}

.checkout-payment-title {
  font-size: 16px;
  font-weight: 600;
}

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

.checkout-payment-card {
  border: 1px solid var(--checkout-border);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-payment-card .checkout-icon {
  width: 24px;
  height: 24px;
}

.checkout-payment-card.active {
  border-color: var(--checkout-primary);
  background: var(--checkout-accent);
}

.checkout-payment-card.active .checkout-icon {
  color: var(--checkout-primary);
  stroke: var(--checkout-primary);
}

.checkout-payment-card.active span {
  color: var(--checkout-primary);
}

.checkout-payment-card:not(.active):hover {
  border-color: rgba(39, 121, 252, 0.5);
  background: rgba(230, 239, 255, 0.5);
}


.checkout-payment-card span {
  font-size: 14px;
  font-weight: 600;
}

.checkout-payment-card small {
  font-size: 12px;
  color: var(--checkout-muted);
}

.checkout-payment-details {
  background: #F1F5F94D;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.checkout-payment-details-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--checkout-muted);
  font-size: 14px;
  font-weight: 600;
}

.checkout-coupon {
  display: flex;
  gap: 8px;
}

.checkout-coupon-input {
  position: relative;
  flex: 1;
}

.checkout-coupon-input .checkout-input {
  padding-left: 40px;
  width: 100%;
}

.checkout-btn.btn-sm-coupon {
  min-width: 80px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
}

.btn-sm-coupon-check {
  display: none;
  width: 16px;
  height: 16px;
    color: #65758b;
}

.checkout-btn.btn-sm-coupon.is-applied {
  background: #eef2f7;
  border-color: #e1e7ef;
  color: #111111;
  cursor: default;
  width: 46px;
  min-width: 46px;
  padding: 0;
}

.checkout-btn.btn-sm-coupon.is-applied .btn-sm-coupon-text {
  display: none;
}

.checkout-btn.btn-sm-coupon.is-applied .btn-sm-coupon-check {
  display: block;
  color: #111111;
}

.checkout-coupon-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(100, 116, 139, 0.9);
}

.checkout-coupon-icon i {
  width: 20px;
  height: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.checkout-button-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--checkout-border);
}

.checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: 1px solid var(--checkout-border);
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: #f8fafc;
  color: var(--checkout-text);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-icon {
    width: 20px !important;
    height: 20px !important;
}

.checkout-btn .checkout-icon {
  width: 20px;
  height: 20px;
  color: inherit;
}

.checkout-btn.primary {
  background: var(--checkout-primary);
  border-color: var(--checkout-primary);
  color: #ffffff;
}

.checkout-btn.primary:not(.is-applied):hover {
  background: var(--checkout-primary-dark);
}

.checkout-btn.success {
  background: var(--checkout-success);
  border-color: var(--checkout-success);
  color: #ffffff;
}

.checkout-btn.success:hover {
  background: var(--checkout-success-dark);
}

#checkout-back {
  width: 126px;
  padding: 0 17px;
  font-weight: 500;
}

#checkout-back:not([disabled]):hover {
  background: #E6EFFF;
  color: #0345B0;
}

.checkout-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none !important;
}

.checkout-summary-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

.checkout-summary-course {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--checkout-accent);
}

.checkout-summary-course-info {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 60px);
}

.checkout-summary-course-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #2779FC1A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--checkout-primary);
  font-size: 16px;
}

.checkout-summary-course-icon .checkout-icon {
  width: 24px;
  height: 24px;
}

.checkout-summary-course-name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--checkout-text);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.checkout-summary-course-modality {
  font-size: 14px;
  font-weight: 400;
  color: var(--checkout-muted);
  margin-top: 4px;
}

.checkout-summary-list {
  margin-top: 16px;
  border-top: 1px solid var(--checkout-border);
  padding-top: 16px;
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.checkout-summary-divider {
  height: 1px;
  background: var(--checkout-border);
  margin: 4px 0;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-summary-row span {
  color: #65758b;
  font-weight: 400;
}

.checkout-summary-row strong {
  font-weight: 500;
  color: var(--checkout-text);
}

.checkout-summary-discount {
  color: #009961;
  font-size: 14px;
  font-weight: 500;
}

.checkout-summary-discount > span,
.checkout-summary-discount .checkout-summary-discount-label > span {
  color: #009961;
}

.checkout-summary-discount .discount_total {
  color: #009961;
}

.checkout-summary-discount-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkout-discount-remove {
  min-width: 16px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #65758b;
  background: #ffffff;
  color: #65758b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.checkout-discount-remove svg {
  width: 12px;
  height: 12px;
}

.checkout-discount-remove:hover {
  background: #f3f6fb;
}

.checkout-summary-discount-details {
  display: grid;
  gap: 2px;
  font-size: 14px;
  color: #009961;
}

.checkout-summary-discount-details strong {
  color: #009961;
}

.checkout-summary-coupon-success {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: -25px;
  color: #009961;
  font-size: 12px;
  font-weight: 400;
}

.checkout-summary-coupon-success-icon {
  width: 12px;
  height: 12px;
  color: #009961;
  flex-shrink: 0;
}

.checkout-summary-total {
  border-top: 1px solid var(--checkout-border);
  justify-content: space-between;
  display: flex;
  padding-top: 16px;
  align-self: stretch;
}

.checkout-summary-total span {
  font-size: 24px;
  font-weight: 700;
  color: var(--checkout-text);
}

.checkout-summary-total #summary-total-title {
  margin-top: 8px;
  font-size: 18px;
}

.checkout-summary-total #summary-total {
  color: var(--checkout-success);
}

.checkout-review-card {
  background: #F1F5F94D;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.checkout-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-review-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
}

.checkout-review-title .checkout-icon {
  color: var(--checkout-primary);
  stroke: var(--checkout-primary);
}

.checkout-review-card .checkout-summary-row span,
.checkout-review-card .checkout-summary-row strong {
  font-size: 14px;
}

.checkout-review-card .checkout-summary-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.checkout-review-card .checkout-summary-row strong {
  font-weight: 500;
}

.checkout-edit-btn {
  border: none;
  background: transparent;
  color: var(--checkout-primary);
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.checkout-edit-btn .checkout-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  stroke: currentColor;
}

.checkout-edit-btn:hover {
  background: #e6efff;
}

.checkout-confirm-banner {
  display: flex;
  gap: 12px;
  background: rgba(230, 239, 255, 0.5);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(39, 121, 252, 0.2);
}

.checkout-confirm-banner-title {
  font-size: 16px;
  font-weight: 500;
  color: #535D6A;
}

.checkout-confirm-banner-text {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.checkout-tooltip-icon {
  font-size: 14px;
  color: #525C69;
  cursor: help;
  margin-left: 4px;
}

.checkout-hidden {
  display: none;
}

.checkout-footer {
  padding: 24px 16px;
  text-align: center;
  color: var(--checkout-muted);
  font-size: 14px;
  border-top: 1px solid var(--checkout-border);
  background: #ffffff;
}

.checkout-toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1055;
}

.checkout-toast {
  font-family: var(--checkout-font);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  background: #ffffff;
  overflow: hidden;
}

.checkout-toast .toast-header button {
    display: none;
}

.checkout-toast .toast-header {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.checkout-toast .toast-body {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.checkout-toast--success .toast-header {
  color: #ffffff;
  background: var(--checkout-success);
}

.checkout-toast--success .close {
  color: #ffffff;
  opacity: 1;
}

.checkout-toast--warning,
.checkout-toast--error {
  background: #ef4343;
  border-color: #ef4343;
  color: #ffffff;
}

.checkout-toast--warning .toast-header,
.checkout-toast--error .toast-header {
  color: #ffffff;
  background: #ef4343;
}

.checkout-toast--warning .close,
.checkout-toast--error .close {
  color: #ffffff;
  opacity: 1;
}

.checkout-toast--warning .toast-body,
.checkout-toast--error .toast-body {
  color: #ffffff;
}

.tooltip-inner {
  max-width: 280px;
  background-color: #ffffff !important;
  color: #525C69 !important;
  border: 1px solid var(--checkout-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--checkout-shadow-lg) !important;
  font-family: var(--checkout-font) !important;
  font-size: 10px !important;
  padding: 8px 12px !important;
  text-align: left;
  opacity: 1 !important;
}

.tooltip.show {
  opacity: 1 !important;
}

.bs-tooltip-top .arrow::before,
.bs-tooltip-auto[x-placement^="top"] .arrow::before {
  border-top-color: var(--checkout-border) !important;
}

.bs-tooltip-bottom .arrow::before,
.bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
  border-bottom-color: var(--checkout-border) !important;
}

.loadContainer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.45);
  z-index: 9999;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.loadShow {
  display: flex;
}

.custom-loader {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 8px solid;
  border-color: var(--checkout-primary) transparent;
  animation: s1 1s infinite;
}

@keyframes s1 {
  to {
    transform: rotate(.5turn);
  }
}

/* Telas pequenas (Celulares) */
@media (max-width: 600px) {
  .checkout-stepper-desktop {
    display: none !important;
  }

  .checkout-stepper-mobile {
    display: flex !important;
  }

  .checkout-novo-header-inner,
  .checkout-novo-container {
    max-width: 390.4px;
    width: 100%;
  }

  .checkout-card {
    max-width: 358.4px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .checkout-summary-card {
    max-width: 358.4px;
    margin-left: auto;
    margin-right: auto;
  }

  .checkout-toast-container {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    bottom: 20px;
  }

  .checkout-toast {
    width: 100% !important;
    max-width: 340px !important;
  }
}

/* Telas médias (Tablets e dispositivos semelhantes) */
@media (min-width: 601px) and (max-width: 991px) {
  .checkout-novo-stepper {
    width: 100%;
  }

  .checkout-stepper-desktop {
    display: flex;
    width: 100%;
  }

  .checkout-stepper-mobile {
    display: none;
  }

  .checkout-novo-header-inner,
  .checkout-novo-container {
    max-width: 100%;
  }

  .checkout-novo-intro p {
    max-width: 100%;
  }

  .checkout-card,
  .checkout-summary-card {
    max-width: 100%;
    width: 100%;
  }
}

/* Regras comuns para mobile e tablet (até 991px) */
@media (max-width: 991px) {
  .checkout-novo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .checkout-field-row.row-2-col,
  .checkout-field-row.row-3-col,
  .checkout-field-row.row-4-col {
    grid-template-columns: 1fr;
  }

  #checkout-back {
    flex: 0 0 126px;
  }
}

@media (max-width: 400px) {
  .checkout-card {
    max-width: 100%;
    padding: 20px;
  }

  #checkout-back {
    flex-basis: 112px;
  }

  .checkout-btn.btn-sm-coupon {
    min-width: 72px;
  }
}
/*desktop*/
@media (min-width: 992px) {
  .checkout-novo-header-inner {
    max-width: 1168px;
    padding: 16px 24px;
  }

    .checkout-toast {
        width: 400px !important;
        max-width: 400px !important;
        height: 100px !important;
    }

  .checkout-novo-container {
    max-width: 1168px;
    padding: 32px 24px 48px;
  }

  .checkout-novo-intro h1 {
    font-size: 28px;
  }

  .checkout-novo-intro p {
    max-width: 640px;
  }

  .checkout-novo-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
  }

  .checkout-stepper-desktop {
    display: flex;
  }

  .checkout-stepper-mobile {
    display: none;
  }

  .checkout-field-row.row-2-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-field-row.row-3-col {
    grid-template-columns: 180px minmax(0, 1fr) 120px;
  }

  .checkout-field-row.row-4-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .checkout-payment-methods {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .checkout-summary-card {
    position: sticky;
    top: 108px;
  }

  .checkout-review-card .checkout-summary-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .checkout-review-card .checkout-summary-row strong {
    text-align: right;
  }
}
