/* Offers List */
.offers-list .offer-card {
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s;
}

.offers-list .offer-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.offers-list .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.offers-list .offer-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.offers-list .offer-date {
    font-size: 12px;
    color: #6c757d;
}

.offers-list .offer-info p {
    margin-bottom: 8px;
}

.offers-list .offer-total {
    font-size: 16px;
}

.offers-list .offer-total .price {
    color: #28a745;
    font-weight: bold;
}

/* Offer Details */
.offer-details .table {
    margin-bottom: 0;
}

.offer-details .card {
    border: 1px solid #e0e0e0;
}

.offer-details .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.offer-details .card-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Badges */
.badge {
    border-radius: 20px;
    text-transform: none;
    display: inline-block;
    padding: 3px 20px;
    border-radius: 20px;
    font-size: 12px;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-success {
    background-color: #28a745;
    color: #fff;
}

.badge-secondary {
    background-color: #6c757d;
    color: #fff;
}


/* Offers List Table */
.offers-list-table {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 15px;
}

.offers-list-table h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.offers-list-table > p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Table Styling */
.offers-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.offers-table thead {
    background-color: #c8b896;
    color: #fff;
}

.offers-table thead th {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    padding: 15px 12px;
    border: none;
    vertical-align: middle;
}

.offers-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.offers-table tbody tr:hover {
    background-color: #f8f9fa;
}

.offers-table tbody td {
    padding: 15px 12px;
    vertical-align: middle;
    font-size: 14px;
    color: #333;
}

/* Columns */
.offer-reference {
    font-weight: 600;
    min-width: 150px;
}

.offer-date {
    min-width: 100px;
    color: #6c757d;
}

.offer-price {
    min-width: 120px;
    font-weight: 600;
    color: #28a745;
}

.offer-products {
    min-width: 100px;
    color: #6c757d;
}

.offer-status {
    min-width: 100px;
}

.offer-actions {
    min-width: 180px;
    white-space: nowrap;
}

/* Status Badges */


.badge-pending {
    background-color: #ff0000;
    color: #fff;
}

.badge-accepted {
    background-color: #01B887;
    color: #fff;
}

.badge-awaiting {
    background-color: #17a2b8;
    color: #fff;
}

.badge-ordered {
    background-color: #28a745;
    color: #fff;
}

.badge-inactive {
    background-color: #6c757d;
    color: #fff;
}

/* Action Buttons */
.offer-actions .btn {
    margin: 0px;
    padding: 3px 15px !important;
    font-size: 12px;
    font-weight: normal;
    text-transform: uppercase;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
}

.btn-details {
    background-color: #c8b896;
    color: #fff;
    border: none;
    font-size: 12px;
    text-decoration: underline;
    text-transform: uppercase;
    border-color: var(--primary);
    background: var(--primary);
    padding: 3px 10px !important;
    margin: 0;
    border-radius: 30px;
    text-decoration: none !important;
    text-align: center;
    display: flex;
    align-content: center;
    justify-content: center;
    line-height: normal;
    height: auto;
    align-items: center;
    color: white;
}

.btn-details:hover {
    background-color: #b5a684;
    color: #fff;
}

.btn-accept {
    background-color: #01B887;
    color: #fff;
    border: none;
    font-size: 12px;
    text-decoration: underline;
    text-transform: uppercase;
    border-color: #01B887;
    background: #01B887;
    padding: 3px 10px !important;
    margin: 0;
    border-radius: 30px;
    text-decoration: none !important;
    text-align: center;
    display: flex;
    align-content: center;
    justify-content: center;
    border: 1px solid #01B887;
    justify-content: center;
    line-height: normal;
    height: auto;
    align-items: center;
}

.btn-accept:hover {
    background-color: #252525;
    color: #fff;
}
.btn-details:hover {
    background-color: #252525;
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .offers-table {
        font-size: 13px;
    }
    
    .offers-table thead th,
    .offers-table tbody td {
        padding: 10px 8px;
    }
    
    .offer-actions .btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 767px) {
    .offers-table thead {
        display: none;
    }
    
    .offers-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
    }
    
    .offers-table tbody td {
        display: block;
        text-align: right;
        padding: 10px 15px;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .offers-table tbody td:last-child {
        border-bottom: none;
    }
    
    .offers-table tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 12px;
    }
    
    .offer-actions {
        text-align: center !important;
    }
    
    .offer-actions .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* Empty State */
.alert-info {
    border-radius: 8px;
    padding: 40px 20px;
}

.alert-info p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Offer Details Page */
.offer-details-page {
    margin: 0 auto;
    padding: 0px 0px;
}
.badge-pending {
    background-color: #fddb15;
    color: #000000;
}

/* Header */
.offer-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.offer-detail-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.btn-reorder {
    background-color: var(--primary);
    border: 2px solid var(--primary);
    color: #fff;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-left: 15px;
}

.btn-reorder:hover ,
a.btn.btn-back-to-offers:hover{
    background-color: var(--secondary);
    border: 2px solid var(--secondary);
    color: #fff;
    font-size: 13px;
}

/* Offer Info Section */
.offer-info-section {
    background: #fff;
    border: 0 solid #e9ecef;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
}

.offer-info-section .info-row {
    padding: 8px 0;
    font-size: 14px;
    color: #333;
}
a.btn.btn-back-to-offers {
    background: white;
    color: #252525;
    border: 1px solid #252525;
    padding: 15px;
    background-color: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    margin-left: auto;
    margin-right: 0px;
}
a.btn.btn-back-to-offers i.material-icons {
    font-size: 14px;
    margin-right: 0x;
}
.offer-info-section .info-row strong {
    display: inline-block;
    min-width: 150px;
    font-weight: 600;
}

.status-badge {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    display: inline-block;
}

.status-pending {
    background-color: #ffc107;
    color: #000;
}

.status-accepted {
    background-color: #28a745;
    color: #fff;
}

.status-awaiting {
    background-color: #17a2b8;
    color: #fff;
}

.status-badge-link {
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.status-badge-link:hover,
.status-badge-link:focus {
    opacity: 0.85;
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
    font-size: 10px;
}

.status-ordered {
    background-color: #28a745;
    color: #fff;
}

.status-inactive {
    background-color: #6c757d;
    color: #fff;
}

/* Stock level indicator on Offer Details table */
.product-stock {
    font-weight: 600;
}

.product-stock.stock-ok {
    color: #28a745;
}

.product-stock.stock-low {
    color: #ff8c00;
}

.product-stock.stock-out {
    color: #dc3545;
}
section#content.page-myaccount2022 .table td.product-name {
    text-align: left;
    font-size: 14px;
}
.product-out-of-stock .row.pp_countdown_info_container.txt {
    background: #ADC2CD !important;
    max-width: max-content;
    display: flex;
    height: auto;
    min-height: auto;
    font-size: 10px !important;
    border-radius: 10px;
    padding: 5px 10px;
    line-height: 1;
    text-align: left;
    margin: 0;
}
.product-out-of-stock .row.pp_countdown_info_container.txt .col-md-12 {
    padding: 0;
}
.product-out-of-stock .row.pp_countdown_info_container.txt .col-md-12 span {
    font-size: 10px;
    line-height: normal;
}

/* Products Table */
.products-section {
    margin-bottom: 30px;
}

.products-table {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
}

.products-table thead {
    background-color: #c8b896;
}

.products-table thead th {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    padding: 12px 15px;
    border: none;
}

.products-table tbody td {
    padding: 15px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.products-table tbody tr:last-child td {
    border-bottom: none;
}

.product-reference {
    font-weight: 600;
    color: #666;
}

.product-name {
    font-weight: 500;
}

.product-attributes {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.product-price,
.product-total {
    font-weight: 600;
}

/* Table Footer - Totals */
.products-table tfoot td {
    padding: 12px 15px;
    font-size: 14px;
    border-top: 1px solid #e9ecef;
}

.subtotal-row td {
    background-color: #fafafa;
}

.shipping-row td,
.tax-row td {
    background-color: #fafafa;
}

.total-row {
    background-color: #2c2c2c !important;
}

.total-row td {
    background-color: #2c2c2c;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
}

.total-row .total-label {
    background-color: #2c2c2c;
}

.total-row .total-value {
    background-color: #c8b896;
    color: #333 !important;
    font-size: 16px;
}

/* Status History Section */
.status-history-section {
    margin-bottom: 30px;
}

.status-history-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.status-history-table {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.status-history-table thead {
    background-color: #c8b896;
}

.status-history-table thead th {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    padding: 12px 15px;
    border: none;
}

.status-history-table tbody td {
    padding: 15px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.history-status {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block;
}

.history-status.status-cancelled {
    background-color: #ff0000;
    color: #fff;
}

.history-status.status-pending {
    background-color: #ffeb3b;
    color: #000;
}

.history-status.status-accepted {
    background-color: #3f51b5;
    color: #fff;
}

.history-status.status-awaiting {
    background-color: #17a2b8;
    color: #fff;
}

.history-status.status-ordered {
    background-color: #28a745;
    color: #fff;
}
.offer-details-page h3 {
    font-size: 18px !important;
    text-transform: capitalize;
    color: #252525 !important;
    font-family: 'Poppins-bold' !important;
}

/* Delivery Section */
.delivery-section {
    margin-bottom: 30px;
}

.delivery-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.delivery-table {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.delivery-table thead {
    background-color: #c8b896;
}

.delivery-table thead th {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    padding: 12px 15px;
    border: none;
}

.delivery-table tbody td {
    padding: 15px;
    font-size: 14px;
    color: #333;
}

/* Bottom Actions */
.offer-actions-bottom {
    margin-top: 30px;
    text-align: center;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: #fff;
}

.box.orderde-line-details ul li {
    margin-bottom: 5px;
    display: flex;
    gap: 5px;
}
.status-badge {
    padding: 0px 12px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    display: inline-block;
}
.offer-info-section .box.orderde-line-details ul li {
    margin-bottom: 7px;
    display: flex;
    gap: 5px;
}
section#content.page-myaccount2022 table#order-products thead.thead-default th.name {
    width: 40%;
}
.offers-list-table .alert.alert-info.text-center {
    text-align: center;
}

/* Hide mobile view on desktop */
@media (min-width: 768px) {
    .offers-list-table.mobile {
        display: none;
    }
}
/* Responsive */
@media (max-width: 767px) {
    .offer-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-reorder {
        width: 100%;
        text-align: center;
    }

    .offer-info-section .info-row strong {
        display: block;
        margin-bottom: 4px;
    }

    /* Make tables responsive */
    .products-table,
    .status-history-table,
    .delivery-table {
        font-size: 13px;
    }

    .products-table thead,
    .status-history-table thead,
    .delivery-table thead {
        display: none;
    }

    .products-table tbody tr,
    .status-history-table tbody tr,
    .delivery-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
    }

    .products-table tbody td,
    .status-history-table tbody td,
    .delivery-table tbody td {
        display: block;
        text-align: right;
        padding: 10px 15px;
        border-bottom: 1px solid #f8f9fa;
    }

    .products-table tbody td:before,
    .status-history-table tbody td:before,
    .delivery-table tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 11px;
    }

    .total-row td {
        display: flex;
        justify-content: space-between;
    }


    /* Mobile Card Layout */
    .offers-list-table.mobile {
        padding: 0;
    }

    .offer-card {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .offer-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background: #f8f9fa;
        border-bottom: 1px solid #e0e0e0;
    }

    .offer-card-header .offer-name {
        font-size: 16px;
        color: #333;
        flex: 1;
        margin-right: 10px;
    }

    .offer-card-header .offer-status-badge {
        flex-shrink: 0;
    }

    .offer-card-body {
        padding: 15px;
    }

    .offer-info-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .offer-info-row:last-child {
        border-bottom: none;
    }

    .offer-label {
        font-weight: 600;
        color: #666;
        font-size: 14px;
    }

    .offer-value {
        color: #333;
        font-size: 14px;
        text-align: right;
    }

    .offer-card-actions {
        padding: 15px;
        background: #f8f9fa;
        border-top: 1px solid #e0e0e0;
    }

    .offer-card-actions .btn {
        margin-bottom: 10px;
    }

    .offer-card-actions .btn:last-child {
        margin-bottom: 0;
    }

    /* Badge Styling */
    .badge {
        padding: 5px 12px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .badge-pending {
        background-color: #ffc107;
        color: #333;
    }

    .badge-accepted {
        background-color: #28a745;
        color: #fff;
    }

    .badge-awaiting {
        background-color: #17a2b8;
        color: #fff;
    }

    .badge-ordered {
        background-color: #28a745;
        color: #fff;
    }

    .badge-inactive {
        background-color: #6c757d;
        color: #fff;
    }

    /* Button Styling for Mobile */
   .btn-block {
        display: block;
        width: 100%;
        font-family: 'Poppins-Bold';
        padding: 5px 10px !important;
        font-size: 14px;
    }
    .offer-detail-header {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    .box.order_products_table.hidden-sm-down {
            margin-bottom: 0;
            overflow-y: hidden;
            display: block !important;
    }
    .offer-detail-header {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .offer-detail-header h1 {
        width: 100%;
    }
    .offer-detail-header a.btn.btn-secondary.btn-back-to-offers {
        width: 30%;
        margin-left: 0;
    }
    .offer-detail-header a.btn.btn-reorder {
        width: 45%;
        margin-right: 0;
        margin-left: 0;
        padding: 5px 15px;
    }
    .offer-detail-header a.btn.btn-secondary.btn-back-to-offers {
        width: 45%;
        margin-left: 0;
        padding: 5px 15px;
    }
    a.btn.btn-back-to-offers i.material-icons {
        font-size: 14px;
        margin-right: 0;
    }

  

}

/* Responsive adjustments */
@media (max-width: 480px) {
    .offer-card-header {
        flex-direction: row;
        align-items: center;
    }
    
    .offer-card-header .offer-status-badge {
        margin-top: 0px;
    }
    
    .offer-info-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .offer-value {
        text-align: left;
        margin-top: 5px;
    }
}