/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
.loyalty {
  width: 100%;
}

.loyalty .button {
  min-width: 139px;
  flex: 1 0;
}

.woocommerce-cart table.cart td.actions .loyalty .input-text {
  flex: 1 0;
  max-width: 200px;
}

table.cart td.actions .loyalty {
  padding-bottom: 1em;
  margin-bottom: 1em;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}


.ub-vouchers-cta {
  display: block;
  font-size: 12px;
  padding: 5px;
  position: relative;
}

.ub-cart-loyalty-info {
  font-size: 12px;
  padding: 5px;
}

.ub-cart-loyalty-info span {
  font-weight: 600;
  color: #3d3d3d;
}

.ub-vouchers-cta:focus {
  outline: unset !important;
}

.text-right {
  text-align: right;
}

.datanuum-i18n-block--rtl {
  direction: rtl;
  text-align: right;
}

.datanuum-i18n-block--rtl .flex {
  flex-direction: row-reverse;
}

.datanuum-i18n-block--rtl .mr-2 {
  margin-right: 0;
  margin-left: .2rem;
}

.datanuum-i18n-block--rtl .ub-cart-loyalty-info span {
  display: inline-block;
}

.datanuum-i18n-block--rtl .ubVouchers .icon,
.datanuum-i18n-block--rtl.ubVouchers .icon {
  margin: 0 0 0 30px;
}

.datanuum-i18n-block--rtl .ubVouchers .text,
.datanuum-i18n-block--rtl.ubVouchers .text {
  border-left: 0;
  border-right: 1px dashed #d5c8c8;
  padding-left: 0;
  padding-right: 10px;
  align-items: flex-end;
  text-align: left;
  flex: 1 1 auto;
}

.datanuum-i18n-block--rtl .ubVouchers .header,
.datanuum-i18n-block--rtl.ubVouchers .header {
  align-items: flex-end;
}

.datanuum-i18n-block--rtl .text-right {
  text-align: left;
}

@media (min-width: 768px) {
  table.cart td.actions .loyalty {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    display: inline-block;
    float: left;
  }
}

.dashicons.spin {
  animation: dashicons-spin 1s infinite;
  animation-timing-function: linear;
}

@keyframes dashicons-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#TB_ajaxContent .spin {
  font-size: 40px;
  line-height: 40px;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.ubVouchers .single {
  padding: 20px 30px;
  display: flex;
  flex-direction: row;
  background: #e9e9e9;
  border-bottom: 1px solid #bbbbbb96;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  align-items: center;
  align-content: flex-start;
  margin-bottom: 10px;
  border-radius: 6px;
  position:relative
}

.ubVouchers .single:last-child {
  border-bottom: 0px solid #E3EBF1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}
.ubVouchers .single .ub-voucher-error{
  position: absolute;
  top: 0;
}

.ubVouchers .icon {
  display: flex;
  margin: 0 30px 0 0;
  height: 100%;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center;
  width: 115px;
}

.ubVouchers .icon img {
  max-width: 130px;
}

.ubVouchers .text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  border-left: 1px dashed #d5c8c8;
  padding-left: 10px;
}

.ubVouchers .header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-content: flex-start;
}

.ubVouchers .header h3 {
  font-size: 16px;
  margin: 0 0 12px 0;
}

.flex {
  display: flex;
}

.checkout_loyalty {
  margin: 0 auto 30px auto;
}

.mr-2 {
  margin-right: .2rem;
}

