:root {
    --simplyin-primary: var(--simplyin-accent-color, #2d40f6);
    --simplyin-primary-light: #60a5fa;
    --simplyin-primary-dark: #2563eb;
    --simplyin-surface: #fff;
    --simplyin-surface-alt: #f8fafc;
    --simplyin-border: #e5e7eb;
    --simplyin-border-light: #f3f4f6;
    --simplyin-text: #1f2937;
    --simplyin-text-muted: #6b7280;
    --simplyin-shadow: 0 1px 3px rgba(0,0,0,.1);
    --simplyin-radius: 8px;
    --simplyin-transition: all 0.2s ease
}

.simplyin-payment-option-item {
    background: var(--simplyin-surface);
    border: 1px solid var(--simplyin-border) !important;
    border-radius: var(--simplyin-radius);
    margin-bottom: 0;
    padding: 0;
    transition: var(--simplyin-transition);
}

.simplyin-payment-option-item:has(input[type="radio"]:checked) {
     border: 1px solid var(--simplyin-primary-light) !important;
}

label.simplyin-payment-option-label:hover {    background: var(--simplyin-surface-alt);
    border-radius: var(--simplyin-radius);
}

label.simplyin-payment-option-label {
    margin: 0;
    align-items: center;
    color: var(--simplyin-text);
    cursor: pointer;
    display: flex !important;
    font-size: 1em;
    font-weight: 500;
    gap: 12px;
    min-height: 56px;
    padding: 16px;
    text-indent: 0;
    transition: var(--simplyin-transition);
    user-select: none;
    width: 100%;
}

.simplyin-add-card-label input {
    display: none;
}

#simplyin-payment .card-field {
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
}

#simplyin-payment .form-group label {
    color: #374151;
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
}

/* The card form sits inside the shop's own order card, which is far wider than the checkout
 * column it was designed for - left alone the number field stretched the full width of the
 * page. Constrain it to a readable measure and centre it; expiry and CVV already sit side by
 * side underneath, via .form-row-simplyin below. The labels get an explicit alignment because
 * order-page themes commonly centre or right-align text in this region, which left "Card
 * number" floating away from the field it names. */
#simplyin-payment #card-form-wrapper {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

#simplyin-payment #card-form-wrapper label,
#simplyin-payment #card-form-wrapper .form-group {
    text-align: left;
}
/* Same rule simplyin_front.css carries for the checkout paywall (expiry date + CVV side by side
 * instead of stacked full-width) - restated here for the same reason the rules above it are:
 * this stylesheet is the curated subset an order page loads instead of the whole front bundle. */
.form-row-simplyin {
    display: flex;
    gap: 15px;
}

#simplyin-payment .simplyin-add-card-iframe-container,
#simplyin-payment .simplyin-blik-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 12px;
    transition: all var(--simplyin-transition);
    box-sizing: border-box;
}

#simplyin-payment .simplyin-add-card-iframe-container {
    display: none;
}

.simplyin-payment-option-item:has(input[type="radio"]:checked)
.simplyin-add-card-iframe-container,
.simplyin-payment-option-item:has(input[type="radio"]:checked)
.simplyin-blik-container
{
    display: block !important;
}

#simplyin-payment .card-field .ccIframe-component {
    font-size: 14px;
    padding: 10px 12px
}

#simplyin-payment .simplyin-payment-option-label img {
    align-items: center;
    display: flex;
    height: 32px;
    justify-content: center;
    max-width: 48px;
    object-fit: contain;
}

#simplyin-payment .simplyin-blik-label {
    color: var(--simplyin-text);
    display: block !important;
    font-size: .9em;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: center;
}

#simplyin-payment ul.simplyin-group-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#simplyin-payment .simplyin-blik-input-wrapper {
    box-sizing: border-box;
    overflow: hidden;
    transition: var(--simplyin-transition);
    width: 100%;
}

#simplyin-payment .simplyin-blik-inputs-grid {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 16px;
    margin-left: auto;
    margin-right: auto;
    max-width: 280px;
    width: 100%;
}

#simplyin-payment .simplyin-blik-digit-input {
    align-items: center;
    background: var(--simplyin-surface);
    border: 2px solid var(--simplyin-border);
    border-radius: var(--simplyin-radius);
    box-shadow: unset;
    box-sizing: border-box;
    color: var(--simplyin-text);
    display: flex
;
    flex-grow: 0;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    height: 48px;
    justify-content: center;
    max-width: 44px;
    outline: none;
    padding: 0 !important;
    text-align: center;
    transition: var(--simplyin-transition);
    width: calc(16.66667% - 6.66667px);
}

.js-additional-information:has(#simplyin-payment) {
    margin-left: 0 !important;
    margin-top: 0 !important;
}

