/* Quote page — motor deep-link (pid=20) */

body.kic-quote-page .getQuote {
  position: relative;
  overflow: visible;
  clear: both;
}

body.kic-quote-page main > .container {
  overflow: visible;
}

/* Entered values — KIC navy (not muted gray) */
body.kic-quote-page .getQuote .inputEntity .inputParent input.form-control,
body.kic-quote-page .getQuote .inputEntity .inputParent input.form-control.has-value,
body.kic-quote-page .getQuote .inputEntity .inputParent input.form-control:focus,
body.kic-quote-page .getQuote .inputEntity textarea.form-control,
body.kic-quote-page .getQuote .inputEntity.kic-has-selection .dk-select .dk-selected,
body.kic-quote-page .getQuote .inputEntity .dk-select:not(.kic-empty-value) .dk-selected {
  color: #183861 !important;
  -webkit-text-fill-color: #183861 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  opacity: 1 !important;
}

body.kic-quote-page .getQuote .inputEntity .dk-select .dk-selected {
  border-color: rgba(97, 138, 191, 0.5) !important;
}

/* Validation — red outline on empty/skipped fields */
body.kic-quote-page .getQuote .inputEntity.kic-field-invalid .inputParent input.form-control,
body.kic-quote-page .getQuote .inputEntity.kic-field-invalid textarea.form-control,
body.kic-quote-page .getQuote .inputEntity.kic-field-invalid .dk-select .dk-selected {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626 inset !important;
}

body.kic-quote-page .getQuote .inputEntity.kic-field-invalid .stackedInput {
  outline: 2px solid #dc2626;
  outline-offset: 4px;
  border-radius: 6px;
}

body.kic-quote-page .getQuote .inputEntity.kic-field-invalid > .errorMessage.field-validation-error {
  display: block !important;
  color: #dc2626 !important;
}

/* Stacked steps: stay in flow — no absolute overlap between step 1 header and step 2 fields */
body.kic-quote-page .getQuote .formAbsolute.absoluteContainer {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100%;
  margin-bottom: 14px;
  clear: both;
}

body.kic-quote-page .getQuote .formAbsolute.done:not(.active) {
  z-index: 1;
}

body.kic-quote-page .getQuote .formAbsolute.active {
  z-index: 4;
}

body.kic-quote-page .getQuote .formAbsolute .contactForm {
  position: relative;
  z-index: 1;
}

/* Dropkick list above next fields, not hidden under them */
body.kic-quote-page .getQuote #stepTwoMotor .inputEntity .dk-select-open,
body.kic-quote-page .getQuote #stepTwoMotor .inputEntity .dk-select.dk-select-open {
  z-index: 50;
  position: relative;
}

body.kic-quote-page .getQuote #stepTwoMotor .inputEntity .dk-select-options {
  z-index: 51;
}

/* Mobile/tablet: symmetric card + RTL fields (matches kic-kw.com; fixes left shift from container margin) */
@media (max-width: 992px) {
  body.kic-quote-page main > .container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.kic-quote-page .getQuote,
  body.kic-quote-page .getQuote .formAbsolute {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.kic-quote-page .getQuote .formAbsolute .contactForm .row {
    direction: rtl;
  }

  body.kic-quote-page .getQuote .formAbsolute .contactForm .row .col-md-6,
  body.kic-quote-page .getQuote .formAbsolute .contactForm .row .col-md-12 {
    float: none !important;
    width: 100% !important;
    clear: both;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.kic-quote-page .getQuote .formAbsolute .contactForm .row .col-md-6 .inputEntity {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.kic-quote-page .getQuote .floating-label {
    right: 25px !important;
    left: auto !important;
  }

  body.kic-quote-page .getQuote .inputEntity .inputParent input,
  body.kic-quote-page .getQuote .inputEntity textarea,
  body.kic-quote-page .getQuote .inputEntity .dk-select .dk-selected {
    text-align: right;
  }

  body.kic-quote-page .getQuote .formAbsolute h4 {
    text-align: right;
  }
}

.kic-quote-motor-prefill .getQuote .formAbsolute.done:not(.active) {
  opacity: 1;
}

.kic-quote-motor-prefill .getQuote .formAbsolute.done #stepOne .row {
  display: none !important;
}

.kic-quote-motor-prefill .getQuote .formAbsolute.done h4 {
  display: inline;
}

.kic-quote-motor-prefill .getQuote .formAbsolute.done .editStep {
  display: inline-flex !important;
}

.kic-quote-motor-prefill .getQuote .formAbsolute.active .contactForm .row {
  display: block !important;
}

.kic-quote-motor-prefill .getQuote .formAbsolute.done,
.kic-quote-motor-prefill .getQuote .formAbsolute.active {
  opacity: 1 !important;
}

/* Hidden step blocks (e.g. stepTwoOther on motor) must not consume the CSS step counter */
.getQuote .formAbsolute[style*="display: none"] h4,
.getQuote .formAbsolute[style*="display:none"] h4 {
  counter-increment: none !important;
}

.getQuote .formAbsolute[style*="display: none"] h4::before,
.getQuote .formAbsolute[style*="display:none"] h4::before {
  display: none !important;
}

/* Step 3 badge — fixed "3" (counter + done checkmark were hiding the digit) */
.formAbsolute.kic-quote-step-three-block:not(.done) #stepThree .contactForm > h4::before {
  content: "3" !important;
  display: inline-block !important;
  visibility: visible !important;
  background-image: none !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  min-width: 2.2em;
  text-align: center;
}

.formAbsolute.kic-quote-step-three-block.done #stepThree .contactForm > h4::before,
.kic-quote-motor-prefill .formAbsolute.kic-quote-step-three-block.done #stepThree .contactForm > h4::before {
  content: "" !important;
  background-image: url(/kic/images/doneCheck.svg) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 22px 22px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border: none !important;
  background-color: transparent !important;
}

