/* FastPay WooCommerce - Checkout Styles */

.woocommerce-error {
  color: #dc3545 !important;
}

.woocommerce-error::before {
  display: none !important;
}

.fastpay-payment-form {
  padding: 20px 0 10px 0;
}

#payment .wc_payment_methods li.wc_payment_method.payment_method_fastpay .payment_box.payment_method_fastpay label {
  cursor: default !important;
}

#payment .wc_payment_methods li.wc_payment_method.payment_method_fastpay .payment_box.payment_method_fastpay input {
  cursor: text !important;
}

.payment_box.payment_method_fastpay {
  background-color: #ffffff !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-radius: 12px !important;
}

.payment_box.payment_method_fastpay::before {
  border: 1em solid #ffffff !important;
  border-top-color: #0000 !important;
  border-left-color: #0000 !important;
  border-right-color: #0000 !important;
}

#payment > ul > li.wc_payment_method.payment_method_fastpay {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.fastpay-payment-form .form-row {
  margin-bottom: 15px;
}

.fastpay-payment-form label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  background-color: transparent !important;
  padding: 0 !important;
}

#fastpay_card_installments {
  width: 100% !important;
}

.fastpay-payment-form .required {
  color: #dc3545;
}

.fastpay-payment-form input {
  width: 100%;
  height: auto;
  font-size: 16px;
  display: block !important;
  background-color: #ffffff !important;
}

.fastpay-payment-form input[type="text"],
.fastpay-payment-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.fastpay-payment-form input[type="text"]:focus,
.fastpay-payment-form select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.fastpay-payment-form input[type="text"].error {
  border-color: #dc3545;
}

.fastpay-payment-form input[type="text"].error:focus {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.fastpay-payment-form .form-row-first {
  width: 48%;
  float: left;
}

.fastpay-payment-form .form-row-last {
  width: 48%;
  float: right;
}

.fastpay-payment-form .clear {
  clear: both;
}

/* Card Brand Icons */
#fastpay_card_number {
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 40px auto;
  padding-right: 55px;
  background-image: url("../images/icons/brands/generic.svg");
}

#fastpay_card_number.visa {
  background-image: url("../images/icons/brands/visa.svg");
}

#fastpay_card_number.mastercard {
  background-image: url("../images/icons/brands/mastercard.svg");
}

#fastpay_card_number.amex {
  background-image: url("../images/icons/brands/amex.svg");
}

#fastpay_card_number.elo {
  background-image: url("../images/icons/brands/elo.svg");
}

/* Responsive */
@media (max-width: 768px) {
  .fastpay-payment-form .form-row-first,
  .fastpay-payment-form .form-row-last {
    width: 100%;
    float: none;
  }
}

/* Loading state */
.fastpay-payment-form.processing {
  opacity: 0.6;
  pointer-events: none;
}

/* Error messages */
.woocommerce-error,
.woocommerce-message {
  margin-bottom: 20px;
}

/* FastPay specific error messages */
.woocommerce-error strong,
.woocommerce-message strong {
  display: block;
  margin-top: 5px;
  color: inherit;
}

.woocommerce-error {
  background-color: #fee;
  border-left: 4px solid #dc3545;
  padding: 15px 20px;
  border-radius: 4px;
}

.woocommerce-error::before {
  content: "⚠ ";
  font-size: 18px;
  margin-right: 5px;
}

/* Success indicator */
.fastpay-payment-form input[type="text"].valid {
  border-color: #28a745;
}

/* CVV info */
#fastpay_card_cvv + .cvv-info {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
}
