.woocommerce {
  /* Common styles */
  /* Focus styles */
}

.woocommerce .giftcard-font-weight-600 {
  font-weight: 600;
}

.woocommerce .giftcard-margin-bottom-20 {
  margin-bottom: 20px;
}

.woocommerce .giftcard-margin-bottom-14 {
  margin-bottom: 14px;
}

.woocommerce .giftcard-margin-bottom-15 {
  margin-bottom: 15px;
}

.woocommerce .giftcard-margin-bottom-8 {
  margin-bottom: 8px;
}

.woocommerce .giftcard-margin-bottom-5 {
  margin-bottom: 5px;
}

.woocommerce .giftcard-margin-bottom-4 {
  margin-bottom: 4px;
}

.woocommerce .giftcard-margin-top-5 {
  margin-top: 5px;
}

.woocommerce .giftcard-margin-top-4 {
  margin-top: 4px;
}

.woocommerce .giftcard-label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.woocommerce .giftcard-label-margin-bottom-6 {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.woocommerce .giftcard-input {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.woocommerce .giftcard-input-custom-price {
  width: 160px;
  padding: 9px 12px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.woocommerce .giftcard-select {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

.woocommerce .giftcard-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  resize: vertical;
}

.woocommerce .giftcard-panel {
  display: none;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 14px;
  transition: opacity 0.2s ease;
}

.woocommerce .giftcard-info-notice {
  background: #f0f8f0;
  border-left: 4px solid #4caf50;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 4px;
  font-size: 14px;
  color: #2e7d32;
}

.woocommerce .giftcard-required {
  color: #c0392b;
}

.woocommerce .giftcard-small {
  color: #777;
  display: block;
  text-align: right;
}

.woocommerce .giftcard-small-left {
  color: #777;
  margin-top: 4px;
  display: block;
}

.woocommerce .giftcard-denomination-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.woocommerce .giftcard-denomination-btn {
  padding: 10px 18px;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}

.woocommerce .giftcard-denomination-btn.selected {
  border-color: #2e7d32;
  background: #f0f8f0;
  color: #2e7d32;
}

.woocommerce .giftcard-denomination-btn:hover {
  border-color: #4caf50;
  background: #f9fff9;
}

.woocommerce .giftcard-denomination-btn small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #666;
}

.woocommerce .giftcard-custom-price-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

.woocommerce .giftcard-currency-symbol {
  font-size: 18px;
  font-weight: 600;
  color: #555;
}

.woocommerce #giftcard_self_email:focus,
.woocommerce #giftcard_recipient_email:focus,
.woocommerce #giftcard_from_name:focus,
.woocommerce #giftcard_personal_message:focus,
.woocommerce #giftcard_delivery_date:focus,
.woocommerce #giftcard_custom_price:focus {
  border-color: #4caf50;
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.woocommerce #giftcard_gift_type:focus {
  border-color: #4caf50;
  outline: none;
}

.woocommerce .wc-giftcard-dashboard {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

.woocommerce .wc-giftcard-card {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.woocommerce .wc-giftcard-scheduled {
  border-color: #90caf9;
  background: #f8fbff;
}

.woocommerce .gc-scheduled-badge {
  display: inline-block;
  background: #1565c0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.woocommerce .gc-header {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.woocommerce .gc-code-section {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.woocommerce .gc-code {
  margin: 0;
  marginb-bottom: 0;
  font-size: 22px;
  font-weight: 700;
  color: #2e7d32;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

.woocommerce .gc-copy-btn {
  padding: 8px 15px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.woocommerce .gc-copy-btn .icon-pre svg,
.woocommerce .gc-copy-btn .icon-post svg {
  width: 1.25em;
  height: 1.25em;
}

.woocommerce .gc-copy-btn:hover {
  background: #45a049;
}

.woocommerce .gc-balance-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
}

.woocommerce .gc-balance-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.woocommerce .gc-label {
  font-weight: 600;
  color: #555;
}

.woocommerce .gc-amount {
  font-size: 18px;
  font-weight: 700;
  color: #2e7d32;
}

.woocommerce .gc-amount-current {
  font-size: 18px;
  font-weight: 700;
  color: #388e3c;
}

.woocommerce .gc-progress {
  grid-column: 1/-1;
}

.woocommerce .gc-progress-bar {
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}

.woocommerce .gc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #45a049);
  transition: width 0.3s ease;
}

.woocommerce .gc-progress-text {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.woocommerce .gc-history-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.woocommerce .gc-history-section h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
}

.woocommerce .gc-history-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.woocommerce .gc-history-table thead {
  background: #f5f5f5;
}

.woocommerce .gc-history-table th,
.woocommerce .gc-history-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.woocommerce .gc-history-table th {
  font-weight: 600;
  color: #333;
}

.woocommerce .gc-history-table tbody tr:hover {
  background: #fafafa;
}

.woocommerce .gc-history-table a {
  color: #4caf50;
  text-decoration: none;
}

.woocommerce .gc-history-table a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .woocommerce .gc-balance-section {
    grid-template-columns: 1fr;
  }

  .woocommerce .gc-code-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .woocommerce .gc-history-table {
    font-size: 12px;
  }

  .woocommerce .gc-history-table th,
  .woocommerce .gc-history-table td {
    padding: 8px;
  }
}