.kic-quote-motor-prefill .formAbsolute.kic-quote-step-three-block:not(.done) #stepThree .contactForm > h4::before {
  color: #183861 !important;
  background-color: #fff !important;
  border: 1px solid #183861 !important;
}

.kic-quote-step-three-active
  .formAbsolute.kic-quote-step-three-block:not(.done)
  #stepThree
  .contactForm
  > h4::before,
.formAbsolute.kic-quote-step-three-block.active:not(.done) #stepThree .contactForm > h4::before {
  color: #fff !important;
  background-color: #183861 !important;
  border: 1px solid #183861 !important;
}

.kic-quote-step-four-block h4 {
  counter-increment: none !important;
}

/* Step 3 — full-opacity title + number (override KIC .formAbsolute opacity 0.3) */
.kic-quote-motor-prefill .getQuote .formAbsolute.kic-quote-step-three-block,
.kic-quote-motor-prefill .getQuote .formAbsolute.kic-quote-step-three-block h4,
.kic-quote-motor-prefill .getQuote .formAbsolute.kic-quote-step-three-block h4::before {
  opacity: 1 !important;
  color: #183861 !important;
}

.kic-quote-motor-prefill .getQuote .formAbsolute.kic-quote-step-three-block {
  overflow: visible !important;
}

#stepThree input[type="submit"] {
  display: none !important;
}

.kic-quote-motor-prefill:not(.kic-quote-step-three-active)
  .formAbsolute.kic-quote-step-three-block:not(.active)
  #stepThree
  .contactForm
  .row {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.kic-quote-motor-prefill .formAbsolute.kic-quote-step-three-block.active #stepThree .contactForm .row {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

/* Step 3 clickable whenever its card is active (body class may lag behind Skwid) */
.kic-quote-motor-prefill .formAbsolute.kic-quote-step-three-block.active #stepThree .contactForm .row,
.kic-quote-motor-prefill .formAbsolute.kic-quote-step-three-block.active #stepThree .contactForm .row * {
  pointer-events: auto !important;
}

body.kic-quote-step-three-active #stepThree,
body.kic-quote-step-three-active #stepThree * {
  pointer-events: auto !important;
}

.kic-quote-step-three-active .formAbsolute.kic-quote-step-three-block,
.kic-quote-step-three-active .formAbsolute.kic-quote-step-three-block h4,
.kic-quote-step-three-active .formAbsolute.kic-quote-step-three-block h4::before,
.kic-quote-step-three-active #stepThree .contactForm,
.kic-quote-step-three-active #stepThree .inputEntity,
.kic-quote-step-three-active #stepThree .inputParent,
.kic-quote-step-three-active #stepThree .form-control,
.kic-quote-step-three-active #stepThree .floating-label {
  opacity: 1 !important;
}

.kic-quote-step-three-active #stepThree .contactForm .row {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  pointer-events: auto !important;
}

.kic-quote-step-three-active #stepThree .kic-step-three-next-wrap {
  display: block !important;
  clear: both;
  margin-top: 20px;
  padding-top: 4px;
  text-align: left;
  direction: rtl;
}

#stepThree #errorphonemsg.errorphonemsg {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
}

