/*
* 2025 Addify
*
* 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    Addify
* @copyright 2025 Addify
* @license   http://opensource.org/licenses/afl-3.0.php
*/
/***** PS9 Default Theme-Like Styling for Resell Form *****/
/* Import Material Icons Font */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
/* Material Icons Base Styling */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
/* Send Button Material Icon Specific Styling */
.send-button .material-icons {
    display: table-cell !important;
}
/* Sell Old Item View Styles - Embedded directly */
/* Enhanced Customer Details Section - Only for sell old item view with maximum specificity */
#reuse_customer_details_views.card-block.row {
    display: flex !important;
    flex-direction: row !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 1.25rem !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    gap: 20px !important;
    align-items: stretch !important;
}
/* Enhanced Customer Details Container - Only for sell old item view with maximum specificity */
#reuse_customer_details_views .col-md-5.reuse_sell_old_item_view_details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    min-height: 200px !important;
    flex: 1 !important;
    display: block !important;
}
#reuse_customer_details_views .col-md-5.reuse_sell_old_item_view_details:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
}
/* Individual detail items with enhanced hover effects - Only for sell old item view with maximum specificity */
#reuse_customer_details_views .col-md-5.reuse_sell_old_item_view_details div {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f1f3f4 !important;
    transition: all 0.3s ease !important;
    border-radius: 6px !important;
    margin-bottom: 4px !important;
    position: relative !important;
    overflow: hidden !important;
    background: transparent !important;
    color: #495057 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#reuse_customer_details_views .col-md-5.reuse_sell_old_item_view_details div:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}
#reuse_customer_details_views .col-md-5.reuse_sell_old_item_view_details div:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.08) 0%, rgba(0, 123, 255, 0.05) 100%) !important;
    border-radius: 8px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    transform: translateX(4px) !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15) !important;
    border-left: 3px solid #007bff !important;
}
/* Enhanced Customer Address Section - Only for sell old item view with maximum specificity */
#reuse_customer_details_views .col-md-5.sell_old_item_view_customer_address {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    min-height: 200px !important;
    flex: 1 !important;
    display: block !important;
}
#reuse_customer_details_views .col-md-5.sell_old_item_view_customer_address:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}
#reuse_customer_details_views .col-md-5.sell_old_item_view_customer_address div:not(.h6) {
    padding: 8px 16px !important;
    margin-bottom: 4px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.05) 0%, rgba(108, 117, 125, 0.02) 100%) !important;
    color: #495057 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#reuse_customer_details_views .col-md-5.sell_old_item_view_customer_address div:not(.h6):hover {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(108, 117, 125, 0.05) 100%) !important;
    transform: translateX(4px) !important;
    padding-left: 20px !important;
    border-left: 3px solid #6c757d !important;
}
/* Responsive behavior for smaller screens */
@media (max-width: 768px) {
    #reuse_customer_details_views.card-block.row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    #reuse_customer_details_views .col-md-5.reuse_sell_old_item_view_details,
    #reuse_customer_details_views .col-md-5.sell_old_item_view_customer_address {
        flex: none !important;
        width: 100% !important;
    }
}
/* Product Search Autocomplete Styles */
.product-search-container {
    position: relative;
}
.product-search-container .searched-result {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}
.product-search-container .searched-result.show {
    display: block;
}
.product-search-container .searched-result .product-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.product-search-container .searched-result .product-item:hover,
.product-search-container .searched-result .product-item.selected {
    background-color: #f8f9fa;
}
.product-search-container .searched-result .product-item:last-child {
    border-bottom: none;
}
.product-search-container .searched-result .product-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}
.product-search-container .searched-result .product-reference {
    font-size: 12px;
    color: #666;
}
.product-search-container .searched-result .no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}
.product-search-container .deleteicon {
    position: relative;
}
.product-search-container .deleteicon #delete_icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.product-search-container .deleteicon #delete_icon:hover {
    background: #c82333;
}
.product-search-container .selected-result {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 4px;
    display: none;
}
.product-search-container .selected-result.show {
    display: block;
}
.product-search-container .selected-result .selected-product-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-search-container .selected-result .selected-product-name {
    font-weight: 500;
    color: #155724;
}
.product-search-container .selected-result .remove-selection {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
}
.product-search-container .selected-result .remove-selection:hover {
    background: #c82333;
}
/* Modern, visually distinct header for the resell form */
.resell-form-header {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 50%, #d4edff 100%) !important;
  border: 3px solid #24b9d7 !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 40px rgba(36,185,215,0.25), inset 0 1px 0 rgba(255,255,255,0.8) !important;
  padding: 40px 40px 30px 40px !important;
  margin-bottom: 60px !important;
  text-align: left !important;
  position: relative !important;
  z-index: 2 !important;
  transition: box-shadow 0.2s !important;
}
.resell-form-header::after {
  content: '' !important;
  position: absolute !important;
  bottom: -15px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 60px !important;
  height: 4px !important;
  background: linear-gradient(90deg, #24b9d7, #1a9bb8) !important;
  border-radius: 2px !important;
  box-shadow: 0 2px 8px rgba(36,185,215,0.3) !important;
}
.resell-form-header .d-flex {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}
.resell-form-header .material-icons {
  color: #24b9d7 !important;
  font-size: 3rem !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 3rem !important;
  width: 3rem !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  text-shadow: 0 2px 4px rgba(36,185,215,0.2) !important;
}
.resell-form-header h2 {
  font-size: 2.3rem !important;
  font-weight: 800 !important;
  color: #1a4a5e !important;
  margin-bottom: 0 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.5px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}
.resell-form-header .resell-form-desc {
  font-size: 1.15rem !important;
  color: #2c5a6b !important;
  margin-top: 20px !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
}
/* Button Styling for Resell History */
.addifyresellproducts .btn-primary .material-icons,
.addifyresellproducts .btn-outline-primary .material-icons,
#mainCardFormGiftCustomer .btn-primary .material-icons,
#mainCardFormGiftCustomer .btn-outline-primary .material-icons,
.addify-resell-button-container .btn-primary .material-icons,
.addify-resell-button-container .btn-outline-primary .material-icons,
.presta_reuse_button_display.btn-primary .material-icons,
.presta_reuse_button_display.btn-outline-primary .material-icons,
.main-menu-resell-link.btn-primary .material-icons,
.main-menu-resell-link.btn-outline-primary .material-icons {
  margin-right: 8px;
  font-size: 18px;
  vertical-align: middle;
}
/* Specific styling for resell history page buttons only */
/* Removed custom button styling - using default Bootstrap styles */
/* Specific styling for resell form page buttons */
#mainCardFormGiftCustomer .btn-primary {
  background: linear-gradient(135deg, #24b9d7 0%, #1a9bb8 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 12px rgba(36,185,215,0.3) !important;
  transition: all 0.3s ease !important;
}
#mainCardFormGiftCustomer .btn-primary:hover {
  background: linear-gradient(135deg, #1a9bb8 0%, #1389a3 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(36,185,215,0.4) !important;
}
#mainCardFormGiftCustomer .btn-outline-primary {
  border: 2px solid #24b9d7 !important;
  color: #24b9d7 !important;
  background: transparent !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
}
#mainCardFormGiftCustomer .btn-outline-primary:hover {
  background: #24b9d7 !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(36,185,215,0.3) !important;
}
/* Product page button container */
.addify-resell-button-container {
  display: block;
  width: 100%;
  clear: both;
  margin: 1rem 0;
}
/* Price position styles */
.product-prices {
  /* intentionally left unchanged to avoid interfering with theme */
}
.addify-resell-button-container.before-price {
  margin-bottom: 1rem !important;
}
.addify-resell-button-container.after-price {
  margin-top: 1rem !important;
}
/* Cart position styles */
.product-add-to-cart {
  /* intentionally left unchanged to avoid interfering with theme */
}
.product-add-to-cart .addify-resell-button-container.before-cart { /* no layout override */ }
.product-add-to-cart .product-quantity { /* no order override */ }
.product-add-to-cart .addify-resell-button-container.after-cart { /* no layout override */ }
.product-quantity .add .addify-resell-button-container.with-cart {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 1rem !important;
  vertical-align: middle !important;
}
/* Button styles */
.addify-resell-button-container .btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease-in-out;
  width: auto !important;
}
/* Responsive styles */
@media (max-width: 768px) {
  .product-quantity .add .addify-resell-button-container.with-cart {
    margin: 1rem 0 0 0 !important;
    width: 100% !important;
    display: block !important;
  }
  .addify-resell-button-container .btn {
    width: 100% !important;
  }
}
/* Button styles */
.addify-resell-button-container .addify-resell-button {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}
/* Responsive styles */
@media (max-width: 768px) {
  .addify-resell-button-container.with-cart {
    display: block;
    width: 100%;
    margin: 10px 0 0 0;
  }
  .addify-resell-button-container .addify-resell-button {
    width: 100%;
  }
}
/* Button positioning for resell history page */
.resell-history-back-btn,
.resell-history-add-btn {
  margin-top: 30px !important;
  display: inline-block !important;
}
/* Ensure h1 heading displays with proper capitalization */
.page-content.card.card-block h1.h2 {
  text-transform: none !important;
  font-variant: normal !important;
}
.resell-history-back-btn {
  float: left !important;
}
.resell-history-add-btn {
  float: right !important;
}
/* Clear float after buttons */
.resell-history-add-btn::after {
  content: '';
  display: table;
  clear: both;
}
/* Card container */
#mainCardFormGiftCustomer {
  background: #fafbfc !important;
  border: 1px solid #e9ecef !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
  padding: 40px 40px 30px 40px !important;
  margin: 20px auto !important;
  max-width: 1000px !important;
  position: relative !important;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  display: block;
  font-size: 0.95rem;
  text-align: left;
}
.form-group input.form-control,
.form-group select.form-control,
.form-group textarea.form-control {
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #fff;
  color: #495057;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  width: 100%;
  box-sizing: border-box;
}
.form-group input.form-control:focus,
.form-group select.form-control:focus,
.form-group textarea.form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
  background: #fff;
}
.input-group-addon {
  /* display: flex !important; */
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  text-align: center;
  white-space: nowrap;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  flex-shrink: 0;
  min-width: auto;
  width: auto;
}
/* Override any conflicting table-based styles */
.addify-resell-form .input-group, #mainCardFormGiftCustomer .input-group {
  display: flex !important;
  align-items: stretch;
  width: 100%;
  border-collapse: separate;
}
.addify-resell-form .input-group .form-control, #mainCardFormGiftCustomer .input-group .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  margin-bottom: 0;
  border-radius: 4px 0 0 4px;
  display: block !important;
  border-right: 0;
}
/* Ensure proper spacing and alignment */
.addify-resell-form .input-group .form-control:focus, #mainCardFormGiftCustomer .input-group .form-control:focus {
  z-index: 2;
}
.addify-resell-form .input-group-addon:focus, #mainCardFormGiftCustomer .input-group-addon:focus {
  z-index: 2;
}
/* Additional fixes for input group compatibility */
.addify-resell-form .input-group .form-control:not(:first-child), #mainCardFormGiftCustomer .input-group .form-control:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.addify-resell-form .input-group-addon:not(:first-child), #mainCardFormGiftCustomer .input-group-addon:not(:first-child) {
  border-left: 0;
}
/* Ensure proper display for all input group elements */
.addify-resell-form .input-group > .form-control,
.addify-resell-form .input-group > .input-group-addon,
.addify-resell-form .input-group > .input-group-btn,
#mainCardFormGiftCustomer .input-group > .form-control,
#mainCardFormGiftCustomer .input-group > .input-group-addon,
#mainCardFormGiftCustomer .input-group > .input-group-btn {
  display: flex !important;
  align-items: center;
}
#btnNewReuseSellProduct {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin: 0 auto !important;
  float: none !important;
}
#btnNewReuseSellProduct button {
  background: #007bff;
  border: 1px solid #007bff;
  color: #fff;
  font-weight: 500;
  border-radius: 4px;
  font-size: 1rem;
  padding: 12px 24px;
  margin-top: 20px;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}
