/* 22 Peptides Manual Payments: checkout cards + payment panel */

/* Boxed payment method options at checkout */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 12px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:hover {
    border-color: #94a3b8;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked + label,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(input[type="radio"]:checked) {
    border-color: #00b8c9;
    box-shadow: 0 0 0 1px #00b8c9;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin: 0;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label img {
    height: 28px;
    width: auto;
    margin-left: auto;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box {
    background: transparent;
    padding: 8px 0 0;
    margin: 0;
    font-size: 14px;
    color: #475569;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box::before {
    display: none;
}

/* Save badge */
.p22-save-badge {
    display: inline-block;
    background: #00b8c9;
    color: #06333a;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Payment panel (thank you page, account, upload page, standalone) */
.p22-pay-panel {
    max-width: 560px;
    margin: 32px auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(10, 22, 51, .06);
}
.p22-pay-title {
    text-align: center;
    font-size: 22px;
    margin: 0 0 8px;
    color: #0a1633;
}
.p22-pay-amount-line {
    text-align: center;
    color: #475569;
    margin: 0 0 20px;
    font-size: 16px;
}
.p22-pay-card {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.p22-pay-sendto {
    font-weight: 700;
    font-size: 17px;
    color: #0a1633;
    margin-bottom: 10px;
}
.p22-pay-row {
    margin: 6px 0;
    font-size: 15px;
    color: #334155;
}
.p22-pay-k {
    color: #64748b;
}
.p22-pay-v {
    font-weight: 600;
    color: #0a1633;
    word-break: break-all;
}
.p22-pay-qr {
    margin: 16px auto 4px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(10, 22, 51, .08);
}
.p22-pay-qr img {
    display: block;
    width: 200px;
    height: 200px;
    max-width: 100%;
}
.p22-pay-memo {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 20px 0 0;
    text-align: center;
    font-size: 15px;
}
.p22-pay-deadline {
    margin: 12px 0 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* Upload box */
.p22-pay-upload {
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}
.p22-pay-upload h3 {
    font-size: 17px;
    margin: 0 0 12px;
    color: #0a1633;
}
.p22-upload-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.p22-file-label input[type="file"] {
    font-size: 14px;
}
.p22-upload-btn {
    background: #06333a;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.p22-upload-btn:hover {
    background: #0a4a54;
}
.p22-pay-ok {
    color: #15803d;
    font-weight: 600;
}
.p22-pay-err {
    color: #dc2626;
    font-weight: 600;
}
.p22-pay-alt {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
}

/* Standalone upload page */
body.p22-standalone {
    background: #f8fafc;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.p22-standalone-wrap {
    padding: 24px 16px 48px;
}

/* Mobile */
@media (max-width: 480px) {
    .p22-pay-panel {
        padding: 20px 16px;
        margin: 20px auto;
    }
    .p22-upload-form {
        flex-direction: column;
        align-items: stretch;
    }
    .p22-upload-btn {
        width: 100%;
    }
}

/* WooCommerce Blocks checkout */
.p22-block-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.p22-block-text {
    white-space: nowrap;
    font-weight: 600;
}
.p22-block-icon {
    height: 30px;
    width: 30px;
    flex-shrink: 0;
}
.p22-block-desc {
    font-size: 14px;
    color: #475569;
}
.p22-save-badge {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Card "coming soon" placeholder row (injected via JS, disabled) */
.p22-card-soon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 12px;
    background: #f8fafc;
    opacity: .7;
    cursor: not-allowed;
}
.p22-card-soon-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    background: #fff;
}
.p22-card-soon-icon {
    flex-shrink: 0;
    display: inline-flex;
}
.p22-card-soon-icon svg {
    display: block;
}
.p22-card-soon-text {
    white-space: nowrap;
    font-weight: 600;
    color: #334155;
}
.p22-card-soon-badge {
    margin-left: auto;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Checkout order summary rows: let the description shrink so the
   price + sale badge stay inside the card (fixes flex min-width overflow) */
.wc-block-components-order-summary-item__description {
    min-width: 0 !important;
}
.wc-block-components-order-summary-item__total-price {
    flex-shrink: 0 !important;
}

/* Checkout order summary: never break product names mid-word */
.wc-block-components-product-name,
.wc-block-components-order-summary-item__name,
.wc-block-components-order-summary-item__description {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
}