#stepThree #errorphonemsg.errorphonemsg:empty {
  display: none !important;
}

.kic-step-three-banner {
  display: none;
  margin: 12px 0 4px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff4f4;
  border: 1px solid #e8a0a0;
  color: #b00020;
  font-size: 14px;
  line-height: 1.45;
  clear: both;
}

.kic-quote-step-four-active .kic-quote-step-four-block {
  z-index: 210;
}

/* KIC pill «التالي» — filled gold + white outline on hover (matches brand) */
.getQuote button.goldBtn.kic-pill-btn,
.getQuote #stepThreeNext.goldBtn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  float: left;
  width: auto;
  min-width: 140px;
  font-size: 14px;
  font-family: "Neo", "GE Dinar Two", sans-serif;
  font-weight: 300;
  padding: 13px 40px;
  border: 1px solid #cba876;
  border-radius: 34px;
  background-color: #cba876 !important;
  color: #fff !important;
  cursor: pointer;
  pointer-events: auto !important;
  line-height: 1.35;
  text-align: center;
  text-transform: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.getQuote button.goldBtn.kic-pill-btn:hover,
.getQuote #stepThreeNext.goldBtn:hover {
  color: #cba876 !important;
  background-color: #fff !important;
  border-color: #cba876;
}

@media (max-width: 992px) {
  .getQuote button.goldBtn.kic-pill-btn,
  .getQuote #stepThreeNext.goldBtn {
    float: none;
    width: 100%;
    max-width: 100%;
  }
}

/*
 * Dropkick (step 2): keep KIC text alignment (right / padding 25px).
 * Only fix list box position = same width & edges as the closed field.
 */
.getQuote #stepTwoMotor .inputEntity .customSelect,
.getQuote #stepTwoMotor .inputEntity .dk-select {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.getQuote #stepTwoMotor .inputEntity .dk-select .dk-select-options {
  position: absolute;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
  text-align: right;
}

.getQuote #stepTwoMotor .inputEntity .dk-select-options .dk-option {
  text-align: right;
  padding: 0 25px;
  line-height: 25px;
  width: 100%;
  box-sizing: border-box;
}

.getQuote #stepTwoMotor .inputEntity .dk-select .dk-selected {
  width: 100%;
  box-sizing: border-box;
  text-align: right;
  justify-content: flex-start;
  padding: 0 25px !important;
}

.kic-quote-motor-prefill .getQuote .done h4::before {
  background-image: url(/kic/images/doneCheck.svg) !important;
}

.kic-quote-motor-prefill .getQuote .done .editStep::after {
  background-image: url(/kic/images/goldEdit.svg) !important;
}

.kic-quote-motor-prefill .mainMenu > ul > .topBanner {
  display: none !important;
}

/* intl-tel-input (step 3) — flags, country sheet, dial code spacing */
.kic-quote-step-three-active .formAbsolute.kic-quote-step-three-block {
  overflow: visible !important;
  z-index: 200;
}

.getQuote #stepThree .inputEntity {
  overflow: visible;
}

.getQuote #stepThree .intl-tel-input {
  direction: ltr !important;
  width: 100%;
}

.getQuote #stepThree .intl-tel-input .flag-container {
  left: 0;
  right: auto;
  margin: 0 !important;
}

.getQuote #stepThree .intl-tel-input.allow-dropdown .selected-flag {
  width: 100px !important;
  height: 100% !important;
}

.getQuote #stepThree .intl-tel-input .selected-flag .iti-flag {
  left: 10px !important;
}

.getQuote #stepThree .intl-tel-input.allow-dropdown.separate-dial-code .selected-dial-code {
  padding-left: 40px !important;
  white-space: nowrap;
}

.getQuote #stepThree .intl-tel-input.allow-dropdown input[type="tel"] {
  padding-left: 100px !important;
  margin-left: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
}

.getQuote #stepThree .intl-tel-input .country-list {
  z-index: 99999;
  width: 100%;
  max-width: 100%;
}

/* Country picker: readable but not full-screen (avoids long empty panel) */
body.kic-quote-page.iti-mobile .intl-tel-input.iti-container {
  z-index: 100000 !important;
  top: 30vh !important;
  bottom: auto !important;
  left: 12px !important;
  right: 12px !important;
  height: auto !important;
  max-height: min(42vh, 320px) !important;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  border: 1px solid #01b4fa;
}

body.kic-quote-page.iti-mobile .intl-tel-input .country-list {
  max-height: min(42vh, 320px) !important;
  width: 100% !important;
  max-width: none !important;
  border-radius: 10px;
  font-size: 15px;
  position: relative !important;
}

