/* =========================
   AADE / Invoice - Checkout only
   ========================= */

#wfacp-e-form .afm-hint-card{
  margin: 8px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

#wfacp-e-form .afm-hint-card .afm-hint-icon{
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
  opacity: .9;
}

/* Κλειδωμένα inputs */
#wfacp-e-form input.disabled-field,
#wfacp-e-form textarea.disabled-field{
  background-color: #f3f4f6 !important;
  color: #9ca3af9c !important;
  border-color: #e5e7eb !important;
}

#wfacp-e-form input.disabled-field,
#wfacp-e-form input.disabled-field:hover,
#wfacp-e-form input.disabled-field:focus{
  cursor: not-allowed !important;
  box-shadow: none !important;
  outline: 0 !important;
}

#wfacp-e-form .afm-locked label.wfacp-form-control-label{
  background-color: #f3f4f6 !important;
  color: #b4bcc8 !important;
}

#wfacp-e-form .afm-locked input{
  cursor: not-allowed;
  opacity: .92;
}

#wfacp-e-form .afm-locked input::placeholder{
  color: #a1a1aa;
}

/* Status */
#wfacp-e-form #afm_message{
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
}

#wfacp-e-form #afm_message.afm-success,
#wfacp-e-form .msg-ok{
  color: #15803d;
}

#wfacp-e-form #afm_message.afm-error,
#wfacp-e-form .msg-error{
  color: #d9534f;
}

/* Search button layout */
#wfacp-e-form .afm-with-btn{
  position: relative;
  width: 100%;
  display: block;
}

#wfacp-e-form .afm-with-btn > input.input-text{
  width: 100%;
  padding-right: 54px !important;
}

#wfacp-e-form #afm_search_btn.afm-search-btn{
  position: absolute;
  top: 1px;
  right: 1px;
  width: 46px;
  height: calc(100% - 2px);
  padding: 0;
  margin: 0;
  border: 0;
  border-left: 1px solid #d1d5db;
  border-radius: 0 4px 4px 0;
  background: #f9fafb !important;
  color: #111827 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  max-width: none;
  min-width: 46px;
  z-index: 3;
}

#wfacp-e-form #afm_search_btn.afm-search-btn:hover{
  background: #e5e7eb !important;
}

#wfacp-e-form #afm_search_btn.afm-search-btn:disabled{
  cursor: not-allowed;
  opacity: 1;
  background: #eef1f4 !important;
  color: #9aa4b2 !important;
  border-left-color: #dde3ea;
}

#wfacp-e-form #afm_search_btn.afm-search-btn.afm-loading-btn{
  cursor: wait;
  background: #e5edf7 !important;
  color: #0f172a !important;
}

#wfacp-e-form #afm_search_btn .afm-icon{
  font-size: 20px;
  line-height: 1;
}

#wfacp-e-form #b2bking_custom_field_20024_field label.wfacp-form-control-label{
  right: 60px !important;
}

/* Spinner */
#wfacp-e-form .spinner{
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 0;
  border: 2px solid rgba(15,23,42,0.18);
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* My account button - only if reused there */
#wfacp-e-form .ps-afm-btn{
  background-color: #888;
  color: #000;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 4px;
  cursor: not-allowed;
  font-weight: 600;
}

#wfacp-e-form .ps-afm-btn:is(:not([disabled])){
  cursor: pointer;
  background-color: #0073aa;
  color: #fff;
}

#wfacp-e-form .ps-afm-btn.state-ok{
  background-color: #5cb85c !important;
  color: #fff !important;
}

#wfacp-e-form .ps-afm-btn.state-error{
  background-color: #d9534f !important;
  color: #fff !important;
}

/* VAT 17 */
#wfacp-e-form #ps_vat17_choice_msg{
  display:block;
  margin-top:6px;
  font-size:13px;
  color:#6b7280;
}

#wfacp-e-form #ps_vat17_choice_msg.is-ok{
  color:#15803d;
}

#wfacp-e-form #ps_vat17_choice_msg.is-bad{
  color:#b91c1c;
}

/* =========================
   VAT 17 nicer UI
   ========================= */

#wfacp-e-form #ps_vat17_choice_wrap{
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid #dbe7d3;
  background: #f8fcf6;
  border-radius: 12px;
}

#wfacp-e-form #ps_vat17_choice_wrap label.checkbox{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}

#wfacp-e-form #ps_vat17_choice_wrap input[type="checkbox"]{
  flex: 0 0 auto;
}

#wfacp-e-form #ps_vat17_choice_msg{
  display: block;
  margin-top: 8px;
  margin-left: 31px;
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
}

#wfacp-e-form #ps_vat17_choice_msg.is-ok{
  color: #15803d;
}

#wfacp-e-form #ps_vat17_choice_msg.is-bad{
  color: #b91c1c;
}

/* =========================
   AADE / Invoice - My Account
   ========================= */

.ps-afm-btn{
  background-color: #888;
  color: #000;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 4px;
  cursor: not-allowed;
  font-weight: 600;
}

.ps-afm-btn:is(:not([disabled])){
  cursor: pointer;
  background-color: #0073aa;
  color: #fff;
}

.ps-afm-btn.state-ok{
  background-color: #5cb85c !important;
  color: #fff !important;
}

.ps-afm-btn.state-error{
  background-color: #d9534f !important;
  color: #fff !important;
}

#afm_message{
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
}

#afm_message.afm-success,
.msg-ok{
  color: #15803d;
}

#afm_message.afm-error,
.msg-error{
  color: #d9534f;
}

input.disabled-field,
textarea.disabled-field{
  background-color: #f3f4f6 !important;
  color: rgba(156,163,175,.75) !important;
  border-color: #e5e7eb !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  outline: 0 !important;
}
/* My Account AADE button */
#ps_afm_lookup_btn.ps-afm-btn{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto !important;
  max-width: none !important;
  min-width: 170px;
  white-space: nowrap;
  line-height: 1.2;
  flex: 0 0 auto !important;
  align-self: flex-start !important;
}

#ps_afm_lookup_btn.ps-afm-btn[aria-busy="true"]{
  display: inline-flex !important;
}

#ps_afm_lookup_btn .ps-afm-btn__text{
  display: inline-block;
}

#ps_afm_lookup_btn .spinner{
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}