#simplyin-payment .simplyin-blik-digit-input.valid {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

#simplyin-payment .simplyin-blik-digit-input:focus {
    border-color: var(--simplyin-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .15);
    position: relative;
    transform: scale(1.02);
    z-index: 1;
}

#simplyin-payment  .simplyin-blik-digit-input.error {
    animation: simplyin-shake .4s ease;
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.simplyin-blik-field-container .simplyin-blik-error::before {
    content: "⚠️";
    flex-shrink: 0;
    font-size: 1em;
}

 .simplyin-blik-field-container .simplyin-blik-error {
    align-items: center;
    color: #ef4444;
    display: flex;
    font-size: .85em;
    gap: 6px;
    justify-content: center;
    line-height: 1.4;
    margin-top: 12px;
    text-align: center;
}

#simplyin-payment .simplyin-add-card-iframe-container .field-error {
    align-items: center;
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    color: #dc2626;
    display: flex;
    font-size: 12px;
    font-weight: 500;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 12px;
}

.simplyin-add-card-iframe-container input#card-name {
    color: rgba(0, 0, 0, 0.8);
    font-family: Inter;
    font-size: 14px;
    background: white;
}

.simplyin-add-card-iframe-container input#card-name::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

#simplyin-payment .simplyin-add-card-iframe-container .field-error::before {
    color: rgb(239, 68, 68);
    content: "⚠";
    font-size: 14px;
    margin-right: 5px;
}