body.kic-quote-page.iti-mobile .intl-tel-input .country-list .country {
  padding: 10px 12px !important;
  line-height: 1.35 !important;
}

@media (max-width: 992px) {
  .getQuote #stepThree .intl-tel-input .country-list {
    max-height: min(42vh, 320px) !important;
    width: 100% !important;
    max-width: none !important;
    font-size: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  }

  .getQuote #stepThree .intl-tel-input .country-list .country {
    padding: 10px 12px !important;
  }
}

/* Step 4 — insurer plans / entities */
.getQuote .formAbsolute.kic-quote-step-four-block:not(.done) h4::before {
  content: "4" !important;
  display: inline-block !important;
  visibility: visible !important;
  background-image: none !important;
}

.getQuote .formAbsolute.kic-quote-step-four-block.done h4::before {
  content: "" !important;
  background-image: url(/kic/images/doneCheck.svg) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 22px 22px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  display: inline-block !important;
  visibility: visible !important;
}

.kic-quote-motor-prefill .kic-quote-step-five-block {
  display: block !important;
  opacity: 1 !important;
}

.kic-quote-motor-prefill .kic-quote-step-five-block h4,
.kic-quote-motor-prefill .kic-quote-step-five-block h4::before {
  opacity: 1 !important;
  visibility: visible !important;
}

.kic-quote-motor-prefill:not(.kic-quote-step-five-active) .kic-quote-step-five-block .row {
  display: none !important;
}

.kic-quote-motor-prefill .getQuote .formAbsolute.kic-quote-step-four-block,
.kic-quote-motor-prefill .getQuote .formAbsolute.kic-quote-step-four-block h4,
.kic-quote-motor-prefill .getQuote .formAbsolute.kic-quote-step-four-block h4::before {
  opacity: 1 !important;
  color: #183861 !important;
}

.kic-quote-motor-prefill:not(.kic-quote-step-four-active) .kic-quote-step-four-block .row {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.kic-quote-step-four-active .kic-quote-step-four-block,
.kic-quote-step-four-active .kic-quote-step-four-block h4,
.kic-quote-step-four-active .kic-quote-step-four-block .row {
  opacity: 1 !important;
}

.kic-quote-step-four-active .kic-quote-step-four-block .row {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  pointer-events: auto !important;
}

.kic-entity-strip-wrap {
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e5e5;
}

.kic-entity-strip {
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.kic-entity-card {
  flex: 0 0 33.333%;
  min-width: 140px;
  max-width: 220px;
  scroll-snap-align: start;
  border: none;
  border-right: 1px solid #e8e8e8;
  background: #fff;
  padding: 16px 12px 20px;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.kic-entity-card:first-child {
  border-left: 1px solid #e8e8e8;
}

.kic-entity-card.selected {
  box-shadow: inset 0 -3px 0 #cba876;
  background: #fafafa;
}

.kic-entity-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  margin-bottom: 12px;
}

.kic-entity-logo img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.kic-entity-name {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: #555;
  font-weight: 400;
}

.kic-entity-error {
  color: #c0392b;
  font-size: 13px;
  margin: 4px 0 16px;
}

.kic-quote-step-four-block .kic-total-field {
  margin-bottom: 16px;
}

.kic-quote-step-four-block .kic-total-label {
  display: block;
  margin: 0 0 8px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #183861;
  text-align: right;
}

.kic-quote-step-four-block .kic-total-input {
  padding: 12px 16px !important;
  min-height: 48px;
  font-size: 15px;
  line-height: 1.4;
  color: #333;
  background: #fff !important;
  text-align: right;
  direction: ltr;
}

.kic-quote-step-four-block .kic-total-input#TotalAmountWords {
  direction: ltr;
  text-align: left;
}

.kic-step-four-actions {
  text-align: right;
  margin-top: 24px;
  padding-top: 8px;
}

.kic-btn-previous {
  background: #6c757d;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 13px 28px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 15px;
}

.kic-btn-review {
  float: none !important;
  display: inline-block;
  background: #5cb85c !important;
  border: none;
  padding: 13px 28px !important;
  font-size: 15px;
}

@media (max-width: 992px) {
  .kic-entity-card {
    flex: 0 0 42%;
    min-width: 130px;
  }

  body.kic-quote-page .getQuote .kic-step-five-actions {
    text-align: center;
  }

  body.kic-quote-page .getQuote .kic-step-four-actions {
    text-align: center;
  }

  .kic-btn-previous,
  .kic-btn-review,
  .kic-btn-pay,
  .kic-btn-cancel {
    width: 100%;
    margin: 0 0 10px;
    display: block;
  }
}

/* Step 5 — insurance summary */
.getQuote .formAbsolute.kic-quote-step-five-block h4::before {
  content: "5" !important;
  display: inline-block !important;
  visibility: visible !important;
}

.kic-quote-motor-prefill:not(.kic-quote-step-five-active)
  .formAbsolute.kic-quote-step-five-block:not(.active)
  .contactForm
  .row {
  display: none !important;
}

.kic-quote-step-five-active .kic-quote-step-five-block .row,
.kic-quote-motor-prefill .formAbsolute.kic-quote-step-five-block.active .contactForm .row {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.kic-summary {
  width: 100%;
  text-align: left;
  direction: ltr;
}

body.kic-summary-page {
  direction: ltr;
}

.kic-summary-page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.kic-summary-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px 20px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.kic-summary-page-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
  color: #183861;
  text-align: left;
}

.kic-summary-section {
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0 8px;
}

.kic-summary-heading {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: #333;
}

.kic-summary-dl {
  margin: 0;
  padding: 0;
}

.kic-summary-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  box-sizing: border-box;
}

