/**
* 2007-2023 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2023 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

/* Banner image styling */
.banner_image {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 4px;
}

/* Panel styling */
.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background-color: #f5f5f5;
}

/* Table styling */
.table-responsive {
    overflow-x: auto;
    min-height: 0.01%;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table-bordered {
    border: 1px solid #ddd;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
    border: 1px solid #ddd;
}

/* Badge styling */
.badge-info {
    background-color: #5bc0de;
    color: #fff;
    padding: 3px 7px;
    border-radius: 10px;
    font-size: 12px;
}

/* Button styling */
.btn-group {
    display: inline-flex;
}

.btn {
    margin-right: 5px;
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-danger {
    color: #fff;
    background-color: #d9534f;
    border-color: #d43f3a;
}

/* Text styling */
.text-muted {
    color: #777;
}

.text-center {
    text-align: center;
}

/* Alert styling */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

/* Form styling for the banner edit form */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

/* Chosen plugin styling */
.chosen-container {
    width: 100% !important;
}

.chosen-container-multi .chosen-choices {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    background-image: none;
}

.chosen-container-multi .chosen-choices li.search-choice {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 20px 5px 5px;
}

/* Widget code sample in the implementation instructions panel */
.pch-eb-widget-code {
    background: #f5f5f5;
    padding: 10px;
    display: block;
    white-space: pre-wrap;
}

/* Highlighted field titles in the banner form (replaces inline styled spans) */
.pch-eb-field-title .control-label {
    color: #3586ae;
    font-weight: 700;
}

/* Banner preview rendered by HelperForm uploader (thumb parameter) */
[id$="-images-thumbnails"] img {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 4px;
}
