.shopwiredpay-inline {
    margin-top: 16px;
    width: 100%;
}

.shopwiredpay-inline__status {
    margin: 0 0 10px;
    color: #50575e;
    font-size: 14px;
}

.shopwiredpay-inline__frame {
    display: block;
    width: 100%;
    height: 760px;
    min-height: 260px;
    border: 0;
    background: #fff;
    transition: height 160ms ease;
}

body.shopwiredpay-inline-active #place_order,
body.shopwiredpay-inline-active button[name="woocommerce_pay"],
body.shopwiredpay-inline-active .wc-block-components-checkout-place-order-button {
    display: none !important;
}

.shopwiredpay-inline.is-loaded .shopwiredpay-inline__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shopwiredpay-inline.is-terminal .shopwiredpay-inline__frame {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .shopwiredpay-inline__frame { transition: none; }
}

.shopwiredpay-blocks-inline {
    width: 100%;
    margin: 0;
}

.shopwiredpay-blocks-inline [hidden] {
    display: none !important;
}

.shopwiredpay-blocks-refreshing.is-initial {
    position: relative;
    min-height: 150px;
}

.shopwiredpay-blocks-description {
    margin: 0 0 14px;
    color: inherit;
}

.shopwiredpay-blocks-frame {
    display: block;
    width: 100%;
    height: 210px;
    min-height: 150px;
    margin: 0;
    border: 0;
    background: transparent;
    transition: height 160ms ease;
}

.shopwiredpay-blocks-frame-wrap {
    position: relative;
    width: 100%;
    margin: 0;
}

.shopwiredpay-blocks-frame-wrap.is-refreshing .shopwiredpay-blocks-frame {
    pointer-events: none;
    visibility: hidden;
}

.shopwiredpay-blocks-refreshing {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    background: #fff;
    color: #50575e;
    font-size: 13px;
    line-height: 1.2;
}

.shopwiredpay-blocks-refreshing__spinner {
    width: 13px;
    height: 13px;
    border: 2px solid #c3c4c7;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: shopwiredpay-inline-spin .7s linear infinite;
}

.shopwiredpay-blocks-reselect {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f5f7f8;
    font-size: 14px;
    line-height: 1.4;
}

.shopwiredpay-blocks-reselect p {
    margin: 0;
}

@keyframes shopwiredpay-inline-spin {
    to { transform: rotate(360deg); }
}

.shopwiredpay-blocks-error {
    margin: 0;
    padding: 13px 14px;
    border: 1px solid #cc1818;
    border-radius: 7px;
    background: #fff5f5;
    color: #7a1010;
    font-size: 14px;
}

.shopwiredpay-blocks-error p {
    margin: 0 0 10px;
}

.shopwiredpay-blocks-retry {
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 480px) {
    .shopwiredpay-blocks-description { margin-bottom: 12px; }
    .shopwiredpay-blocks-frame { min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
    .shopwiredpay-blocks-frame { transition: none; }
    .shopwiredpay-blocks-refreshing__spinner { animation: none; }
}
