/* Remove white spaces around form */
body {
    margin: 0 !important;
    padding: 0 !important;
}

.last4 {
    width: 100%;
    margin: 0;
    padding: 0;
}

.page-bar {
    padding: 0 !important;
    margin: 0 !important;
}

/* Header rojo */
.header-blackstone {
    width: 100%;
    margin: 0 auto;
}

/* Apple Pay button styles - updated */
.apple-pay-container {
    display: flex;
    width: 100%;
}

.apple-pay-button {
    display: none;
    -webkit-appearance: none;
    background-color: black;
    background-image: url('/Content/img/apple-pay-button.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    color: transparent;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.apple-pay-button:hover {
    opacity: 0.8;
}

.apple-pay-unavailable {
    display: none;
    text-align: center;
    font-size: 12px;
    color: #a94442;
    margin-top: 8px;
}

input.help-block.help-block-error {
    border-color: #e73d4a;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

span.help-block.help-block-error {
    color: #e73d4a;
}

#virtual-terminal-img-container img {
    width: 250px;
    height: 150px;
}

input {
    font-size: 13px;
    font-family: 'Verdana';
}

td h3 {
    padding: 0;
    margin: 10px 0;
}

.tr-msg td {
    padding-top: 20px;
}

.tr-msg {
    margin-top: 10px;
    font-style: italic;
    font-size: 0.8em;
    color: rgb(104, 100, 100);
}

    .tr-msg img {
        width: 24px;
        vertical-align: middle;
    }

.tr-error {
    color: red;
    font-size: 0.7em;
    font-style: italic;
}

.page-title {
    padding: 0px;
    font-size: 28px;
    letter-spacing: -1px;
    display: block;
    color: #666;
    margin: 0px 0px 1.5% 0px;
    font-weight: 300;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

/*New Stiles*/
input.help-block.help-block-error {
    border-color: #e73d4a;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

span.help-block.help-block-error {
    color: #e73d4a;
}

.input-comment {
    color: black;
    font-weight: bold;
}

.dropdown-user {
    background-color: #707070;
}

    .dropdown-user a:hover {
        background-color: #404040 !important;
    }

#payment-detail-modal .actions button {
    border-style: none;
    background: white;
}


.alert, .thumbnail {
    margin-bottom: 5px;
}

.highlight-label {
    font-weight: bold;
}

.active2 {
    border-color: #eee #eee #ddd;
    text-decoration: none;
    background-color: #eee;
}

.form-group {
    /*padding: 10px;*/
    /*margin-left: 15px;*/
    color: black;
}

.header-blackstone {
    background: #b11556;
    color: white;
    padding: 10px;
}

.pagebreak {
    page-break-before: always;
}
/* page-break-after works, as well */
.card-img {
    width: 40px;
    height: 25px;
}

tr.denied, .well.denied {
    background-color: #f9e1e0;
}

.p-amount {
    font-size: 1.5em;
    font-weight: bold;
}

/*.last4 {
            padding-left: 15px;
            font-size: 1.2em;
            color: #4f4b4b;
            font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
            margin-left: 2%;
            margin-right: 5%;
        }*/


.button {
    background-color: #b11556;
    color: white;
}

/*.form-control {
            height: 40px;
            border-bottom: 2px solid #e6e6e6;
            border-left: 2px solid #e6e6e6;
            border-top: 2px solid #e6e6e6;
            border-right: 2px solid #e6e6e6;
            width: 80%;
            color: black;
        }*/

/* Modern input styles */
.form-control {
    border-radius: 8px !important;
    padding: 14px 16px !important;
    border: 1.5px solid #e0e0e0 !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    min-height: 48px !important;
}

.form-control:focus {
    border-color: #b11556 !important;
    box-shadow: 0 0 0 3px rgba(177, 21, 86, 0.1) !important;
    outline: none !important;
}

/* Form group spacing */
.form-group {
    margin-bottom: 12px !important;
}

/* Modern button styles */
.form-actions {
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.form-actions:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(177, 21, 86, 0.3) !important;
}

.form-actions:active {
    transform: translateY(0);
}

/* Tab buttons */
.tab-button {
    border-radius: 8px 8px 0 0 !important;
    transition: all 0.2s ease !important;
}

.tab-button:hover {
    background-color: rgba(177, 21, 86, 0.05) !important;
}

.caption-subject {
    font-size: 15px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size-adjust: inherit;
    font-weight: bold;
}
/**/
.portlet {
    width: 100%;
    padding: 0px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
    border-radius: 2px;
}

.marginTitle {
    margin-left: 0%;
}

.form-actions {
    /*padding: 5px 5px 5px;*/
    height: 45px;
    margin-top: 20px;
    /*margin-left: 20px;*/
    margin-bottom: 20px;
    background-color: #b11556;
    color: white;
    font-size: 15px;
}

.text-danger {
    color: red;
    font-size: 15px;
}

.custom-tabs {
    display: grid;
    gap: 20px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

    .tab-button.active {
        color: #3598dc;
    }

        .tab-button.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: #3598dc;
        }

.tabs-content > div {
    display: none;
}

    .tabs-content > div.active {
        display: block;
    }

.tab-content {
    width: 100%;
    padding: 20px;
}

    .tab-content .row {
        display: flex;
        width: 100%;
        margin: 0;
    }

.payment-form-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.form-section {
    flex: 1;
    padding: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

    .form-row .form-group {
        flex: 1;
        margin-bottom: 20px;
    }

/* Modern checkbox styles */
.save-payment-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    user-select: none;
    margin-bottom: 0;
}

.save-payment-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px !important;
    transition: all 0.2s ease;
}

.save-payment-checkbox:hover .checkbox-custom {
    border-color: #b11556;
}

.save-payment-checkbox input:checked ~ .checkbox-custom {
    background-color: #b11556;
    border-color: #b11556;
}

.checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.save-payment-checkbox input:checked ~ .checkbox-custom:after {
    display: block;
}

.checkbox-label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Modern radio button styles */
.save-payment-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    user-select: none;
    margin-bottom: 0;
}

