: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;
}

#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 text color
}*/
.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;
    max-width: 400px;
    padding: 24px;
    position: relative;
    width: 90%
}

#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;
        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;
}
/* Native PaymentOption::setLogo() sizing — replaces the legacy JS addIcon injection. */
.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;
}