#btnNewReuseSellProduct button:hover {
  background: #0056b3;
  border-color: #0056b3;
  color: #fff;
}
#checkTemrmAndConditionsReuse {
  margin: 20px 0;
}
#checkTemrmAndConditionsReuse label {
  font-weight: 400;
  color: #495057;
  margin-left: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}
#checkTemrmAndConditionsReuse input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
/* Product page button styling */
.presta_reuse_button_display {
  display: block;
  padding: 10px 20px;
  margin: 10px 0;
  background-color: #ffffff;
  color: var(--addify-resell-text-color, #3b3b3b);
  border: 1px solid #7a7a7a;
  border-radius: 4px;
  text-decoration: none;
  font-size: var(--addify-resell-font-size, 14px);
  font-weight: var(--addify-resell-font-weight, bold);
  font-family: var(--addify-resell-font-family, inherit);
  font-style: var(--addify-resell-font-style, normal);
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}
/* Header link styling - exactly like Contact us link */
.header-resell-button,
.presta_reuse_button_display.header-resell-button,
#presta_reuse_button_display_header {
  display: inline !important;
  padding: 0 !important;
  margin: 0 15px 0 0 !important;
  background-color: transparent !important;
  color: #7a7a7a !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: normal !important;
  text-transform: none !important;
  transition: color 0.3s ease !important;
  width: auto !important;
  text-align: left !important;
  line-height: 1.5 !important;
  position: relative !important;
  vertical-align: baseline !important;
}
.header-resell-button:hover,
.header-resell-button:focus,
.presta_reuse_button_display.header-resell-button:hover,
.presta_reuse_button_display.header-resell-button:focus,
#presta_reuse_button_display_header:hover,
#presta_reuse_button_display_header:focus {
  background-color: transparent !important;
  color: #232323 !important;
  text-decoration: none !important;
}
/* Ensure proper spacing between resell and contact links */
#contact-link .header-resell-button + a,
#contact-link a + .header-resell-button {
  margin-left: 15px !important;
}
/* Main menu link styling - override button styles for main menu */
.main-menu-resell-link,
.presta_reuse_button_display.main-menu-resell-link,
#presta_reuse_button_display.main-menu-resell-link {
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
  color: var(--addify-resell-text-color, #7a7a7a) !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  font-size: var(--addify-resell-font-size, 14px) !important;
  font-weight: var(--addify-resell-font-weight, inherit) !important;
  font-family: var(--addify-resell-font-family, inherit) !important;
  font-style: var(--addify-resell-font-style, normal) !important;
  text-transform: none !important;
  transition: color 0.3s ease !important;
  width: auto !important;
  text-align: inherit !important;
  line-height: inherit !important;
  position: relative !important;
  vertical-align: baseline !important;
}
.main-menu-resell-link:hover,
.main-menu-resell-link:focus,
.presta_reuse_button_display.main-menu-resell-link:hover,
.presta_reuse_button_display.main-menu-resell-link:focus,
#presta_reuse_button_display.main-menu-resell-link:hover,
#presta_reuse_button_display.main-menu-resell-link:focus {
  background-color: transparent !important;
  color: var(--addify-resell-hover-color, #24b9d7) !important;
  text-decoration: none !important;
}
/* Mobile responsive for main menu link */
/* Mobile responsive for main menu link */
@media (max-width: 768px) {
  .main-menu-resell-link,
  .presta_reuse_button_display.main-menu-resell-link,
  #presta_reuse_button_display.main-menu-resell-link {
    display: inline !important;
    width: auto !important;
    margin: 0 !important;
    text-align: inherit !important;
  }
}
/* Additional specificity for main menu context */
.top-menu .main-menu-resell-link,
.top-menu .presta_reuse_button_display.main-menu-resell-link,
.top-menu #presta_reuse_button_display.main-menu-resell-link,
#header .main-menu-resell-link,
#header .presta_reuse_button_display.main-menu-resell-link,
#header #presta_reuse_button_display.main-menu-resell-link,
.header .main-menu-resell-link,
.header .presta_reuse_button_display.main-menu-resell-link,
.header #presta_reuse_button_display.main-menu-resell-link {
  display: inline !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
  color: var(--addify-resell-text-color, #7a7a7a) !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  font-size: var(--addify-resell-font-size, 14px) !important;
  font-weight: var(--addify-resell-font-weight, inherit) !important;
  font-family: var(--addify-resell-font-family, inherit) !important;
  font-style: var(--addify-resell-font-style, normal) !important;
  text-transform: none !important;
  transition: color 0.3s ease !important;
  text-align: inherit !important;
  line-height: inherit !important;
  position: relative !important;
  vertical-align: baseline !important;
}
/* Maximum specificity override for main menu link */
body #presta_reuse_button_display.main-menu-resell-link,
body .presta_reuse_button_display.main-menu-resell-link,
body .main-menu-resell-link,
html body #presta_reuse_button_display.main-menu-resell-link,
html body .presta_reuse_button_display.main-menu-resell-link,
html body .main-menu-resell-link {
  display: inline !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
  color: var(--addify-resell-text-color, #7a7a7a) !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  font-size: var(--addify-resell-font-size, 14px) !important;
  font-weight: var(--addify-resell-font-weight, inherit) !important;
  font-family: var(--addify-resell-font-family, inherit) !important;
  font-style: var(--addify-resell-font-style, normal) !important;
  text-transform: none !important;
  transition: color 0.3s ease !important;
  text-align: inherit !important;
  line-height: inherit !important;
  position: relative !important;
  vertical-align: baseline !important;
  max-width: none !important;
  min-width: auto !important;
  box-sizing: border-box !important;
}
/* Override addify-resell-button styles for main menu context */
.main-menu-resell-link.addify-resell-button,
.presta_reuse_button_display.main-menu-resell-link.addify-resell-button,
#presta_reuse_button_display.main-menu-resell-link.addify-resell-button {
  display: inline !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
  color: var(--addify-resell-text-color, #7a7a7a) !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  font-size: var(--addify-resell-font-size, 14px) !important;
  font-weight: var(--addify-resell-font-weight, inherit) !important;
  font-family: var(--addify-resell-font-family, inherit) !important;
  font-style: var(--addify-resell-font-style, normal) !important;
  text-transform: none !important;
  transition: color 0.3s ease !important;
  text-align: inherit !important;
  line-height: inherit !important;
  position: relative !important;
  vertical-align: baseline !important;
  max-width: none !important;
  min-width: auto !important;
  box-sizing: border-box !important;
}
/* Remove all CSS styling for the JavaScript-created header button */
#presta_reuse_button_display,
body #presta_reuse_button_display,
html body #presta_reuse_button_display {
  display: inline !important;
  width: auto !important;
  padding: 0 !important;
  margin-left: 15px !important;
  background-color: transparent !important;
  color: inherit !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  font-size: var(--addify-resell-font-size, 14px) !important;
  font-weight: inherit !important;
  text-transform: none !important;
  transition: color 0.3s ease !important;
  text-align: inherit !important;
  line-height: inherit !important;
  position: relative !important;
  vertical-align: baseline !important;
  max-width: none !important;
  min-width: auto !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;
}
#presta_reuse_button_display:hover,
#presta_reuse_button_display:focus,
#presta_reuse_button_display:active,
body #presta_reuse_button_display:hover,
body #presta_reuse_button_display:focus,
body #presta_reuse_button_display:active,
html body #presta_reuse_button_display:hover,
html body #presta_reuse_button_display:focus,
html body #presta_reuse_button_display:active {
  background-color: transparent !important;
  color: inherit !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
