/* Applied gift cards section */
.pwgc-applied-gift-cards {
  padding-bottom: 16px;
}

.pwgc-applied-gift-cards-title {
  font-weight: 600;
}

.pwgc-applied-gift-cards-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pwgc-applied-gift-cards-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 4px;
}

.pwgc-gift-card-balance {
  font-size: 0.9em;
  opacity: 0.8;
}

.pwgc-applied-gift-cards-right {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Input + button layout */
#pwgc-redeem-gift-card-number {
  width: 100%;
}

.pwgc-apply-gift-card-button {
  width: 100%;
  margin-top: 4px;
}

/* Remove button styling */
.pwgc-remove-gift-card {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0 4px;
  font-size: 1.1em;
  line-height: 1;
}

.pwgc-remove-gift-card:disabled {
  cursor: default;
}

.wp-block-woocommerce-checkout #pwgc-redeem-gift-card-container {
    padding: 16px;
}


/* ---- Edición Genhum: formulario y resumen con el estilo de la tienda ---- */

#pwgc-redeem-gift-card-container .pwgc-applied-gift-cards { padding-bottom: 12px; }
#pwgc-redeem-gift-card-container .pwgc-applied-gift-cards-title { margin-bottom: 6px; }
#pwgc-redeem-gift-card-container .pwgc-applied-gift-cards-item { padding: 8px 10px; margin-top: 6px; background: #faf8e8; border: 1px solid #e6e1c3; border-radius: 6px; }
#pwgc-redeem-gift-card-container .pwgc-gift-card-number { font-weight: 600; letter-spacing: .03em; }
#pwgc-redeem-gift-card-container .pwgc-gift-card-amount { font-weight: 600; color: var(--pwgc-accent-dark, #8f7d00); }
#pwgc-redeem-gift-card-container .pwgc-remove-gift-card { color: #a00; margin-left: 4px; }

#pwgc-redeem-gift-card-container #pwgc-redeem-gift-card-form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.1); }
#pwgc-redeem-gift-card-container #pwgc-redeem-gift-card-form label { font-weight: 600; }
#pwgc-redeem-gift-card-container #pwgc-redeem-gift-card-number {
    box-sizing: border-box; width: 100%; margin: 0; padding: .75em 1em;
    border: 1px solid #c9c4a0; border-radius: 6px; background: #fff; color: inherit;
    font: inherit; letter-spacing: .03em;
}
#pwgc-redeem-gift-card-container #pwgc-redeem-gift-card-number::placeholder { color: #8a8a8a; letter-spacing: 0; }
#pwgc-redeem-gift-card-container #pwgc-redeem-gift-card-number:focus { outline: none; border-color: var(--pwgc-accent, #b09a00); box-shadow: 0 0 0 3px rgba(176,154,0,.2); }
#pwgc-redeem-gift-card-container .pwgc-apply-gift-card-button {
    width: 100%; margin: 0; padding: .75em 1em; border: 1px solid var(--pwgc-accent, #b09a00) !important; border-radius: 6px;
    background: var(--pwgc-accent, #b09a00) !important; color: #fff !important; font: inherit; font-weight: 600; cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
#pwgc-redeem-gift-card-container .pwgc-apply-gift-card-button:hover:not(:disabled) { background: var(--pwgc-accent-dark, #8f7d00) !important; border-color: var(--pwgc-accent-dark, #8f7d00) !important; }
#pwgc-redeem-gift-card-container .pwgc-apply-gift-card-button:disabled { opacity: .6; cursor: default; }
