/* Gift Certificate Form
   Mirrors .buy-in-one-click-form-on-product style from custom-variations-v2.css */

.vloria-gift-certificate-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Amount field sits above the phone+button row */
.vloria-gift-certificate-wrap .gift-cert-amount-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.vloria-gift-certificate-wrap input[type="number"],
.vloria-gift-certificate-wrap input[type="tel"] {
  padding: 12px;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  border: 1px solid #9196a8;
  border-radius: 0 !important;
  outline: 0 !important;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* Remove number spinner arrows */
.vloria-gift-certificate-wrap input[type="number"]::-webkit-inner-spin-button,
.vloria-gift-certificate-wrap input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.vloria-gift-certificate-wrap input[type="number"] {
  -moz-appearance: textfield;
}

/* Error highlight */
.vloria-gift-certificate-wrap input.vloria-gift-input--error {
  border-color: #b40100;
}

.vloria-gift-certificate-wrap .gift-cert-error {
  display: none;
  color: #b40100;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 160%;
  padding: 4px 0 0;
  text-align: center;
}

/* Phone + button row — same flex pattern as .block-input */
.vloria-gift-certificate-wrap .block-input {
  display: flex;
  flex-direction: row;
}

.vloria-gift-certificate-wrap .block-input input[type="tel"] {
  flex: 1;
}

/* Button — identical to #buy-in-one-click */
.vloria-gift-certificate-wrap #vloria-gift-submit {
  position: relative;
  outline: none;
  width: fit-content;
  white-space: nowrap;
  padding: 15px 15px 12px 15px;

  background-color: #101011;
  border-style: solid;
  border-width: 1px 1px 1px 0;
  border-color: #101011;
  border-radius: 0;

  color: #fff;
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;

  transition: background-color 0.3s;
}

.vloria-gift-certificate-wrap #vloria-gift-submit:hover {
  background-color: transparent;
  color: #101011;
}

.vloria-gift-certificate-wrap #vloria-gift-submit:disabled {
  background-color: #9196a8 !important;
  border-color: #9196a8 !important;
  color: #fff !important;
  cursor: not-allowed;
}

/* Note spans — identical to .note-desktop / .note-mobile */
.vloria-gift-certificate-wrap .note-desktop,
.vloria-gift-certificate-wrap .note-mobile {
  text-align: center;
  color: #36383d;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  transition: all ease-in-out 0.3s;
  padding: 8px 0;
}

.vloria-gift-certificate-wrap .note-mobile {
  display: none;
}

.vloria-gift-certificate-wrap .note-desktop.success-message,
.vloria-gift-certificate-wrap .note-mobile.success-message {
  color: #fff;
  background-color: rgba(19, 111, 99, 1);
}

@media only screen and (max-width: 1024px) {
  .vloria-gift-certificate-wrap .note-desktop {
    display: none;
  }

  .vloria-gift-certificate-wrap .note-mobile {
    display: unset;
  }

  .vloria-gift-certificate-wrap .block-input {
    flex-direction: column;
  }

  .vloria-gift-certificate-wrap #vloria-gift-submit {
    width: auto;
    border-width: 1px;
  }
}