.ubVouchers .header .desc {
  height: 80px;
  will-change: height;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ubVouchers .header h5 {
  font-size: 14px;
  width: 80%;
  line-height: 1.4;
  font-weight: 300;
}

.ubVouchers .desc h2 {
  font-size: 1.3em;
  line-height: 1.4em;
  font-weight: bold;
}

.ubVouchers .functions {
  margin: 10px 0 0 0;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  width: 160px;
  padding: 10px 15px;
  background-color: #5bb0da;
  color: #fff;
}

.ubVouchers .functions span {
  font-size: 14px;
}

.ubVouchers .functions span:first-child {
  color: #577083;
}

.ubVouchers .functions span:last-child {
  color: #ffffff;
}

.ubVouchers .functions span:last-child:hover {
  cursor: pointer;
  text-decoration: underline;
}

.ubVouchers .functions span:last-child svg {
  margin: 0 0 0 9px;
  vertical-align: middle;
}

.ubVouchers .reveal {
  height: 68px;
}

.ubVouchers .cardTitle {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
  color: #162D3D;
  padding: 0 30px;
  height: 72px;
  background: white;
  width: 100%;
  display: flex;
  align-content: center;
  align-items: center;
  border-bottom: 1px solid #E3EBF1;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
}

.ubVouchers .soon {
  color: #FB7D33 !important;
}

.ubVouchers .claimed {
  background: #FAFBFC;
}

.ubVouchers .claimed .text .desc {
  height: 38px;
}

.ubVouchers .devider {
  background: #F7F9FB;
  width: 100%;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 30px;
}

.ubVouchers .noBd {
  border: 0px solid black;
}

.no-vouchers {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6em 0;
}

.no-vouchers .message-box {
  text-align: center;
  padding: 30px;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.no-vouchers .message-box h1 {
  font-size: 2rem;
  color: #343a40;
}

.no-vouchers .message-box p {
  font-size: 1.5rem;
  color: #6c757d;
}

.ub-voucher-error-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
}

.ub-voucher-error-box {
  max-width: 520px;
  width: calc(100% - 40px);
  background: #ffffff;
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.ub-voucher-error-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #1f2937;
}

.ub-voucher-error-close {
  margin-top: 24px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.ubVouchers {
  position: relative;
  background: #ffffff;
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(14, 34, 82, 0.12);
}

.ubVouchers .single {
  padding: 18px 22px;
  display: flex;
  flex-direction: row;
  background: #f8fbff;
  border: 1px solid #e2eaf6;
  align-items: center;
  margin-bottom: 14px;
  border-radius: 18px;
  position: relative;
  gap: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ubVouchers .single:hover {
  transform: translateY(-2px);
  border-color: #c7d7f0;
  box-shadow: 0 14px 36px rgba(45, 76, 124, 0.08);
}

.ubVouchers .single:last-child {
  margin-bottom: 0;
}

.ubVouchers .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 92px;
  min-width: 92px;
  height: 92px;
  border-radius: 18px;
  background: #eef6ff;
  padding: 14px;
}

.ubVouchers .icon img {
  max-width: 100%;
  max-height: 100%;
}

.ubVouchers .text {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border-left: none;
}

.ubVouchers .header h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
  color: #111827;
}

.ubVouchers .desc h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.ubVouchers .functions {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border-radius: 999px;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ubVouchers .functions:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.16);
}

.ubVouchers .functions span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}

.ubVouchers .functions span:last-child svg {
  margin: 0;
}

form.woocommerce-form-loyalty.checkout_loyalty {
  display: block;
  border: 3px dashed rgba(84, 84, 84, .15);
  padding: 28px;
  width: 695px;
  margin: 0 auto 30px;
  text-align: center;
}

form.woocommerce-form-loyalty.checkout_loyalty p {
  margin: 0;
}

.woocommerce-form-loyalty-toggle .woocommerce-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.dn-checkout-benefits__text {
  flex: 1 1 260px;
}

.dn-checkout-benefits__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dn-checkout-benefits__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 500;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.dn-checkout-benefits__action:hover,
.dn-checkout-benefits__action:focus {
  transform: translateY(-1px);
}

.dn-checkout-benefits__action--loyalty {
  background: #eef6ff;
  color: #0b57a4;
  box-shadow: inset 0 0 0 1px rgba(11, 87, 164, .15);
  font-size: 14px;
}

.dn-checkout-benefits__action--voucher {
  background: #183153;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(24, 49, 83, .18);
  font-size: 14px;
}

.dn-checkout-benefits__action--voucher:hover,
.dn-checkout-benefits__action--voucher:focus {
  background: #22426f;
  color: #ffffff;
}

.datanuum-i18n-block--rtl .dn-checkout-benefits__actions {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.datanuum-i18n-block--rtl.woocommerce-form-loyalty-toggle .woocommerce-info,
.datanuum-i18n-block--rtl .woocommerce-form-loyalty-toggle .woocommerce-info {
  flex-direction: row;
  text-align: right;
}

.datanuum-i18n-block--rtl .dn-checkout-benefits__text {
  text-align: right;
}

.datanuum-i18n-block--rtl .dn-checkout-benefits__action--voucher {
  order: 1;
}

.datanuum-i18n-block--rtl .dn-checkout-benefits__action--loyalty {
  order: 2;
}

.flex.grow.first>*:first-child {
  flex-grow: 1;
}

form.woocommerce-form-loyalty.checkout_loyalty input {
  line-height: 36px;
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 15px;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
}

form.woocommerce-form-loyalty.checkout_loyalty input {
  float: left;
  width: 74%;
  margin-right: 2%;
}

form.woocommerce-form-loyalty.checkout_loyalty button {
  float: right;
  width: 25%;
}

@media only screen and (max-width: 959px) {
  form.woocommerce-form-loyalty.checkout_loyalty {
    width: 100%;
    margin-bottom: 20px;
  }

  form.woocommerce-form-loyalty.checkout_loyalty .flex {
    flex-direction: column;
    align-items: center;
  }

  form.woocommerce-form-loyalty.checkout_loyalty input {
    width: 100%;
    margin-right: 0%;
  }

  form.woocommerce-form-loyalty.checkout_loyalty button {
    width: 100%;
    margin: 15px 0 0 0;
  }

  .woocommerce-form-loyalty-toggle .woocommerce-info {
    align-items: flex-start;
  }
}