/* SimplePay dialog/modal styles */
dialog.simplepay-tajekoztatok {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 20px;
    border: 2px solid #c4c4c4;
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

dialog.simplepay-tajekoztatok::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Fallback for browsers without ::backdrop support */
dialog.simplepay-tajekoztatok + .dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* Legacy div support (for older implementations) */
div.simplepay-tajekoztatok {
    position: relative;
    top: 2rem;
    background-color: white;
    width: 100%;
    padding: 20px;
    border: 2px solid #c4c4c4;
    height: auto;
    border-radius: 5px;
    z-index: 1000;
    margin-bottom: 2rem;
}

.simplepay-tajekoztatok .modal-text {
    max-height: 50vh;
    overflow: auto;
    font-size: 16px;
    line-height: 1.5;
}

.simplepay-tajekoztatok h2.dialog-title {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
    padding-right: 30px;
}

.simplepay-tajekoztatok-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    font-size: 14px;
    border: none;
    border-radius: 50%;
    font-weight: bold;
    color: white;
    background-color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.simplepay-tajekoztatok-close:hover {
    background-color: #333;
}
div#checkout_tajekoztato {
    display: block;
    width: 100%;
}

div#kartyareg h3 {
    font-size: 20px;
    font-weight: bold;
}

div#kartyareg {
    padding: 20px;
    background-color: white;
    width: 100%;
    border-radius: 5px;
    margin: 20px 0;
}

div#hold-card h3 {
    font-size: 20px;
}

div#hold-card {
    width: 100%;
}

button.card-save {
    border: 0 solid black;
    margin: 5px;
    background-color: green;
    color: white;
    padding: 5px;
    font-weight: bold;
    box-shadow: 1px 1px 3px darkgrey;
    border-radius: 5px;
}

button.card-delete {
    border: 0 solid black;
    margin: 5px;
    background-color: red;
    color: white;
    padding: 5px;
    font-weight: bold;
    box-shadow: 1px 1px 3px darkgrey;
    border-radius: 5px;
}

/* Retry payment panel styles */
.simplepay-retry-payment {
    margin-bottom: 2em;
    padding: 1.5em;
    background: #f7f7f7;
    border-left: 4px solid #0073aa;
}

.simplepay-retry-payment h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.simplepay-retry-gateways {
    list-style: none;
    padding: 0;
    margin: 1em 0 0;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.simplepay-retry-gateways li {
    margin: 0;
}

.simplepay-retry-button {
    display: inline-block;
    padding: 0.75em 1.5em;
}