/**
 * Styles the PayConnect payment panel on the WooCommerce cart page.
 *
 * This Version A stylesheet keeps the layout clean, compact, and stable while
 * leaving room for a richer PayConnect visual pass later.
 */

.pcwc-panel {
    margin-top: 20px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.pcwc-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.pcwc-panel__title {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.2;
}

.pcwc-panel__subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.pcwc-panel__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pcwc-lead {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 14px;
}

.pcwc-grid {
    display: grid;
    gap: 14px;
}

.pcwc-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
}

.pcwc-field--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pcwc-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
}

.pcwc-select {
    appearance: auto;
}

.pcwc-payment-element {
    margin-top: 18px;
    margin-bottom: 16px;
}

.pcwc-form.is-hidden {
    display: none;
}

.pcwc-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    font-size: 16px;
}

.pcwc-message {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
}

.pcwc-message.is-info {
    display: block;
    background: #eff6ff;
    color: #1d4ed8;
}

.pcwc-message.is-error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
}

.pcwc-alert {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
}

.pcwc-alert--error {
    background: #fef2f2;
    color: #b91c1c;
}

.pcwc-skeleton {
    margin-top: 18px;
}

.pcwc-skeleton__line {
    height: 18px;
    border-radius: 999px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%);
    background-size: 400% 100%;
    animation: pcwcShimmer 1.4s ease infinite;
}

.pcwc-skeleton__line--lg {
    height: 48px;
}

@keyframes pcwcShimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

@media (max-width: 767px) {
    .pcwc-panel__header,
    .pcwc-field--split {
        grid-template-columns: 1fr;
        display: grid;
    }

    .pcwc-panel {
        padding: 18px;
    }
}
