/* CCAS Ticketnet Wallet */

.ccas-tnwallet-actions {
    display: inline-block;
    margin: 4px 0;
    white-space: nowrap;
}

/* Boutons Mes billets : côte à côte, alignés à droite */
.history_action .history_action_btns {
    display: inline-block;
    float: right;
    white-space: nowrap;
    line-height: 0;
}

.history_action .history_action_btns > a,
.history_action .history_action_btns > .btn-wallet-open {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0 0 4px;
    float: none;
}

.history_action .history_action_btns .download_eticket_ccas {
    display: inline-block;
    vertical-align: middle;
    float: none;
    line-height: 0;
}

table.std#order-list td.history_wallet,
table.std#order-list th.history_wallet {
    vertical-align: middle !important;
    text-align: center;
    width: 64px;
    min-width: 64px;
    padding: 16px 18px !important;
    position: relative;
}

table.std#order-list td.history_wallet .btn-wallet-open {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    margin: 0;
}

/* Même rendu que le bouton télécharger (.download_eticket_ccas + img 20x20) */
.btn-wallet-open {
    cursor: pointer;
    border: 0;
    vertical-align: middle;
}

.btn-wallet-open img {
    display: block;
    width: 20px;
    height: 20px;
}

/* Icône info conditions billet digital */
.tn-conditions-livraison-wallet-info,
.btn-wallet-info-open {
    display: inline-block;
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #002878;
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
}

.tn-conditions-livraison-wallet-info:hover,
.tn-conditions-livraison-wallet-info:focus,
.btn-wallet-info-open:hover,
.btn-wallet-info-open:focus {
    color: #001a52;
    outline: none;
}

/* ------------------------------------------------------------------
 * Bootstrap 3 modal CSS (theme bambinis n'importe pas bootstrap_lib/modals)
 * ------------------------------------------------------------------ */

body.modal-open {
    overflow: hidden;
}

#ccas-tnwallet-modal.modal,
#ccas-tnwallet-info-modal.modal {
    display: none;
    overflow: auto;
    overflow-y: scroll;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    -webkit-overflow-scrolling: touch;
    outline: 0;
}

#ccas-tnwallet-modal.modal.fade .modal-dialog,
#ccas-tnwallet-info-modal.modal.fade .modal-dialog {
    -webkit-transform: translate(0, -25%);
    -ms-transform: translate(0, -25%);
    transform: translate(0, -25%);
    -webkit-transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
}

#ccas-tnwallet-modal.modal.in .modal-dialog,
#ccas-tnwallet-info-modal.modal.in .modal-dialog {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0);
}

#ccas-tnwallet-modal .modal-dialog,
#ccas-tnwallet-info-modal .modal-dialog {
    position: relative;
    width: auto;
    margin: 60px auto;
    padding: 10px;
    max-width: 480px;
    z-index: 1060;
}

#ccas-tnwallet-modal .modal-content,
#ccas-tnwallet-info-modal .modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
    outline: none;
}

#ccas-tnwallet-modal .modal-header,
#ccas-tnwallet-info-modal .modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    min-height: 16.43px;
}

#ccas-tnwallet-modal .modal-header .close,
#ccas-tnwallet-info-modal .modal-header .close {
    margin-top: -2px;
}

#ccas-tnwallet-modal .modal-title,
#ccas-tnwallet-info-modal .modal-title {
    margin: 0;
    line-height: 1.42857143;
}

#ccas-tnwallet-modal .modal-body {
    position: relative;
    padding: 20px 15px;
    text-align: center;
}

#ccas-tnwallet-info-modal .modal-body {
    position: relative;
    padding: 20px 15px;
    text-align: left;
}

#ccas-tnwallet-modal .modal-footer,
#ccas-tnwallet-info-modal .modal-footer {
    margin-top: 0;
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}

#ccas-tnwallet-modal .wallet-modal-close,
#ccas-tnwallet-info-modal .wallet-modal-close {
    display: inline-block;
    background: #002878;
    color: #ffffff;
    padding: 8px 18px;
    text-transform: uppercase;
    font-weight: bold;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    text-align: center;
}

#ccas-tnwallet-modal .wallet-modal-close:hover,
#ccas-tnwallet-modal .wallet-modal-close:focus,
#ccas-tnwallet-info-modal .wallet-modal-close:hover,
#ccas-tnwallet-info-modal .wallet-modal-close:focus {
    color: #ffffff;
    background: #001f5c;
}

/* Backdrop (créé par Bootstrap JS hors du #ccas-tnwallet-modal) */
.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
    filter: alpha(opacity=0);
}

.modal-backdrop.in {
    opacity: 0.5;
    filter: alpha(opacity=50);
}

@media screen and (min-width: 768px) {
    #ccas-tnwallet-modal .modal-dialog,
    #ccas-tnwallet-info-modal .modal-dialog {
        width: 480px;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    #ccas-tnwallet-modal .modal-content,
    #ccas-tnwallet-info-modal .modal-content {
        -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }
}

/* ------------------------------------------------------------------
 * Contenu maquette
 * ------------------------------------------------------------------ */

#ccas-tnwallet-modal .wallet-modal-loading {
    margin: 15px 0;
}

#ccas-tnwallet-modal .wallet-modal-error {
    text-align: left;
    margin: 10px 0;
}

#ccas-tnwallet-modal .wallet-modal-success {
    text-align: center;
}

#ccas-tnwallet-modal .wallet-modal-download {
    display: block;
    width: 100%;
    background: #002878;
    color: #ffffff;
    padding: 12px 16px;
    text-transform: uppercase;
    font-weight: bold;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

#ccas-tnwallet-modal .wallet-modal-download:hover,
#ccas-tnwallet-modal .wallet-modal-download:focus {
    color: #ffffff;
    background: #001f5c;
    text-decoration: none;
}

#ccas-tnwallet-modal .wallet-modal-or {
    margin: 18px 0 14px;
    color: #000;
    font-size: 14px;
}

#ccas-tnwallet-qr {
    margin: 0 auto 10px;
    width: 220px;
    min-height: 1px;
}

#ccas-tnwallet-qr canvas,
#ccas-tnwallet-qr img {
    display: block;
    margin: 0 auto;
    max-width: 220px;
    height: auto;
}

/* Desktop : QR seulement */
@media screen and (min-width: 768px) {
    #ccas-tnwallet-modal .wallet-modal-download,
    #ccas-tnwallet-modal .wallet-modal-or {
        display: none;
    }
}

/* Mobile : bouton seulement */
@media screen and (max-width: 767px) {
    #ccas-tnwallet-modal .wallet-modal-or,
    #ccas-tnwallet-modal #ccas-tnwallet-qr {
        display: none;
    }
}

.wallet-store-badges {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wallet-store-badges a {
    display: inline-block;
    line-height: 0;
}

.wallet-store-badges img {
    height: 40px;
    width: auto;
    display: block;
}

.ccas-tnwallet-confirm {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.ccas-tnwallet-confirm h3 {
    margin-top: 0;
}

.ccas-tnwallet-confirm-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.ccas-tnwallet-confirm-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.box-email-ebillet-wallet-hide {
    display: none !important;
}