.kic-summary-row:last-child {
  border-bottom: none;
}

.kic-summary-row dt {
  flex: 0 1 auto;
  margin: 0;
  padding-right: 12px;
  font-weight: 600;
  font-size: 14px;
  color: #444;
  text-align: left;
}

.kic-summary-row dd {
  flex: 0 1 auto;
  margin: 0 0 0 auto;
  padding-left: 12px;
  max-width: 55%;
  font-size: 14px;
  color: #222;
  text-align: right;
  word-break: break-word;
}

.kic-summary-insurer-head {
  text-align: center;
  margin-bottom: 16px;
}

.kic-summary-insurer-logo {
  max-height: 56px;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 8px;
}

.kic-summary-insurer-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #183861;
}

.kic-summary-consents {
  padding: 20px 0 0;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

.kic-summary-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.kic-summary-check label {
  display: inline-block !important;
  margin: 0 !important;
  padding-left: 28px !important;
  position: relative;
  cursor: pointer;
  line-height: 1.5;
  flex: 1;
}

.kic-summary-check a {
  color: #337ab7;
}

body.kic-summary-page .kic-summary-checkbox {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: auto !important;
}

body.kic-summary-page .kic-summary-check label::before {
  content: "" !important;
  display: inline-block !important;
  box-sizing: border-box;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  border: 2px solid #183861 !important;
  border-radius: 3px;
  background: #fff !important;
  position: absolute;
  left: 0;
  top: 2px;
  vertical-align: middle;
}

body.kic-summary-page .kic-summary-checkbox:checked + label::before {
  background: #183861 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.2 12.1 2.4 8.3l1.4-1.4 2.4 2.4 6-6 1.4 1.4z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 14px 14px !important;
  box-shadow: none;
}

body.kic-summary-page .kic-summary-checkbox:focus-visible + label::before {
  outline: 2px solid #cba876;
  outline-offset: 2px;
}

.kic-summary-consent-error {
  color: #b00020;
  font-size: 13px;
  margin: 0 0 12px;
}

.kic-summary-actions,
.kic-step-five-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  padding: 24px 0 0;
  margin-top: 8px;
  border-top: 1px solid #e8e8e8;
}

.kic-summary-actions .kic-btn-pay,
.kic-summary-actions .kic-btn-previous {
  width: 100%;
  text-align: center;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  min-height: 48px;
}

body.kic-summary-page .kic-summary-actions button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.kic-summary-page #loading {
  display: none;
  pointer-events: none;
}

body.kic-summary-page.kic-summary-transition-active #loading {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

body.kic-summary-page.kic-summary-transition-active #loading-overlay {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}

body.kic-summary-page.kic-summary-transition-active {
  overflow: hidden;
}

body.kic-summary-page.kic-summary-transition-active main {
  filter: none;
}

.kic-btn-pay {
  background: #5cb85c;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 13px 28px;
  font-size: 15px;
  cursor: pointer;
}

.kic-btn-cancel {
  background: #d9534f;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 13px 28px;
  font-size: 15px;
  cursor: pointer;
}

@media (min-width: 600px) {
  .kic-summary-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .kic-summary-actions .kic-btn-pay,
  .kic-summary-actions .kic-btn-cancel {
    width: auto;
    min-width: 140px;
  }

  .kic-summary-actions .kic-btn-previous {
    margin-left: auto;
    width: auto;
  }
}