#simplyin-blik-status-modal.simplyin-blik-modal {
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-content {
    background: #fff;
    border: 2px solid var(--simplyin-accent-color, #2d40f6);
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 24px;
    position: relative;
    width: 100%
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-header {
    margin-bottom: 20px;
    text-align: center
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-header .simplyin-blik-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-status-logo {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-payment-method {
    background: #f8fafc;
    border: 2px solid var(--simplyin-accent-color, #2d40f6);
    border-radius: 8px;
    margin-bottom: 24px;
    padding: 16px
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-payment-method .simplyin-blik-method-info {
    align-items: center;
    display: flex;
    gap: 12px
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-payment-method .simplyin-blik-method-info input[type=radio] {
    accent-color: var(--simplyin-accent-color, #2d40f6);
    margin: 0
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-payment-method .simplyin-blik-method-info input[type=radio]:after,#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-payment-method .simplyin-blik-method-info input[type=radio]:before {
    display: none!important
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-payment-method .simplyin-blik-method-info .simplyin-blik-label {
    align-items: center;
    cursor: default;
    display: flex;
    flex: 1;
    gap: 8px;
    margin: 0
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-payment-method .simplyin-blik-method-info .simplyin-blik-label .simplyin-blik-logo {
    height: 20px;
    object-fit: contain;
    width: 32px
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-payment-method .simplyin-blik-method-info .simplyin-blik-label .simplyin-blik-text {
    color: #333;
    font-weight: 600
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-payment-method .simplyin-blik-method-info .simplyin-blik-checkmark {
    color: #22c55e;
    font-size: 18px;
    font-weight: 700
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-status-container {
    align-items: flex-start;
    display: none;
    gap: 16px;
    margin-bottom: 24px
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-status-container .simplyin-blik-icon {
    flex-shrink: 0
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-status-container .simplyin-blik-icon svg {
    display: block
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-status-container .simplyin-blik-status-text {
    flex: 1
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-status-container .simplyin-blik-status-text .simplyin-blik-main-message {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-status-container .simplyin-blik-status-text .simplyin-blik-sub-message {
    color: #666;
    font-size: 14px;
    line-height: 1.4
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-loader {
    text-align: center
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-loader .simplyin-blik-spinner {
    animation: spin 1s linear infinite;
    border: 3px solid #f3f4f6;
    border-radius: 50%;
    border-top-color: var(--simplyin-accent-color, #2d40f6);
    height: 32px;
    margin: 0 auto;
    width: 32px
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-loader.hidden {
    display: none
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-actions {
    text-align: center
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-actions .simplyin-blik-cancel-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 20px;
    transition: all .2s
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-actions .simplyin-blik-cancel-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-success .simplyin-blik-icon svg path {
    fill: #22c55e
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-success .simplyin-blik-sub-message {
    color: #22c55e
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-error .simplyin-blik-icon svg path {
    fill: #ef4444
}

#simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-error .simplyin-blik-sub-message {
    color: #ef4444
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(1turn)
    }
}

@media(max-width: 480px) {
    #simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-content {
        margin: 20px 0;
        padding: 20px
    }

    #simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-status-container {
        gap: 12px
    }

    #simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-status-text .simplyin-blik-main-message {
        font-size: 14px
    }

    #simplyin-blik-status-modal.simplyin-blik-modal .simplyin-blik-status-text .simplyin-blik-sub-message {
        font-size: 13px
    }
}

#simplyin-blik-status-modal #status-success
{
    display: none;
}
#simplyin-blik-status-modal #status-error
{
    display: none;
}

.simplyin-payment-option-item.select-method {
    animation: simplyin-shake .4s ease;
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.simplyin-card-name {
    display: none;
}

.simplyin-payment-provider-footer {
    padding-top: 12px;
}
.simplyin-payment-provider-footer p {
    font-size: 12px;
    justify-content: center;
    margin-bottom: 16px;
    text-align: center;
    width: 100%
}
.simplyin-payment-provider-footer>a {
    color: var(--simplyin-primary);
    text-decoration: none!important
}

.payment-options:has(input[data-module-name="simplyin"]) img {
  max-height: 20px !important;
}

.payment-option:has(input[data-module-name^="simplyin"]) label {
    display: flex;
    align-items: center;
}
.payment-option:has(input[data-module-name^="simplyin"]) label > img {
    max-height: 20px;
    margin-right: 5px;
}

/*
 * Pay-again surface on an order page.
 *
 * Additive by construction: a bordered card that sits beside the order's own detail, overlays
 * nothing and disables nothing, so the page stays fully usable whether the shopper uses this or
 * ignores it.
 *
 * Self-contained on purpose. The general front stylesheet holds the canonical .simplyin-btn and
 * .simplyin-logo-brand rules this card's button and logo would otherwise reuse, but it is the
 * module's largest asset and an order page needs a handful of rules out of it - so those few are
 * restated here, scoped to .simplyin-retry-*, rather than pulling the whole file onto every order
 * page. Deliberately scoped names, not redefinitions: both stylesheets load together on the
 * checkout, and redefining a shared class in the second one would silently reorder the cascade.
 *
 * The colour variables this and the paywall below it read are set INLINE on .simplyin-retry by the
 * template: the front-end bundle that normally sets them document-wide does not load on an order
 * page, and a :root declaration would resolve against the document's (unset) values rather than the
 * container's.
 */
.simplyin-retry {
    box-sizing: border-box;
    width: 100%;
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    text-align: left;
    color: var(--simplyin-font-color, #1e1e1e);
}

/*
 * Embedded on the order-confirmation page: the live-status widget's own card already
 * supplies the border, background and padding this surface stands up on its own on order-detail, so
 * none of that is repeated here - only the layout rules the copy/form still need survive.
 */
.simplyin-retry.simplyin-retry--embedded {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
}

.simplyin-retry-logo {
    display: block;
    max-height: 20px;
    width: auto;
    margin-bottom: 10px;
}

.simplyin-retry-copy {
    display: flex;
    flex-direction: column;
    /* Required, not cosmetic: a column flex container stretches its children on the cross axis. */
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    line-height: 1.3;
}

.simplyin-retry-title {
    font-weight: 700;
}

.simplyin-retry-subtitle {
    font-size: 0.85em;
    opacity: 0.75;
}

/*
 * The visible "this failed" marker beside the reason, for the one state that reads as a failure -
 * the icon that used to sit here on its own was dropped when this surface got embedded into the
 * order-confirmation status card (see payment_retry.tpl), leaving no visual sign at all next to the
 * sentence. Reuses the same red already established for .simplyin-retry-error on this card, rather
 * than a third shade of the same colour.
 *
 * .simplyin-retry-subtitle-with-badge/-reason: opacity creates its own compositing layer, so the
 * badge's own opacity cannot "undo" the 0.75 its .simplyin-retry-subtitle parent would otherwise
 * apply to it - the badge would render faded regardless, undermining the whole point of a marker
 * meant to stand out. The parent is reset to fully opaque for this one usage and the fade moves to
 * just the reason text, rather than touching .simplyin-retry-subtitle itself and fading every other
 * plain-text usage of it on this card along with it.
 */
.simplyin-retry-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: #fdecec;
    color: #b3261e;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    vertical-align: middle;
}

.simplyin-retry-subtitle-with-badge {
    opacity: 1;
}

.simplyin-retry-reason {
    opacity: 0.75;
}

.simplyin-retry-error {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 6px;
    background-color: #fdecec;
    color: #b3261e;
    font-size: 0.85em;
}

.simplyin-retry-form {
    margin-top: 12px;
}

.simplyin-retry-button {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background-color: var(--simplyin-primary);
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.simplyin-retry-button:disabled {
    cursor: progress;
    opacity: 0.6;
}

@media (max-width: 575px) {
    .simplyin-retry-button {
        width: 100%;
    }
}
