﻿/* Global hidden class for app status visibility control */
.xco-hidden {
  display: none !important;
}

.gift-card-standard {
  margin: 0 auto;
  max-width: 600px;
  padding: 20px;
}

.gift-card-standard__title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
}

.gift-card-standard__container {
  border: 1px solid;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gift-card-standard__form {
  margin-bottom: 20px;
}

.gift-card-standard__label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.gift-card-standard__input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.gift-card-standard__input {
  flex: 1;
  padding: 10px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 16px;
}

.gift-card-standard__button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.gift-card-standard__button:hover {
  opacity: 0.9;
}

.gift-card-standard__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gift-card-standard__error {
  color: #dc3545;
  margin-top: 10px;
  font-size: 14px;
}

.gift-card-standard__card {
  border: 1px solid;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gift-card-standard__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.gift-card-standard__balance {
  margin-bottom: 20px;
}

.gift-card-standard__balance p {
  margin: 5px 0;
  font-size: 16px;
}

.gift-card-standard__svg-container {
  margin-top: 20px;
}

.gift-card-standard__svg-container svg {
  max-width: 200px;
  height: auto;
}

/* Loading spinner */
.button-loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

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

.gift-card-standard__button.loading .btn-text {
  display: none;
}

.gift-card-standard__button.loading .button-loading-spinner {
  display: inline-block;
}