/* Remove all CSS styling for the footer button */
#presta_reuse_button_display_footer,
body #presta_reuse_button_display_footer,
html body #presta_reuse_button_display_footer {
  display: inline !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
  color: inherit !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  font-size: var(--addify-resell-font-size, 14px) !important;
  font-weight: inherit !important;
  text-transform: none !important;
  transition: color 0.3s ease !important;
  text-align: inherit !important;
  line-height: inherit !important;
  position: relative !important;
  vertical-align: baseline !important;
  max-width: none !important;
  min-width: auto !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;
}
#presta_reuse_button_display_footer:hover,
#presta_reuse_button_display_footer:focus,
#presta_reuse_button_display_footer:active,
body #presta_reuse_button_display_footer:hover,
body #presta_reuse_button_display_footer:focus,
body #presta_reuse_button_display_footer:active,
html body #presta_reuse_button_display_footer:hover,
html body #presta_reuse_button_display_footer:focus,
html body #presta_reuse_button_display_footer:active {
  background-color: transparent !important;
  color: inherit !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
/* Button in product variants */
.product-variants .presta_reuse_button_display {
  margin: 20px 0 10px;
  clear: both;
  float: none;
  width: 100%;
}
/* Button in product quantity */
.product-quantity .presta_reuse_button_display {
  display: inline-flex;
  align-items: center;
  float: left;
  margin: 0 0 .5rem .5rem;
  width: auto;
  min-width: auto;
  vertical-align: middle;
}
/* Button in product prices - after price */
.product-prices .presta_reuse_button_display {
  display: inline-block;
  margin: 0 0 0 10px;
  padding: 5px 15px;
  vertical-align: middle;
  width: auto;
  font-size: var(--addify-resell-font-size, 14px) !important;
}
/* Button in product prices - before price */
.product-prices > .presta_reuse_button_display {
  display: block;
  margin: 0 0 15px 0;
  width: auto;
  font-size: var(--addify-resell-font-size, 14px) !important;
}
.product-prices .current-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
/* Button in additional info */
.product-additional-info .presta_reuse_button_display {
  margin: 0 0 20px;
}
.presta_reuse_button_display:hover,
.presta_reuse_button_display:focus {
  background-color: #ebebeb;
  color: var(--addify-resell-hover-color, #3b3b3b);
  text-decoration: none;
}
/* Responsive styles */
@media (max-width: 768px) {
  .presta_reuse_button_display {
    width: 100%;
    margin: 10px 0;
  }
  .product-quantity .presta_reuse_button_display {
    width: 100%;
    display: block;
  }
  .product-prices .presta_reuse_button_display {
    width: 100%;
    margin: 10px 0;
    display: block;
  }
  .product-prices > .presta_reuse_button_display {
    margin: 0 0 15px 0;
  }
  .product-prices .current-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}
.store-info-resell-link {
  margin-left: 4px;
}
/* Enhanced Card Styling for Resell Message Page */
.card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.card-header {
    font-weight: 600;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 1rem;
    border-radius: 6px 6px 0 0;
    color: #495057;
}
.card-header h4, .card-header h5, .card-header h6 {
    margin: 0;
    color: #212529;
}
.card-header .material-icons {
    margin-right: 8px;
    vertical-align: middle;
}
.card-body {
    padding: 20px;
    font-size: 0.95rem;
}
.card-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 6px 6px;
}
.card .mb-2 {
    margin-bottom: 10px;
}
.card .font-medium {
    font-weight: 600;
}
.card .text-sm {
    font-size: 0.875rem;
}
.card .text-gray-700 {
    color: #495057;
}
.card .text-blue-600 {
    color: #007bff;
}
.card .text-yellow-600 {
    color: #ffc107;
}
.card .text-green-600 {
    color: #28a745;
}
.card .badge-success {
    background-color: #28a745;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
}
/* List Group Enhancements */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f1f3f4;
    padding: 12px 0;
}
.list-group-item:last-child {
    border-bottom: none;
}
.list-group-item .badge {
    font-size: 0.75em;
    padding: 4px 8px;
}
/* Badge Enhancements */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
}
.badge-info {
    background-color: #17a2b8;
    color: white;
}
.badge-primary {
    background-color: #007bff;
    color: white;
}
.badge-secondary {
    background-color: #6c757d;
    color: white;
}
.badge-success {
    background-color: #28a745;
    color: white;
}
.badge-danger {
    background-color: #dc3545;
    color: white;
}
/* Enhanced Progress Bar */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 0 20px;
    position: relative;
}
.reuse_bar_stepper_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}
.reuse_bar_stepper_item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 3px;
    background-color: #e9ecef;
    z-index: 1;
    border-radius: 2px;
}
.reuse_bar_stepper_item.completed:not(:last-child)::after {
    background-color: #28a745;
}
.reuse_bar_stepper_item.cancelled:not(:last-child)::after {
    background-color: #dc3545;
}
.reuse_step_counter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    z-index: 2;
    position: relative;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.reuse_bar_stepper_item.completed .reuse_step_counter {
    background-color: #28a745 !important;
    color: white !important;
    transform: scale(1.1);
}
.reuse_bar_stepper_item.active .reuse_step_counter {
    background-color: #007bff !important;
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}
.reuse_bar_stepper_item.cancelled .reuse_step_counter {
    background-color: #dc3545 !important;
    color: white !important;
}
.reuse_bar_stepper_item.cancelled .reuse_bar_step_name {
    color: #dc3545 !important;
    font-weight: bold;
}
.reuse_bar_step_name {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
    transition: color 0.3s ease;
}
.reuse_bar_stepper_item.completed .reuse_bar_step_name,
.reuse_bar_stepper_item.active .reuse_bar_step_name {
    color: #495057 !important;
    font-weight: 600;
}
/* Enhanced Message Styling */
.msg-background {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}
.sender-message-area {
    margin-bottom: 20px;
    clear: both;
}
.sender-message-area .bg-primary {
    background-color: #007bff !important;
    border-radius: 18px 18px 4px 18px;
    max-width: 100%;
    word-wrap: break-word;
}
.sender-message-area .bg-light {
    background-color: #e9ecef !important;
    border-radius: 18px 18px 18px 4px;
    max-width: 100%;
    word-wrap: break-word;
}
.sender-date-time {
    font-size: 0.75em;
    color: #6c757d;
    margin-top: 4px;
}
/* Enhanced Input Groups */
.addify-resell-form .input-group, #mainCardFormGiftCustomer .input-group {
    border-radius: 4px;
    overflow: hidden;
}
.addify-resell-form .input-group .form-control, #mainCardFormGiftCustomer .input-group .form-control {
    border: 1px solid #ced4da;
    border-radius: 0;
    padding: 10px 12px;
    font-size: 0.95rem;
}
.addify-resell-form .input-group .form-control:focus, #mainCardFormGiftCustomer .input-group .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}
.addify-resell-form .input-group-prepend .btn,
.addify-resell-form .input-group-append .btn,
#mainCardFormGiftCustomer .input-group-prepend .btn,
#mainCardFormGiftCustomer .input-group-append .btn {
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    color: #495057;
    padding: 10px 12px;
    transition: all 0.15s ease-in-out;
}
.addify-resell-form .input-group-prepend .btn:hover,
.addify-resell-form .input-group-append .btn:hover,
#mainCardFormGiftCustomer .input-group-prepend .btn:hover,
#mainCardFormGiftCustomer .input-group-append .btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}
.addify-resell-form .input-group-append .btn-primary,
#mainCardFormGiftCustomer .input-group-append .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}
.addify-resell-form .input-group-append .btn-primary:hover,
#mainCardFormGiftCustomer .input-group-append .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.addify-resell-form .input-group-append .btn-primary:disabled,
#mainCardFormGiftCustomer .input-group-append .btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
}
/* Enhanced Search Bar */
.addify-resell-form .input-group-text, #mainCardFormGiftCustomer .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #6c757d;
}
/* Enhanced File Upload */
.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.upload-btn-wrapper .btn {
    border: 1px solid #ced4da;
    color: #495057;
    background-color: #f8f9fa;
    padding: 10px 12px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}
