/* Clystra checkout payment cards. Does not change the Payment method heading. */
body.clystra-pay-design #checkout-payment-options > label {
  display: none !important;
}

body.clystra-pay-design .clystra-pay-prompt {
  margin: 0 0 12px;
  color: #3f3f3f;
  font-size: 14px;
  font-weight: 600;
}

body.clystra-pay-design ul.clystra-pay-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  align-items: stretch !important;
}

body.clystra-pay-design ul.clystra-pay-cards > li.single-form-selector {
  display: flex;
  margin: 0 !important;
  list-style: none;
  border: 1px solid #e7e5e3 !important;
  border-radius: 12px;
  background: #fff !important;
  min-height: 124px;
  position: relative;
  box-shadow: none !important;
  overflow: hidden;
  box-sizing: border-box;
}

body.clystra-pay-design ul.clystra-pay-cards > li.single-form-selector:hover:not(:has(input:checked)) {
  border-color: var(--mainC, #783f30) !important;
}

body.clystra-pay-design ul.clystra-pay-cards > li.single-form-selector:has(input:checked) {
  border-color: var(--mainC, #783f30) !important;
  background: color-mix(in srgb, var(--mainC, #783f30) 10%, #ffffff) !important;
  box-shadow: none !important;
}

body.clystra-pay-design ul.clystra-pay-cards .custom-radio-btn {
  display: flex !important;
  flex: 1 1 auto;
  width: 100%;
  min-height: 124px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.clystra-pay-design ul.clystra-pay-cards .custom-radio-btn,
body.clystra-pay-design ul.clystra-pay-cards .custom-radio-btn label {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

body.clystra-pay-design ul.clystra-pay-cards .custom-radio-btn label::before,
body.clystra-pay-design ul.clystra-pay-cards .custom-radio-btn label::after,
body.clystra-pay-design ul.clystra-pay-cards .custom-radio-btn::before,
body.clystra-pay-design ul.clystra-pay-cards .custom-radio-btn::after {
  display: none !important;
  content: none !important;
}

body.clystra-pay-design ul.clystra-pay-cards input[type="radio"] {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--mainC, #783f30);
  opacity: 1 !important;
  appearance: auto;
  z-index: 2;
}

body.clystra-pay-design ul.clystra-pay-cards .label-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 22px 10px 14px;
  text-align: center;
}

body.clystra-pay-design ul.clystra-pay-cards .label-title > span {
  color: #2b2b2b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

body.clystra-pay-design ul.clystra-pay-cards .payment-method-logo,
body.clystra-pay-design ul.clystra-pay-cards .label-title img {
  display: block;
  width: auto;
  max-width: 92px;
  height: 34px;
  object-fit: contain;
}

body.clystra-pay-design .checkout-cta-primary {
  background: var(--mainC, #783f30) !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none !important;
}

body.clystra-pay-design .clystra-pay-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  color: #9a9a9a;
  font-size: 12px;
}

body.clystra-pay-design.company-footer-checkout-hidden .company-footer__checkout-btn {
  display: none !important;
}

@media (max-width: 640px) {
  body.clystra-pay-design ul.clystra-pay-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.clystra-pay-design ul.clystra-pay-cards .label-title > span {
    font-size: 11px;
  }
}
