/* ============================================================
   TC Bouton de retractation - feuille de style front
   ============================================================ */

/* Conteneur page : aligne tout a gauche, peu importe le theme */
.tcretract-page,
.tcretract-page *{
    text-align:left !important;
    box-sizing:border-box;
}
.tcretract-page{
    max-width:100%;
    margin:30px auto;
    padding:0 15px;
    display:block !important;
}
.tcretract-page > *{
    display:block !important;
    width:100% !important;
    float:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
}
.tcretract-page h1{
    font-size:1.6em;
    margin-bottom:20px;
}
.tcretract-page label{
    display:block;
    margin-top:15px;
    font-weight:600 !important;
    text-align:left;
}

/* Recapitulatif commande */
.tcretract-recap{
    background:#f7f7f7;
    padding:14px 18px;
    border-radius:4px;
    margin:0 0 20px 0;
    border-left:4px solid #d0d0d0;
}
.tcretract-recap p{
    margin:4px 0;
}

/* Phrase legale d'introduction */
.tcretract-legal{
    font-size:.9em;
    color:#666;
    margin:0 0 20px 0;
}

/* Form-control par defaut */
.tcretract-page .form-control{
    display:block;
    width:100%;
    padding:8px;
    margin-top:5px;
    font-size:.85rem;
    border:1px solid #ccc;
    border-radius:3px;
}

/* ============================================================
   Bloc "Etendue de votre retractation"
   ============================================================ */
.tcretract-scope-notice{
    background:#fff8e1;
    border-left:4px solid #f0ad4e;
    padding:16px 20px;
    border-radius:3px;
    margin:0 0 20px 0;
}
.tcretract-scope-title{
    color:#d67e00;
    font-size:1.15em;
    margin:0 0 12px 0;
    font-weight:600;
}
.tcretract-scope-options{
    margin:0;
}
.tcretract-scope-radio{
    display:block;
    padding:6px 0;
    margin:0;
    cursor:pointer;
    font-weight:normal;
    line-height:1.6;
}
.tcretract-scope-radio input[type="radio"]{
    margin-right:8px;
    vertical-align:middle;
    transform:translateY(-1px);
}
.tcretract-scope-help{
    color:#777;
    font-size:.9em;
    margin-left:4px;
    font-weight:normal;
}

/* ============================================================
   Tableau des produits (retractation partielle)
   ============================================================ */
.tcretract-items-block{
    background:#fafafa;
    border:1px solid #e0e0e0;
    border-radius:3px;
    padding:16px 18px;
    margin:0 0 20px 0;
}
.tcretract-items-title{
    margin:0 0 14px 0;
    color:#444;
    font-size:1em;
}
.tcretract-items-table{
    width:100%;
    border-collapse:collapse;
    margin:0;
}
.tcretract-items-table th,
.tcretract-items-table td{
    padding:8px 6px;
    text-align:left;
    border-bottom:1px solid #eee;
    vertical-align:middle;
    font-size:.85rem;
}
.tcretract-items-table th{
    font-weight:600;
    color:#666;
    text-transform:uppercase;
    letter-spacing:.3px;
    background:#f4f4f4;
    border-bottom:2px solid #ddd;
    white-space:nowrap !important;
    font-size:.78rem;
}
.tcretract-items-table tr:last-child td{
    border-bottom:none;
}
.tcretract-col-select{
    width:40px;
    text-align:center !important;
}
.tcretract-col-select input[type="checkbox"]{
    margin:0;
    vertical-align:middle;
}
.tcretract-col-ref{
    width:120px;
    color:#666;
}
.tcretract-col-qty{
    width:110px;
    text-align:center !important;
    white-space:nowrap !important;
}
.tcretract-items-table th.tcretract-col-qty,
.tcretract-items-table td.tcretract-col-qty{
    text-align:center !important;
    white-space:nowrap !important;
}
.tcretract-item-qty{
    width:70px;
    padding:5px 8px;
    margin:0 auto;
    text-align:center;
    border:1px solid #ccc;
    border-radius:3px;
    display:inline-block;
    font-size:.85rem;
}

/* ============================================================
   Champ message
   ============================================================ */
.tcretract-message-group{
    margin:0 0 20px 0;
}
.tcretract-message-label{
    display:block;
    margin:0 0 6px 0;
    font-weight:600;
}
.tcretract-page textarea.form-control{
    min-height:80px;
    resize:vertical;
}

/* ============================================================
   Bouton de confirmation
   ============================================================ */
.tcretract-page .tcretract-confirm,
.tcretract-page .tcretract-submit{
    display:inline-block;
    margin-top:10px;
    padding:10px 22px;
    background:#3c83c3;
    color:#fff !important;
    border:none;
    border-radius:3px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:background-color .15s ease;
}
.tcretract-page .tcretract-confirm:hover,
.tcretract-page .tcretract-submit:hover{
    background:#286ba7;
}

/* Messages d'alerte */
.tcretract-page .alert{
    padding:12px 16px;
    margin:0 0 20px 0;
    border-radius:3px;
}
.tcretract-page .alert-danger{
    background:#f8d7da;
    border-left:4px solid #c0392b;
    color:#721c24;
}
.tcretract-page .alert-info{
    background:#e7f3ff;
    border-left:4px solid #3c83c3;
    color:#2e6da4;
}
.tcretract-page .alert-success{
    background:#dff0d8;
    border-left:4px solid #5cb85c;
    color:#3c763d;
}

/* ============================================================
   Bouton de retractation - uniquement dans le footer du site
   ============================================================ */
.tcretract-footer-link{
    margin-top:18px;
    text-align:center;
    margin-bottom:18px;
}
.tcretract-footer-link a{
    display:inline-block;
    margin-top:20px;
    padding:6px 14px;
    background:#3c83c3;
    color:#fff !important;
    border:none;
    border-radius:3px;
    text-decoration:none !important;
    font-size:12px;
    line-height:1.4;
    font-weight:500;
    letter-spacing:.2px;
    transition:background-color .15s ease;
}
.tcretract-footer-link a:hover{
    background:#286ba7;
    color:#fff !important;
    text-decoration:none !important;
}
/* Lien espace client : on laisse le theme styler naturellement,
   on n'applique aucune surcharge. */

/* ============================================================
   Adaptation mobile
   ============================================================ */
@media (max-width:600px){
    .tcretract-items-table thead{
        display:none;
    }
    .tcretract-items-table,
    .tcretract-items-table tbody,
    .tcretract-items-table tr,
    .tcretract-items-table td{
        display:block;
        width:100%;
    }
    .tcretract-items-table tr{
        border-bottom:1px solid #ddd;
        padding:10px 0;
    }
    .tcretract-items-table td{
        border-bottom:none;
        padding:4px 0;
    }
    .tcretract-col-ref,
    .tcretract-col-qty{
        width:100%;
        text-align:left !important;
    }
}
