/* WC FBT — Checkout styles */

.wc-fbt-checkout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14px;
}

.wc-fbt-checkout__desc {
    margin: 0;
    color: #555;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Bank info — original design
   -------------------------------------------------------------------------- */
.wc-fbt-bank-info {
    background: #faf7f0;
    border: 1px solid #e8dfc8;
    border-radius: 5px;
    padding: 16px 20px;
}

.wc-fbt-bank-info h4 {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #5a4a2a;
}

.wc-fbt-bank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wc-fbt-bank-table th,
.wc-fbt-bank-table td {
    padding: 5px 8px;
    text-align: left;
    border-bottom: 1px solid #ede4d0;
}

.wc-fbt-bank-table th {
    width: 42%;
    color: #7a6a4a;
    font-weight: 600;
}

.wc-fbt-bank-table td {
    color: #333;
    font-weight: 500;
}

.wc-fbt-bank-table tr:last-child th,
.wc-fbt-bank-table tr:last-child td {
    border-bottom: none;
}

.wc-fbt-instructions {
    margin: 12px 0 0;
    font-size: 13px;
    color: #777;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Upload zone
   -------------------------------------------------------------------------- */
.wc-fbt-upload {
    position: relative;
    border: 2px dashed #c8bfb4;
    border-radius: 6px;
    background: #fafaf9;
    transition: border-color .18s, background .18s;
}

.wc-fbt-upload:hover,
.wc-fbt-upload--drag {
    border-color: #8a7a6a;
    background: #f5f2ee;
}

.wc-fbt-upload--error {
    border-color: #b94040;
    background: #fdf8f8;
}

.wc-fbt-upload__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.wc-fbt-upload__input:disabled { cursor: not-allowed; }

.wc-fbt-upload__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 90px;
    padding: 0 16px;
    text-align: center;
    pointer-events: none;
    user-select: none;
    cursor: pointer;
    box-sizing: border-box;
}

.wc-fbt-upload__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    height: 26px;
    flex-shrink: 0;
}

.wc-fbt-upload__primary {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    height: 20px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.wc-fbt-upload__hint {
    font-size: 11px;
    color: #a09488;
    height: 16px;
    line-height: 16px;
}

.wc-fbt-upload__error {
    font-size: 11px;
    color: #b94040;
    font-weight: 500;
    height: 16px;
    line-height: 16px;
}

.wc-fbt-upload--done {
    border-color: #7a9a6a;
    background: #f6faf4;
}

.wc-fbt-upload--done .wc-fbt-upload__primary {
    color: #3a6a2a;
}

/* Spinner */
.wc-fbt-upload__spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #d8d0c4;
    border-top-color: #8a7a6a;
    border-radius: 50%;
    animation: wc-fbt-spin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes wc-fbt-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   File preview
   -------------------------------------------------------------------------- */
.wc-fbt-preview-img-wrap {
    margin-top: 4px;
}

.wc-fbt-preview-img {
    max-width: 100%;
    max-height: 240px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
}

.wc-fbt-preview-pdf {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
}

.wc-fbt-pdf-icon { font-size: 22px; line-height: 1; }
