﻿/* ═══════════════════════════════════════════════════════════════════════
   PCI Vault PCD Form — Global Style Overrides
   
   The PCI Vault Svelte PCD form renders with scoped styles (.svelte-*)
   that have high specificity. Blazor scoped CSS (::deep) cannot reliably
   override them. This global stylesheet uses !important on the real
   PCI Vault IDs/classes to ensure Figma-aligned styling.

   Figma tokens:
     Title  → Poppins SemiBold 20px, line-height 1.2, #000
     Label  → Nunito Sans SemiBold 16px, line-height 1.2, #262626
     Body   → Nunito Sans Regular 16px, line-height 1.3, #000
     Button → Poppins Medium 14px, line-height 20px, #000 on #32E696
     Input  → border #7B7B7B 1px, radius 4px, padding 8px 12px, min-h 40px
     Card   → bg #fff, border #e5e7eb, radius 8px, padding 24px,
              shadow 0 2px 4px -2px rgba(0,0,0,0.08)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Hide PCI Vault card graphic ── */
#pcivault-pcd-form-card-container {
    display: none !important;
}

#pcivault-pcd-form-pre-card-container {
    display: none !important;
}

/* ── Form container reset ── */
#pcivault-pcd-form-container.card-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    max-width: none !important;
    margin: 0 !important;
}

#pcivault-pcd-form-inner-container.card-form__inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding: 0 !important;
}

/* ── Input field wrappers (.card-input) ── */
.card-input.svelte-9iltyw {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Labels — Nunito Sans SemiBold 16px #262626 ── */
.card-input__label.svelte-9iltyw {
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #262626 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Text Inputs — white bg, #7B7B7B border, 4px radius ── */
.card-input__input.svelte-9iltyw {
    background: #fff !important;
    border: 1px solid #7B7B7B !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    min-height: 40px !important;
    height: auto !important;
    font-family: "Nunito Sans", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: #000 !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.card-input__input.svelte-9iltyw:focus {
    border-color: #32E696 !important;
    box-shadow: 0 0 0 1px #32E696 !important;
}

.card-input__input.svelte-9iltyw::placeholder {
    color: #999 !important;
}

/* ── Select dropdowns (Month / Year) ── */
.card-input__input.select.svelte-9iltyw {
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23262626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px 16px !important;
    padding-right: 36px !important;
    cursor: pointer !important;
}

/* ── Expiry / CVV row — side by side ── */
.card-form__row.svelte-9iltyw {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.card-form__row.svelte-9iltyw > .card-input {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

/* ── Select group (month + year side by side) ── */
.card-form__group.svelte-9iltyw {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
}

.card-form__group.svelte-9iltyw > select {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

/* ── Submit button — Figma: #32E696, 4px radius, Poppins Medium 14px/20px ── */
.card-form__button.svelte-9iltyw,
button.card-form__button.checkout-submit-btn {
    width: 100% !important;
    background: #32E696 !important;
    background-image: none !important;
    color: #000 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 8px !important;
    min-width: 120px !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: opacity 0.2s !important;
    margin: 0 !important;
    box-shadow: none !important;
    letter-spacing: normal !important;
    height: auto !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.card-form__button.svelte-9iltyw:hover,
button.card-form__button.checkout-submit-btn:hover {
    opacity: 0.9 !important;
    transform: none !important;
}

.card-form__button.svelte-9iltyw:disabled,
button.card-form__button.checkout-submit-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}