.upload-btn-wrapper .btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}
.upload-btn-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}
/* Enhanced Buttons - Specific to module only */
.addifyresellproducts .btn,
#mainCardFormGiftCustomer .btn,
.addify-resell-button-container .btn,
.presta_reuse_button_display,
.main-menu-resell-link,
#btnNewReuseSellProduct .btn,
.upload-btn-wrapper .btn,
.presta-image .btn,
.send-button {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    padding: 8px 16px;
    font-size: 0.95rem;
}
.addifyresellproducts .btn-primary,
#mainCardFormGiftCustomer .btn-primary,
.addify-resell-button-container .btn-primary,
.presta_reuse_button_display.btn-primary,
.main-menu-resell-link.btn-primary,
#btnNewReuseSellProduct .btn-primary,
.upload-btn-wrapper .btn-primary,
.presta-image .btn-primary,
.send-button.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.addifyresellproducts .btn-primary:hover,
#mainCardFormGiftCustomer .btn-primary:hover,
.addify-resell-button-container .btn-primary:hover,
.presta_reuse_button_display.btn-primary:hover,
.main-menu-resell-link.btn-primary:hover,
#btnNewReuseSellProduct .btn-primary:hover,
.upload-btn-wrapper .btn-primary:hover,
.presta-image .btn-primary:hover,
.send-button.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}
.addifyresellproducts .btn-outline-danger,
#mainCardFormGiftCustomer .btn-outline-danger,
.addify-resell-button-container .btn-outline-danger,
.presta_reuse_button_display.btn-outline-danger,
.main-menu-resell-link.btn-outline-danger,
#btnNewReuseSellProduct .btn-outline-danger,
.upload-btn-wrapper .btn-outline-danger,
.presta-image .btn-outline-danger,
.send-button.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}
.addifyresellproducts .btn-outline-danger:hover,
#mainCardFormGiftCustomer .btn-outline-danger:hover,
.addify-resell-button-container .btn-outline-danger:hover,
.presta_reuse_button_display.btn-outline-danger:hover,
.main-menu-resell-link.btn-outline-danger:hover,
#btnNewReuseSellProduct .btn-outline-danger:hover,
.upload-btn-wrapper .btn-outline-danger:hover,
.presta-image .btn-outline-danger:hover,
.send-button.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}
.addifyresellproducts .btn-outline-secondary,
#mainCardFormGiftCustomer .btn-outline-secondary,
.addify-resell-button-container .btn-outline-secondary,
.presta_reuse_button_display.btn-outline-secondary,
.main-menu-resell-link.btn-outline-secondary,
#btnNewReuseSellProduct .btn-outline-secondary,
.upload-btn-wrapper .btn-outline-secondary,
.presta-image .btn-outline-secondary,
.send-button.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}
.addifyresellproducts .btn-outline-secondary:hover,
#mainCardFormGiftCustomer .btn-outline-secondary:hover,
.addify-resell-button-container .btn-outline-secondary:hover,
.presta_reuse_button_display.btn-outline-secondary:hover,
.main-menu-resell-link.btn-outline-secondary:hover,
#btnNewReuseSellProduct .btn-outline-secondary:hover,
.upload-btn-wrapper .btn-outline-secondary:hover,
.presta-image .btn-outline-secondary:hover,
.send-button.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}
/* Enhanced Alerts */
.alert {
    border-radius: 6px;
    border: none;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}
/* Enhanced Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}
.img-thumbnail {
    padding: 4px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}
/* Responsive Enhancements */
@media (max-width: 991px) {
  #mainCardFormGiftCustomer {
    padding: 20px 15px;
  }
  .stepper-wrapper {
    padding: 0 10px;
  }
  .reuse_step_counter {
    width: 36px;
    height: 36px;
  }
  .reuse_bar_step_name {
    font-size: 0.8rem;
  }
}
@media (max-width: 767px) {
  #mainCardFormGiftCustomer {
    padding: 15px 10px;
  }
  .form-group {
    margin-bottom: 16px;
  }
  .stepper-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  .reuse_bar_stepper_item:not(:last-child)::after {
    display: none;
  }
  .card-body {
    padding: 16px;
  }
  .card-header {
    padding: 12px 16px;
  }
  .card-block {
    padding: 6px !important;
    display: block !important;
  }
  /* Ensure flexbox layout for card-block.row */
  .card-block.row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
  }
  /* Ensure proper column sizing in mobile */
  .card-block.row .col-md-5 {
    width: 100% !important;
    float: none !important;
    margin-bottom: 15px !important;
  }
  .card-block.row .col-md-1 {
    display: none !important;
  }
  .addify-resell-form .input-group, #mainCardFormGiftCustomer .input-group {
    flex-direction: column;
  }
  .addify-resell-form .input-group-prepend,
  .addify-resell-form .input-group-append,
  #mainCardFormGiftCustomer .input-group-prepend,
  #mainCardFormGiftCustomer .input-group-append {
    width: 100%;
  }
  .addify-resell-form .input-group-prepend .btn,
  .addify-resell-form .input-group-append .btn,
  #mainCardFormGiftCustomer .input-group-prepend .btn,
  #mainCardFormGiftCustomer .input-group-append .btn {
    width: 100%;
    border-radius: 4px;
    margin: 4px 0;
  }
  .addify-resell-form .input-group .form-control, #mainCardFormGiftCustomer .input-group .form-control {
    border-radius: 4px;
    margin: 4px 0;
  }
}
/* Resell History Table Styling */
#resell_history_list {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
#resell_history_list thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 8px;
    font-weight: 600;
    color: #495057;
    text-align: left;
    font-size: 0.875rem;
}
#resell_history_list tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}
#resell_history_list tbody tr:hover {
    background-color: #f8f9fa;
}
.imageProductList {
    border-radius: 4px;
    border: 1px solid #dee2e6;
}
.productAttrReuse {
    font-style: italic;
    color: #6c757d;
}
.status_rm_change_color {
    font-weight: 500;
    text-align: center;
    min-width: 80px;
}
.presta_reuse_btn_view_list {
    display: inline-block;
    text-decoration: none;
}
.btnViewListOldItem {
    transition: background-color 0.2s ease;
}
.btnViewListOldItem:hover {
    background-color: #005a87 !important;
}
/* Detail View Styling */
.reuse_sell_old_item_view_details div,
.sell_old_item_view_customer_address div {
    margin-bottom: 8px;
    font-size: 0.875rem;
}
/* Resell Detail Page Specific Layout */
#reuse_customer_details_views.card-block.row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    margin: 0 !important;
    padding: 1.25rem !important;
}
#reuse_customer_details_views .col-md-5 {
    width: 41.66667% !important;
    float: left !important;
    position: relative !important;
    min-height: 1px !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
