/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://inca.coop
 Description:  Child theme for INCA website customizations including Stock Exchange
 Author:       INCA
 Author URI:   https://inca.coop
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  hello-elementor-child
*/

/* Stock Exchange Styles */
.listing-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.listing-fields {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.listing-fields th,
.listing-fields td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.listing-fields th {
    width: 30%;
    background: #f5f5f5;
}

.btn-interest {
    background: #0073aa;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.btn-interest:hover {
    background: #005177;
}

.sold-notice {
    background: #f0f0f0;
    padding: 20px;
    border-left: 4px solid #999;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.modal-close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 10px 20px;
    background: #ccc;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.btn-send {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.btn-send:hover {
    background: #005177;
}

/* My Listings table */
.my-listings-table {
    width: 100%;
    border-collapse: collapse;
}

.my-listings-table th,
.my-listings-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.my-listings-table .status-sold {
    opacity: 0.6;
}

.btn-add {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
}

.btn-add:hover {
    background: #005177;
    color: white;
}

.not-authorized {
    padding: 40px;
    background: #f0f0f0;
    border-left: 4px solid #cc0000;
}
