.mocky-mpesa-panel,
.mocky-mpesa-panel *,
.mocky-mpesa-express-wrapper,
.mocky-mpesa-express-wrapper * {
    box-sizing: border-box;
}

.mocky-mpesa-panel {
    background: #ffffff;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    color: #101828;
    max-width: 540px;
    padding: 24px;
}

.mocky-mpesa-panel__head {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.mocky-mpesa-panel__brand {
    display: block;
    height: auto;
    max-height: 64px;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
}

.mocky-mpesa-panel__head strong {
    color: #111827;
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.mocky-mpesa-panel__head span {
    color: #4b5563;
    display: block;
    font-size: 14px;
    line-height: 1.55;
    margin-top: 5px;
}

.mocky-mpesa-field {
    display: block;
    margin-bottom: 16px;
}

.mocky-mpesa-field span,
.mocky-mpesa-amount span {
    color: #374151;
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 7px;
}

.mocky-mpesa-field input,
.mocky-mpesa-field select,
.mocky-mpesa-express-wrapper .input-text,
.mocky-mpesa-express-wrapper select {
    background: #ffffff;
    border: 1px solid #111827;
    border-radius: 4px;
    box-shadow: none;
    color: #111827;
    font-size: 15px;
    line-height: 1.4;
    min-height: 44px;
    padding: 10px 14px;
    width: 100%;
}

.mocky-mpesa-field input:focus,
.mocky-mpesa-field select:focus,
.mocky-mpesa-express-wrapper .input-text:focus,
.mocky-mpesa-express-wrapper select:focus {
    border-color: #167f3b;
    box-shadow: 0 0 0 3px rgba(22, 127, 59, 0.14);
    outline: 0;
}

.mocky-mpesa-amount {
    background: #f8fafc;
    border: 1px solid #d9dde3;
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 14px;
}

.mocky-mpesa-amount strong {
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
}

.mocky-mpesa-button,
.mocky-mpesa-express-wrapper .button,
.mocky-mpesa-express-wrapper .button.alt,
.mocky-mpesa-cart-button {
    align-items: center;
    background: #050505;
    border: 1px solid #050505;
    border-radius: 4px;
    box-shadow: none;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    padding: 12px 18px;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mocky-mpesa-button:hover,
.mocky-mpesa-button:focus,
.mocky-mpesa-express-wrapper .button:hover,
.mocky-mpesa-express-wrapper .button:focus,
.mocky-mpesa-express-wrapper .button.alt:hover,
.mocky-mpesa-express-wrapper .button.alt:focus,
.mocky-mpesa-cart-button:hover,
.mocky-mpesa-cart-button:focus {
    background: #167f3b;
    border-color: #167f3b;
    color: #ffffff;
}

.mocky-mpesa-button:focus-visible,
.mocky-mpesa-express-wrapper .button:focus-visible,
.mocky-mpesa-cart-button:focus-visible {
    outline: 3px solid rgba(22, 127, 59, 0.2);
    outline-offset: 2px;
}

.mocky-mpesa-button:disabled,
.mocky-mpesa-express-wrapper .button:disabled {
    background: #7a828f;
    border-color: #7a828f;
    cursor: not-allowed;
}

.mocky-mpesa-message,
.mocky-mpesa-notice {
    border-radius: 6px;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 16px;
    padding: 12px 14px;
}

.mocky-mpesa-message:empty {
    display: none;
}

.mocky-mpesa-message--pending,
.mocky-mpesa-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.mocky-mpesa-message--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #064e3b;
}

.mocky-mpesa-message--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #7f1d1d;
}

.mocky-mpesa-check-status-btn {
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    margin-left: 8px;
    padding: 4px 10px;
    vertical-align: middle;
}

.mocky-mpesa-check-status-btn:hover {
    background: rgba(0,0,0,0.06);
}

.mocky-mpesa-check-status-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.mocky-mpesa-order-status {
    display: block;
    margin: 24px 0;
}

.mocky-mpesa-blocks-payment {
    display: grid;
    gap: 12px;
}

.mocky-mpesa-blocks-payment__description {
    margin: 0;
}

.mocky-mpesa-blocks-payment__field {
    display: grid;
    gap: 7px;
}

.mocky-mpesa-blocks-payment__field span {
    font-weight: 700;
}

.mocky-mpesa-blocks-payment__field input {
    min-height: 44px;
    width: 100%;
}

.payment_method_mocky_mpesa img.gateway-icon,
.woocommerce-checkout .mocky_mpesa img {
    height: 28px !important;
    vertical-align: middle;
    width: auto !important;
}

.mocky-mpesa-blocks-label {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.mocky-mpesa-blocks-label__icon {
    flex-shrink: 0;
    height: 22px;
    width: auto;
}

.mocky-mpesa-express-wrapper {
    background: #ffffff;
    box-shadow: 0 0 0 100vmax #ffffff;
    color: #111827;
    clip-path: inset(0 -100vmax);
    font-family: inherit;
    left: 50%;
    margin: 0;
    max-width: none;
    padding: 34px 24px 64px;
    position: relative;
    transform: translateX(-50%);
    width: min(1180px, calc(100vw - 48px));
}

.mocky-mpesa-express-brand {
    margin: 0 auto 22px;
    max-width: 1120px;
}

.mocky-mpesa-express-brand__img {
    display: block;
    height: auto;
    max-height: 72px;
    max-width: 230px;
    object-fit: contain;
    object-position: left center;
}

.mocky-mpesa-steps {
    align-items: center;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 800;
    gap: 8px 11px;
    justify-content: center;
    letter-spacing: 0.06em;
    list-style: none;
    margin: 0 auto 40px;
    padding: 0;
    text-transform: uppercase;
}

.mocky-mpesa-step {
    color: #8a8f98;
    opacity: 1;
}

.mocky-mpesa-step a,
a.mocky-mpesa-step {
    color: #5b6472;
    text-decoration: none;
}

.mocky-mpesa-step.mocky-mpesa-step--done,
.mocky-mpesa-step.mocky-mpesa-step--active {
    color: #111827;
}

.mocky-mpesa-step.mocky-mpesa-step--done,
a.mocky-mpesa-step.mocky-mpesa-step--done {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.mocky-mpesa-step.mocky-mpesa-step--active {
    border-bottom: 2px solid currentColor;
    padding-bottom: 3px;
}

.mocky-mpesa-step-sep {
    color: #9ca3af;
    font-weight: 500;
}

.mocky-mpesa-express-layout {
    align-items: flex-start;
    display: grid;
    gap: 52px;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 auto;
    max-width: 1080px;
}

.mocky-mpesa-express-main {
    min-width: 0;
}

.mocky-mpesa-express-step {
    width: 100%;
}

.mocky-mpesa-step-heading {
    border-bottom: 1px solid #d7d0c7;
    color: #050505;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0 0 24px;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.mocky-mpesa-form-grid {
    column-gap: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mocky-mpesa-form-grid .form-row {
    float: none !important;
    margin: 0 0 18px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: auto !important;
}

.mocky-mpesa-form-grid .form-row label,
.mocky-mpesa-express-step label {
    color: #111827;
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 8px;
}

.mocky-mpesa-form-grid abbr.required {
    color: #e11d48;
    text-decoration: none;
}

.mocky-mpesa-form-grid .form-row-wide {
    grid-column: 1 / -1;
}

.mocky-mpesa-express-shipping {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
}

.mocky-mpesa-express-shipping .form-row {
    display: block;
    margin-bottom: 8px;
    width: 100% !important;
}

.mocky-mpesa-country-row strong {
    color: #050505;
    display: block;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
    margin-top: 2px;
}

.mocky-mpesa-express-shipping[hidden],
.mocky-mpesa-express-step[hidden] {
    display: none !important;
}

.mocky-mpesa-express-step .checkbox {
    align-items: center;
    cursor: pointer;
    display: inline-flex !important;
    gap: 10px;
    margin: 0;
}

.mocky-mpesa-express-step .checkbox input[type="checkbox"] {
    flex-shrink: 0;
    height: 16px;
    margin: 0;
    width: 16px;
}

.mocky-mpesa-express-step .form-row:last-of-type {
    margin-top: 4px;
}

.mocky-mpesa-step2-actions {
    align-items: center;
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
}

.mocky-mpesa-step2-actions .button {
    margin: 0 !important;
}

.mocky-mpesa-step2-actions .mocky-mpesa-prev-step {
    background: #ffffff;
    border-color: #cfd4dc;
    color: #111827;
}

.mocky-mpesa-step2-actions .mocky-mpesa-prev-step:hover,
.mocky-mpesa-step2-actions .mocky-mpesa-prev-step:focus {
    background: #f8fafc;
    border-color: #111827;
    color: #111827;
}

.mocky-mpesa-how-to-pay {
    background: #f7faf6;
    border: 1px solid #d9eadc;
    border-left: 4px solid #167f3b;
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 18px 20px 20px;
}

.mocky-mpesa-how-to-pay__header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mocky-mpesa-how-to-pay__logo {
    flex-shrink: 0;
    height: auto !important;
    max-height: 46px;
    max-width: 200px;
    object-fit: contain;
    width: auto !important;
}

.mocky-mpesa-how-to-pay__title {
    color: #6b4b2a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0;
    max-width: 72px;
    text-align: right;
    text-transform: uppercase;
}

.mocky-mpesa-how-to-pay ol {
    margin: 0;
    padding-left: 20px;
}

.mocky-mpesa-how-to-pay li {
    color: #374151;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 5px;
}

.mocky-mpesa-phone-confirm-row {
    align-items: center;
    background: #ffffff;
    border: 1px solid #111827;
    border-radius: 4px;
    display: flex !important;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 22px;
    padding: 14px 16px;
}

.mocky-mpesa-phone-confirm-label {
    color: #4b5563;
    font-size: 14px;
}

.mocky-mpesa-phone-display {
    color: #111827;
    flex: 1;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mocky-mpesa-change-link {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    white-space: nowrap;
}

.mocky-mpesa-change-link:hover {
    color: #167f3b;
}

.mocky-mpesa-express-aside {
    width: 100%;
}

.mocky-mpesa-express-summary {
    background: #f6f6f6;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    color: #111827;
    padding: 24px;
    position: relative;
}

.mocky-mpesa-express-summary::before {
    background: linear-gradient(135deg, #ffffff 8px, transparent 0) 0 0 / 16px 16px repeat-x,
        linear-gradient(225deg, #ffffff 8px, transparent 0) 0 0 / 16px 16px repeat-x;
    content: "";
    height: 16px;
    left: -1px;
    pointer-events: none;
    position: absolute;
    right: -1px;
    top: -8px;
}

.mocky-mpesa-express-summary h3 {
    border: 0;
    color: #050505;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 18px;
    padding: 0;
    text-align: center;
    text-transform: uppercase;
}

.mocky-mpesa-express-summary__head {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-bottom: 0;
    display: grid;
    font-size: 13px;
    font-weight: 900;
    grid-template-columns: minmax(0, 1fr) auto;
    letter-spacing: 0;
    padding: 12px 14px 8px;
    text-transform: uppercase;
}

.mocky-mpesa-express-summary__items {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: 0;
    list-style: none;
    margin: 0 0 16px;
    padding: 0 14px 14px;
}

.mocky-mpesa-express-summary__items li {
    align-items: flex-start;
    border-bottom: 1px solid #edf0f2;
    display: flex;
    font-size: 14px;
    gap: 14px;
    justify-content: space-between;
    line-height: 1.4;
    padding: 10px 0;
}

.mocky-mpesa-express-summary__items li:first-child {
    padding-top: 0;
}

.mocky-mpesa-express-summary__items li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mocky-mpesa-express-summary__name {
    display: block;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.mocky-mpesa-express-summary__product {
    display: block;
    flex: 1;
    min-width: 0;
}

.mocky-mpesa-express-summary__qty {
    display: block;
    font-weight: 900;
    margin-top: 2px;
}

.mocky-mpesa-express-summary__price {
    font-weight: 800;
    white-space: nowrap;
}

.mocky-mpesa-express-summary__row {
    align-items: center;
    display: flex;
    font-size: 14px;
    justify-content: space-between;
    padding: 11px 0;
}

.mocky-mpesa-express-summary__row + .mocky-mpesa-express-summary__row {
    border-top: 1px solid #e1e4e8;
}

.mocky-mpesa-express-summary__row--total {
    color: #050505;
    font-size: 20px;
    font-weight: 900;
    margin-top: 2px;
    padding-top: 16px;
}

@media (min-width: 782px) {
    .mocky-mpesa-express-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
    }

    .mocky-mpesa-express-aside {
        position: sticky;
        top: 32px;
    }
}

@media (min-width: 1120px) {
    .mocky-mpesa-express-layout {
        gap: 58px;
        grid-template-columns: minmax(0, 560px) minmax(0, 430px);
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .mocky-mpesa-panel {
        padding: 20px;
    }

    .mocky-mpesa-express-wrapper {
        left: auto;
        padding: 24px 14px 44px;
        transform: none;
        width: auto;
    }

    .mocky-mpesa-steps {
        font-size: 11px;
        justify-content: flex-start;
        margin-bottom: 28px;
    }

    .mocky-mpesa-form-grid {
        grid-template-columns: 1fr;
    }

    .mocky-mpesa-form-grid .form-row-first,
    .mocky-mpesa-form-grid .form-row-last {
        grid-column: 1 / -1;
    }

    .mocky-mpesa-step2-actions .button {
        width: 100%;
    }

    .mocky-mpesa-express-summary {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mocky-mpesa-button,
    .mocky-mpesa-express-wrapper .button,
    .mocky-mpesa-cart-button {
        transition: none;
    }
}