#reuse_customer_details_views .col-md-1 {
    width: 8.33333% !important;
    float: left !important;
    position: relative !important;
    min-height: 1px !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* Mobile responsive for resell detail */
@media (max-width: 768px) {
    #reuse_customer_details_views.card-block.row {
        flex-direction: column !important;
    }
    #reuse_customer_details_views .col-md-5 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 15px !important;
    }
    #reuse_customer_details_views .col-md-1 {
        display: none !important;
    }
}
.viewReuseImageProduct {
    border-radius: 4px;
    border: 1px solid #dee2e6;
}
.prodAttrNameViewReuse {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}
.reuseSellOlditemViewDetails {
    color: #333;
}
.tableBackgrounColorReuseSellOldItemView {
    background-color: #f8f9fa;
}
.itemRepairTexCenter {
    text-align: center;
    vertical-align: middle;
}
/* Force center alignment in resell detail table cells */
#reuseResellRequestMainTabTableResponsive td.itemReuseSellOldItemTexCenterConditos {
    text-align: center !important;
    vertical-align: middle !important;
}
#reuseResellRequestMainTabTableResponsive td.itemReuseSellOldItemTexCenterConditos * {
    text-align: center !important;
}
.tableCenterText {
    text-align: center;
}
/* Chat Styling */
.msg-background {
    background-color: #f8f9fa;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
}
.message-heading {
    background-color: #fff;
    padding: 15px;
    border-bottom: 1px solid #e3e3e3;
}
.search_bar {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    background: white !important;
    color: #333 !important;
    z-index: 10 !important;
    position: relative !important;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}