.save-payment-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50% !important;
    transition: all 0.2s ease;
}

.save-payment-radio:hover .radio-custom {
    border-color: #b11556;
}

.save-payment-radio input:checked ~ .radio-custom {
    background-color: #b11556;
    border-color: #b11556;
}

/* Punto interior del radio button */
.radio-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
}

.save-payment-radio input:checked ~ .radio-custom:after {
    display: block;
}

.radio-label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Desktop: Limitar ancho del formulario al 65% y centrar */
@media (min-width: 992px) {
    .header-blackstone {
        max-width: 65%;
        margin-left: auto;
        margin-right: auto;
    }

    .portlet.light.bordered {
        max-width: 65%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Footer ocupa 100% del contenedor padre */
    .col-md-12.contact-merchant-container {
        width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Footer content centering */
    .contact-merchant-container .marginTitle {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-merchant {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/* Google Pay button styles */
#googlePayButton {
    width: 100% !important;
}

#googlePayButton > div,
#googlePayButton button {
    width: 100% !important;
    min-width: 100% !important;
    height: 50px !important;
    border-radius: 8px !important;
}

/* Responsive styles for mobile devices */
@media (max-width: 576px) {
    .apple-pay-button {
        height: 48px;
        min-height: 48px;
        font-size: 14px;
    }

    #googlePayButton > div,
    #googlePayButton button {
        height: 48px !important;
        min-height: 48px !important;
    }

    /* Ensure buttons don't overflow on small screens */
    #WalletPaymentButtons {
        padding: 0 !important;
    }
}

@media (max-width: 400px) {
    .apple-pay-button {
        height: 44px;
        min-height: 44px;
        background-size: 60% auto;
    }

    #googlePayButton > div,
    #googlePayButton button {
        height: 44px !important;
        min-height: 44px !important;
    }
}