.sender-message-area {
    margin-bottom: 15px;
    clear: both;
}
.sender-date-time {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
}
.presta-image-name {
    font-weight: 500;
    color: #007cba;
    margin-bottom: 5px;
}
.presta-image .btn {
    padding: 4px 8px;
    font-size: 12px;
}
/* Responsive table */
@media (max-width: 768px) {
    /* Button Layout - Mobile */
    .resell-history-back-btn,
    .resell-history-add-btn {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto 15px auto !important;
        text-align: center !important;
    }
    .resell-history-back-btn {
        margin-bottom: 15px !important;
    }
    .resell-history-add-btn {
        margin-bottom: 0 !important;
    }
    #resell_history_list {
        font-size: 12px;
    }
    #resell_history_list thead th,
    #resell_history_list tbody td {
        padding: 8px 4px;
    }
    .imageProductList {
        max-width: 40px !important;
        max-height: 40px !important;
    }
    .stepper-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    .reuse_bar_stepper_item:not(:last-child)::after {
        display: none;
    }
}
/* Ensure file attachment button is visible */
.file-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: 1px solid #6c757d !important;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    padding: 8px 12px !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
}
.file-btn:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
}
.input-group-prepend .file-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/***** End PS9 Default Theme-Like Styling *****/
/* FINAL OVERRIDE: Force left alignment and padding for all labels and inputs in the resell form */
#mainCardFormGiftCustomer,
#mainCardFormGiftCustomer .card,
#mainCardFormGiftCustomer .card-block,
#mainCardFormGiftCustomer .container,
#mainCardFormGiftCustomer .row,
#mainCardFormGiftCustomer .col-md-6,
#mainCardFormGiftCustomer .col-12 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#mainCardFormGiftCustomer .form-group label,
#mainCardFormGiftCustomer label,
#mainCardFormGiftCustomer .col-md-6 label,
#mainCardFormGiftCustomer .col-12 label,
#mainCardFormGiftCustomer label[for] {
  text-align: left !important;
  padding-left: 12px !important;
  margin-left: 0 !important;
  display: block !important;
  width: 100% !important;
  font-weight: 500 !important;
}
#mainCardFormGiftCustomer input.form-control,
#mainCardFormGiftCustomer select.form-control,
#mainCardFormGiftCustomer textarea.form-control {
  padding-left: 12px !important;
  margin-left: 0 !important;
  width: 100% !important;
}
#mainCardFormGiftCustomer select.form-control {
  padding-left: 14px !important;
  text-indent: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  font-size: 1rem !important;
  height: auto !important;
  line-height: 1.5 !important;
  white-space: normal !important;
}
#mainCardFormGiftCustomer select.form-control option {
  white-space: normal !important;
}
#mainCardFormGiftCustomer .col-md-6 {
  min-width: 260px !important;
}
#mainCardFormGiftCustomer .form-group {
  min-width: 0 !important;
}
/* Ensure proper form layout when conditional fields are shown */
#mainCardFormGiftCustomer .form-group[style*="display: none"] {
  display: none !important;
}
#mainCardFormGiftCustomer .form-group[style*="display: block"] {
  display: block !important;
}
/* Force description field to always be full width */
#mainCardFormGiftCustomer #reuse_prod_description_container {
  width: 100% !important;
  clear: both !important;
}
#mainCardFormGiftCustomer #reuse_prod_description_container label {
  text-align: left !important;
  padding-left: 12px !important;
  margin-left: 0 !important;
  display: block !important;
  width: 100% !important;
  font-weight: 500 !important;
}
#mainCardFormGiftCustomer #reuse_prod_description_container textarea {
  padding-left: 12px !important;
  margin-left: 0 !important;
  width: 100% !important;
}
/* Remove any margin-top from the first form row after the header */
#mainCardFormGiftCustomer > .row:first-of-type {
  margin-top: 0 !important;
}
/* Chat Message Box Styling - Matching BO Design */
.container.card-blick {
  background: #ffffff !important;
  border: 1px solid #e3e3e3 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  margin-bottom: 20px !important;
}
.message-heading {
  background: #f8f9fa !important;
  border-bottom: 1px solid #e3e3e3 !important;
  padding: 16px 18px 12px 18px !important;
  border-radius: 6px 6px 0 0 !important;
  margin-bottom: 0 !important;
}
.message-heading h3 {
  margin: 0 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  color: #333 !important;
}
.message-heading .col-sm-6 {
  text-align: right !important;
}
.search_bar {
  max-width: 220px !important;
  display: inline-block !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 6px 12px !important;
  font-size: 14px !important;
}
.search_bar:focus {
  border-color: #007cba !important;
  box-shadow: 0 0 0 2px rgba(0,124,186,0.2) !important;
  outline: none !important;
}
/* Chat Messages Area */
#scrollChat {
  padding: 15px !important;
  background: #ffffff !important;
  border: 1px solid #e3e3e3 !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  height: 350px !important;
  min-height: 350px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  visibility: visible !important;
}
#scrollChat .col-md-12 {
  padding: 0 !important;
  position: relative !important;
  z-index: 2 !important;
  height: auto !important;
  min-height: 100% !important;
  overflow: visible !important;
}
/* Force message visibility */
.sender-message-area,
.receiver-message-area {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-bottom: 18px !important;
  clear: both !important;
  position: relative !important;
  z-index: 3 !important;
  max-height: none !important;
  overflow: visible !important;
}
.sender-message-area > div,
.receiver-message-area > div {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 4 !important;
  max-height: none !important;
  overflow: visible !important;
}
/* Override any conflicting styles */
#scrollChat * {
  max-height: none !important;
  overflow: visible !important;
}
/* Force container to show all content */
.container.card-blick {
  overflow: visible !important;
}
#contaner {
  overflow: visible !important;
}
/* Ensure messages are not clipped */
.msg-background {
  overflow: visible !important;
  max-height: none !important;
}
/* Message Bubbles */
.sender-message-area,
.receiver-message-area {
  margin-bottom: 18px !important;
  clear: both !important;
}
.sender-message-area:last-child,
.receiver-message-area:last-child {
  margin-bottom: 0 !important;
}
/* Customer Messages (Right) */
.sender-message-area > div {
  display: inline-block !important;
  float: right !important;
  background: #007cba !important;
  color: white !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
  padding: 10px 16px !important;
  min-width: 60px !important;
  max-width: 70% !important;
  margin-right: 8px !important;
  word-break: break-word !important;
}
/* Admin Messages (Left) */
.receiver-message-area > div {
  display: inline-block !important;
  float: left !important;
  background: #f1f1f1 !important;
  color: #222 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
  padding: 10px 16px !important;
  min-width: 60px !important;
  max-width: 70% !important;
  margin-left: 8px !important;
  word-break: break-word !important;
}
/* Message Text */
.sender-message-area > div > div:first-child,
.receiver-message-area > div > div:first-child {
  word-break: break-word !important;
  margin-bottom: 4px !important;
}
/* Timestamps */
.text-muted {
  font-size: 11px !important;
  margin-top: 4px !important;
}
.sender-message-area .text-muted {
  text-align: right !important;
  color: rgba(255,255,255,0.8) !important;
}
.receiver-message-area .text-muted {
  text-align: left !important;
  color: #666 !important;
}
/* Images in Messages */
.sender-message-area img,
.receiver-message-area img {
  max-width: 200px !important;
  max-height: 200px !important;
  border-radius: 4px !important;
  display: block !important;
  margin-bottom: 4px !important;
  object-fit: cover !important;
}
/* Handle broken images gracefully */
.sender-message-area img[src*="uploads/"]:not([src*="data:"]),
.receiver-message-area img[src*="uploads/"]:not([src*="data:"]) {
  min-height: 100px !important;
  background: #f8f9fa !important;
  border: 1px solid #e3e3e3 !important;
}
/* Footer Area */
.footer-area {
  margin-top: 0 !important;
  background: #f8f9fa !important;
  padding: 18px 18px 10px 18px !important;
  border-radius: 0 0 6px 6px !important;
  border-top: 1px solid #e3e3e3 !important;
}
.footer-area .col-md-12 {
  padding: 0 !important;
}
/* File Upload Button */
.upload-btn-wrapper {
  display: inline-block !important;
  vertical-align: middle !important;
}
.file-btn {
  padding: 6px 10px !important;
  background: #f8f9fa !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  color: #666 !important;
  cursor: pointer !important;
}
.file-btn:hover {
  background: #e9ecef !important;
  border-color: #adb5bd !important;
}
/* Text Input - High specificity to override Bootstrap */
.presta-text-area,
input.presta-text-area,
.form-control.presta-text-area,
input.form-control.presta-text-area,
input[type="text"].presta-text-area {
  width: calc(100% - 122px) !important;
  display: inline-block !important;
  vertical-align: middle !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 6px 12px !important;
  font-size: 14px !important;
}
.presta-text-area:focus {
  border-color: #007cba !important;
  box-shadow: 0 0 0 2px rgba(0,124,186,0.2) !important;
  outline: none !important;
}
/* Send Button */
.send-button {
  padding: 6px 16px !important;
  vertical-align: middle !important;
  background: #007cba !important;
  border: 1px solid #007cba !important;
  border-radius: 20px !important;
  color: white !important;
  cursor: pointer !important;
}
.send-button:hover:not(:disabled) {
  background: #005a8b !important;
  border-color: #005a8b !important;
}
.send-button:disabled {
  background: #6c757d !important;
  border-color: #6c757d !important;
  cursor: not-allowed !important;
}
/* File Selection Display */
#file_selected {
  margin-bottom: 10px !important;
  font-size: 12px !important;
  color: #666 !important;
}
#file_selected div {
  margin-bottom: 4px !important;
}
#file_selected img {
  max-width: 120px !important;
  max-height: 120px !important;
  border-radius: 4px !important;
  border: 1px solid #ddd !important;
}
/* Separator */
hr {
  margin: 0 !important;
  border-top: 1px solid #e3e3e3 !important;
}
/* Responsive Design */
@media (max-width: 768px) {
  .sender-message-area > div,
  .receiver-message-area > div {
    max-width: 85% !important;
  }
  .presta-text-area {
    width: calc(100% - 140px) !important;
  }
  .file-btn {
    padding: 6px 8px !important;
  }
  .send-button {
    padding: 6px 12px !important;
  }
}
/* Responsive chat styling */
@media (max-width: 768px) {
  #scrollChat .sender-message-area > div {
    max-width: 85% !important;
  }
  .footer-area .form-group {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .footer-area .upload-btn-wrapper {
    margin-right: 0 !important;
    align-self: flex-start !important;
  }
  .footer-area .text-area {
    margin: 0 !important;
  }
  .footer-area .send-button {
    align-self: flex-end !important;
  }
}
/* Ensure search input is properly styled and interactive - matching BO */
#admin_reuse_search_msg_keyup_chat,
.admin_reuse_search_msg_keyup_chat {
  background: white !important;
  color: #333 !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 6px 12px !important;
  font-size: 14px !important;
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  z-index: 10 !important;
  position: relative !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
/* ========================================
   COUPON STATUS STYLING
   ======================================== */
/* Active Coupon Styling */
.coupon-active {
    color: #28a745 !important;
    background: #d4edda !important;
    border: 2px solid #c3e6cb !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.1) !important;
}
/* Used Coupon Styling */
.coupon-used {
    color: #dc3545 !important;
    background: #f8d7da !important;
    border: 2px solid #f5c6cb !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    text-decoration: line-through !important;
    opacity: 0.8 !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1) !important;
}
/* Expired Coupon Styling */
.coupon-expired {
    color: #6c757d !important;
    background: #e2e3e5 !important;
    border: 2px solid #d6d8db !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    opacity: 0.7 !important;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.1) !important;
}
/* Coupon Container Styling */
.coupon-container {
    margin: 10px 0 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
}
.coupon-container .coupon-code {
    font-family: 'Courier New', monospace !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
}
.coupon-container .coupon-amount {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #24b9d7 !important;
}
.coupon-container .coupon-expiry {
    font-size: 12px !important;
    color: #6c757d !important;
    margin-top: 5px !important;
}
/* Responsive Design for Coupons */
@media (max-width: 768px) {
    .coupon-active,
    .coupon-used,
    .coupon-expired {
        font-size: 14px !important;
        padding: 6px 10px !important;
    }
    .coupon-container {
        padding: 10px !important;
    }
    .coupon-container .coupon-code {
        font-size: 14px !important;
    }
    .coupon-container .coupon-amount {
        font-size: 16px !important;
    }
}
/* Resell form spacing adjustments */
.addify-resell-form .form-group {
  margin-bottom: 14px !important;
}
.addify-resell-form #checkTemrmAndConditionsReuse {
  margin: 6px 0 8px 0 !important;
}
.addify-resell-form .resell-submit-container {
  margin-top: 8px !important;
  padding-bottom: 12px !important;
}
/* ========================================
   Responsive helpers for module pages
   ======================================== */
.table-responsive {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border: 0 !important;
}
/* Ensure table has minimum width for mobile scrolling */
#resell_history_list {
  min-width: 600px !important;
}
/* Resell history table: improve wrapping and actions on small screens */
@media (max-width: 768px) {
  #resell_history_list {
    font-size: 12px !important;
    min-width: 600px !important;
  }
  #resell_history_list th,
  #resell_history_list td {
    white-space: nowrap !important;
    padding: 8px 4px !important;
    vertical-align: middle !important;
  }
  /* Product name column - allow wrapping */
  #resell_history_list th:nth-child(3),
  #resell_history_list td:nth-child(3) {
    white-space: normal !important;
    word-break: break-word !important;
    min-width: 120px !important;
    max-width: 150px !important;
  }
  /* Date column - prevent wrapping */
  #resell_history_list th:nth-child(5),
  #resell_history_list td:nth-child(5) {
    white-space: nowrap !important;
    min-width: 80px !important;
  }
  /* Keep image cell compact */
  #resell_history_list td:nth-child(2) {
    white-space: nowrap !important;
    width: 50px !important;
  }
  /* Status column - keep compact */
  #resell_history_list th:nth-child(6),
  #resell_history_list td:nth-child(6) {
    white-space: nowrap !important;
    width: 80px !important;
  }
  /* Stack action buttons */
  #resell_history_list td:nth-child(7) {
    white-space: nowrap !important;
    width: 100px !important;
  }
  #resell_history_list td:nth-child(7) a,
  #resell_history_list td:nth-child(7) button {
    display: block !important;
    margin: 2px 0 !important;
    width: 100% !important;
    font-size: 11px !important;
    padding: 4px 6px !important;
  }
  /* Reduce image size on mobile */
  .imageProductList {
    max-width: 40px !important;
    max-height: 40px !important;
  }
  /* Make status badges smaller */
  .status_rm_change_color {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }
}
/* Resell detail table: allow wrapping and constrain image on mobile */
@media (max-width: 768px) {
  #reuseResellRequestMainTabTableResponsive table {
    min-width: 500px !important;
  }
  #reuseResellRequestMainTabTableResponsive table th,
  #reuseResellRequestMainTabTableResponsive table td {
    white-space: normal !important;
    word-break: break-word !important;
    padding: 8px 4px !important;
  }
  .viewReuseImageProduct {
    max-width: 60px !important;
    max-height: 60px !important;
  }
}
/* Resell form header and submit button tweaks on mobile */
@media (max-width: 768px) {
  .resell-form-header {
    padding: 20px 16px 16px 16px !important;
    margin-bottom: 30px !important;
  }
  .resell-form-header .material-icons {
    font-size: 2.2rem !important;
    height: 2.2rem !important;
    width: 2.2rem !important;
  }
  .resell-form-header h2 {
    font-size: 1.6rem !important;
  }
  .addify-resell-form .resell-submit-container .btn {
    width: 100% !important;
  }
  /* Additional mobile button improvements */
  .resell-history-back-btn .material-icons,
  .resell-history-add-btn .material-icons {
    margin-right: 8px !important;
  }
}
/* Mobile layout fixes for chat footer */
@media (max-width: 768px) {
  .footer-area form.form-inline {
    display: block !important;
  }
  .footer-area .col-md-12 {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
  }
  .footer-area .upload-btn-wrapper {
    flex-shrink: 0 !important;
    order: 1 !important;
  }
  .footer-area .file-btn {
    height: 40px !important;
    min-width: 40px !important;
    padding: 6px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-area .presta-text-area {
    flex: 1 !important;
    order: 2 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .footer-area .send-button {
    order: 3 !important;
    width: 100% !important;
    flex-basis: 100% !important;
    margin: 0 !important;
    margin-top: 8px !important;
  }
}
/* Force override for the specific chat input */
#customer_reuse_chat_text_message.presta-text-area,
input#customer_reuse_chat_text_message.presta-text-area {
  width: calc(100% - 122px) !important;
}
/* Specific styling for Cancel Resell Request button */
#cancelResellRequestFrontOffice {
  display: block !important;
}
/* Addify Resell Products Dynamic CSS - Generated from BO settings */
/* Product page button styling - ALL POSITIONS */
body .product-additional-info #presta_reuse_button_display,
body .product-variants #presta_reuse_button_display,
body .product-quantity #presta_reuse_button_display,
body .current-price #presta_reuse_button_display,
body .product-price #presta_reuse_button_display,
body .product-discount #presta_reuse_button_display,
body .product-information #presta_reuse_button_display,
body .product-details #presta_reuse_button_display,
body .product-actions #presta_reuse_button_display,
body .product-customization #presta_reuse_button_display,
html body .product-additional-info #presta_reuse_button_display,
html body .product-variants #presta_reuse_button_display,
html body .product-quantity #presta_reuse_button_display,
html body .current-price #presta_reuse_button_display,
html body .product-price #presta_reuse_button_display,
html body .product-discount #presta_reuse_button_display,
html body .product-information #presta_reuse_button_display,
html body .product-details #presta_reuse_button_display,
html body .product-actions #presta_reuse_button_display,
html body .product-customization #presta_reuse_button_display,
/* Additional ultra-specific selectors for any possible context */
body #presta_reuse_button_display,
html body #presta_reuse_button_display,
body .presta_reuse_button_display.addify-resell-button,
html body .presta_reuse_button_display.addify-resell-button,
body .product-prices #presta_reuse_button_display,
html body .product-prices #presta_reuse_button_display,
body .product-prices .presta_reuse_button_display.addify-resell-button,
html body .product-prices .presta_reuse_button_display.addify-resell-button,
/* Override any conflicting styles with maximum specificity */
body .presta_reuse_button_display,
html body .presta_reuse_button_display {
    font-size: var(--addify-resell-font-size, 17px) !important;
    font-family: var(--addify-resell-font-family, Manrope, sans-serif) !important;
    color: var(--addify-resell-text-color, #7a7a7a) !important;
    background: none !important;
    border: none !important;
    padding: 10 !important;
    margin: 0 !important;
    text-decoration: none !important;
    font-weight: var(--addify-resell-font-weight, normal) !important;
    font-style: var(--addify-resell-font-style, normal) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: inline !important;
    width: auto !important;
    text-transform: none !important;
    transition: color 0.3s ease !important;
    text-align: inherit !important;
    line-height: inherit !important;
    position: relative !important;
    vertical-align: baseline !important;
    max-width: none !important;
    min-width: auto !important;
    box-sizing: border-box !important;
    outline: none !important;
    cursor: pointer !important;
}
/* Hover effects */
body .product-additional-info #presta_reuse_button_display:hover,
body .product-variants #presta_reuse_button_display:hover,
body .product-quantity #presta_reuse_button_display:hover,
body .current-price #presta_reuse_button_display:hover,
body .product-price #presta_reuse_button_display:hover,
body .product-discount #presta_reuse_button_display:hover,
body .product-information #presta_reuse_button_display:hover,
body .product-details #presta_reuse_button_display:hover,
body .product-actions #presta_reuse_button_display:hover,
body .product-customization #presta_reuse_button_display:hover,
html body .product-additional-info #presta_reuse_button_display:hover,
html body .product-variants #presta_reuse_button_display:hover,
html body .product-quantity #presta_reuse_button_display:hover,
html body .current-price #presta_reuse_button_display:hover,
html body .product-price #presta_reuse_button_display:hover,
html body .product-discount #presta_reuse_button_display:hover,
html body .product-information #presta_reuse_button_display:hover,
html body .product-details #presta_reuse_button_display:hover,
html body .product-actions #presta_reuse_button_display:hover,
html body .product-customization #presta_reuse_button_display:hover,
body .product-additional-info .presta_reuse_button_display.addify-resell-button:hover,
body .product-variants .presta_reuse_button_display.addify-resell-button:hover,
body .product-quantity .presta_reuse_button_display.addify-resell-button:hover,
body .current-price .presta_reuse_button_display.addify-resell-button:hover,
body .product-price .presta_reuse_button_display.addify-resell-button:hover,
body .product-discount .presta_reuse_button_display.addify-resell-button:hover,
body .product-information .presta_reuse_button_display.addify-resell-button:hover,
body .product-details .presta_reuse_button_display.addify-resell-button:hover,
body .product-actions .presta_reuse_button_display.addify-resell-button:hover,
body .product-customization .presta_reuse_button_display.addify-resell-button:hover,
html body .product-additional-info .presta_reuse_button_display.addify-resell-button:hover,
html body .product-variants .presta_reuse_button_display.addify-resell-button:hover,
html body .product-quantity .presta_reuse_button_display.addify-resell-button:hover,
html body .current-price .presta_reuse_button_display.addify-resell-button:hover,
html body .product-price .presta_reuse_button_display.addify-resell-button:hover,
html body .product-discount .presta_reuse_button_display.addify-resell-button:hover,
html body .product-information .presta_reuse_button_display.addify-resell-button:hover,
html body .product-details .presta_reuse_button_display.addify-resell-button:hover,
html body .product-actions .presta_reuse_button_display.addify-resell-button:hover,
html body .product-customization .presta_reuse_button_display.addify-resell-button:hover,
/* Additional ultra-specific hover selectors */
body #presta_reuse_button_display:hover,
html body #presta_reuse_button_display:hover,
body .presta_reuse_button_display.addify-resell-button:hover,
html body .presta_reuse_button_display.addify-resell-button:hover,
body .product-prices #presta_reuse_button_display:hover,
html body .product-prices #presta_reuse_button_display:hover,
body .product-prices .presta_reuse_button_display.addify-resell-button:hover,
html body .product-prices .presta_reuse_button_display.addify-resell-button:hover {
    color: var(--addify-resell-hover-color, #24b9d7) !important;
    background: none !important;
    text-decoration: none !important;
}
/* Main menu button styling - PLAIN TEXT LIKE HEADER */
body .top-menu .presta_reuse_button_display.main-menu-resell-link,
body #header .presta_reuse_button_display.main-menu-resell-link,
body .header .presta_reuse_button_display.main-menu-resell-link,
body .top-menu .addify-resell-button.main-menu-resell-link,
body #header .addify-resell-button.main-menu-resell-link,
body .header .addify-resell-button.main-menu-resell-link,
body .top-menu #presta_reuse_button_display.main-menu-resell-link,
body #header #presta_reuse_button_display.main-menu-resell-link,
body .header #presta_reuse_button_display.main-menu-resell-link,
html body .top-menu .presta_reuse_button_display.main-menu-resell-link,
html body #header .presta_reuse_button_display.main-menu-resell-link,
html body .header .presta_reuse_button_display.main-menu-resell-link,
html body .top-menu .addify-resell-button.main-menu-resell-link,
html body #header .addify-resell-button.main-menu-resell-link,
html body .header .addify-resell-button.main-menu-resell-link,
html body .top-menu #presta_reuse_button_display.main-menu-resell-link,
html body #header #presta_reuse_button_display.main-menu-resell-link,
html body .header #presta_reuse_button_display.main-menu-resell-link {
    font-size: var(--addify-resell-font-size, 17px) !important;
    font-family: var(--addify-resell-font-family, Manrope, sans-serif) !important;
    color: var(--addify-resell-text-color, #7a7a7a) !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    font-weight: var(--addify-resell-font-weight, normal) !important;
    font-style: var(--addify-resell-font-style, normal) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: inline !important;
    width: auto !important;
    text-transform: uppercase !important;
    transition: color 0.3s ease !important;
    text-align: inherit !important;
    line-height: inherit !important;
    position: relative !important;
    vertical-align: baseline !important;
    max-width: none !important;
    min-width: auto !important;
    box-sizing: border-box !important;
    outline: none !important;
    cursor: pointer !important;
    font-weight: 600 !important;
}
body .top-menu .presta_reuse_button_display.main-menu-resell-link:hover,
body #header .presta_reuse_button_display.main-menu-resell-link:hover,
body .header .presta_reuse_button_display.main-menu-resell-link:hover,
body .top-menu .addify-resell-button.main-menu-resell-link:hover,
body #header .addify-resell-button.main-menu-resell-link:hover,
body .header .addify-resell-button.main-menu-resell-link:hover,
body .top-menu #presta_reuse_button_display.main-menu-resell-link:hover,
body #header #presta_reuse_button_display.main-menu-resell-link:hover,
body .header #presta_reuse_button_display.main-menu-resell-link:hover,
html body .top-menu .presta_reuse_button_display.main-menu-resell-link:hover,
html body #header .presta_reuse_button_display.main-menu-resell-link:hover,
html body .header .presta_reuse_button_display.main-menu-resell-link:hover,
html body .top-menu .addify-resell-button.main-menu-resell-link:hover,
html body #header .addify-resell-button.main-menu-resell-link:hover,
html body .header .addify-resell-button.main-menu-resell-link:hover,
html body .top-menu #presta_reuse_button_display.main-menu-resell-link:hover,
html body #header #presta_reuse_button_display.main-menu-resell-link:hover,
html body .header #presta_reuse_button_display.main-menu-resell-link:hover {
    color: var(--addify-resell-hover-color, #24b9d7) !important;
    background: none !important;
    text-decoration: none !important;
}
/* Header button styling - TEXT ONLY */
body .presta_reuse_button_display.header-resell-button,
html body .presta_reuse_button_display.header-resell-button,
body #presta_reuse_button_display_header,
html body #presta_reuse_button_display_header {
    font-size: var(--addify-resell-font-size, 17px) !important;
    font-family: var(--addify-resell-font-family, Arial, sans-serif) !important;
    color: var(--addify-resell-text-color, #000000) !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    font-weight: var(--addify-resell-font-weight, normal) !important;
    font-style: var(--addify-resell-font-style, normal) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
body .presta_reuse_button_display.header-resell-button:hover,
html body .presta_reuse_button_display.header-resell-button:hover,
body #presta_reuse_button_display_header:hover,
html body #presta_reuse_button_display_header:hover {
    color: var(--addify-resell-hover-color, #24b9d7) !important;
    background: none !important;
    text-decoration: none !important;
}
/* Footer button styling - PLAIN TEXT LIKE HEADER */
body #presta_reuse_button_display_footer,
html body #presta_reuse_button_display_footer,
body .presta_reuse_button_display.addify-resell-button#presta_reuse_button_display_footer,
html body .presta_reuse_button_display.addify-resell-button#presta_reuse_button_display_footer,
body .footer-container #presta_reuse_button_display_footer,
html body .footer-container #presta_reuse_button_display_footer,
body .block-contact #presta_reuse_button_display_footer,
html body .block-contact #presta_reuse_button_display_footer {
    font-size: var(--addify-resell-font-size, 17px) !important;
    font-family: var(--addify-resell-font-family, Arial, sans-serif) !important;
    color: var(--addify-resell-text-color, #000000) !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    font-weight: var(--addify-resell-font-weight, normal) !important;
    font-style: var(--addify-resell-font-style, normal) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: inline !important;
    width: auto !important;
    text-transform: none !important;
    transition: color 0.3s ease !important;
    text-align: inherit !important;
    line-height: inherit !important;
    position: relative !important;
    vertical-align: baseline !important;
    max-width: none !important;
    min-width: auto !important;
    box-sizing: border-box !important;
    outline: none !important;
    cursor: pointer !important;
}
body #presta_reuse_button_display_footer:hover,
html body #presta_reuse_button_display_footer:hover,
body .presta_reuse_button_display.addify-resell-button#presta_reuse_button_display_footer:hover,
html body .presta_reuse_button_display.addify-resell-button#presta_reuse_button_display_footer:hover,
body .footer-container #presta_reuse_button_display_footer:hover,
html body .footer-container #presta_reuse_button_display_footer:hover,
body .block-contact #presta_reuse_button_display_footer:hover,
html body .block-contact #presta_reuse_button_display_footer:hover {
    color: var(--addify-resell-hover-color, #24b9d7) !important;
    background: none !important;
    text-decoration: none !important;
}
/* My account button styling */
body .addify-resell-account-link,
html body .addify-resell-account-link {
    font-size: var(--addify-resell-font-size, 17px) !important;
    font-family: var(--addify-resell-font-family, Arial, sans-serif) !important;
    color: var(--addify-resell-text-color, #000000) !important;
    background-color: #24b9d7 !important;
    font-weight: var(--addify-resell-font-weight, normal) !important;
    font-style: var(--addify-resell-font-style, normal) !important;
}
body .addify-resell-account-link:hover,
html body .addify-resell-account-link:hover {
    color: var(--addify-resell-hover-color, #24b9d7) !important;
}
/* File input container styling */
.file-input-container {
    position: relative;
    display: block;
}

.file-input-container #file_delete_icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-weight: bold;
}

.file-input-container #file_delete_icon:hover {
    background: #c82333;
}

/* Ensure file input doesn't overlap with delete icon */
.file-input-container input[type="file"] {
    padding-right: 35px;
}

/* Fix cramped text in select dropdowns */
select.form-control:not([size]):not([multiple]) {
    height: calc(2.5rem - -5px) !important;
}

/* ==== LAYOUT FIX: Keep product info visible without overlapping next fields ==== */

/* Selected product info should take normal flow, with spacing */
.product-search-container .selected-result {
    position: static !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    padding: 10px !important;
    background: #e8f5e8 !important;
    border: 1px solid #28a745 !important;
    border-radius: 4px !important;
    display: none !important;
    z-index: auto !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.product-search-container .selected-result.show {
    display: block !important;
}

/* Ensure the product search container is positioned relative */
.product-search-container {
    position: relative !important;
}

/* Keep two-column layout stable */
.addify-resell-form .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}

.addify-resell-form .row .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    position: relative !important;
    padding-bottom: 0 !important;
}

/* Mobile Number field full width within its column */
#checkhiedfed {
    flex: initial !important;
    max-width: 100% !important;
}

/* Column padding adjustments */
@media (min-width: 768px) {
    .addify-resell-form .row .col-md-6:nth-child(odd) {
        padding-right: 15px !important;
        clear: left !important;
    }

    .addify-resell-form .row .col-md-6:nth-child(even) {
        padding-left: 15px !important;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .product-search-container .selected-result {
        position: static !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        z-index: auto !important;
    }

    .addify-resell-form .row .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

#viewFormModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#viewFormModal .modal-title {
  margin: 0;
  line-height: 1.25;
}
#viewFormModal .close {
  margin: 0;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
#viewFormModal .modal-header {
  position: relative;
}
#viewFormModal .modal-title {
  flex: 1 1 auto;
}
#viewFormModal .close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
