/**
* 2007-2024 ZEN Technology
*
* 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 contact@zentech.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    ZEN Technology <contact@zentech.com>
*  @copyright 2007-2024 ZEN Technology
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of ZEN Technology
*/

/* Quick Buy Now Button Wrapper */
.quickbuynow-button-wrapper {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}

/* Quick Buy Now Button Base Styles */
.quickbuynow-button-wrapper .quickbuynow-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  line-height: 1.5;
  min-height: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quickbuynow-button-wrapper .quickbuynow-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quickbuynow-button-wrapper .quickbuynow-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quickbuynow-button-wrapper .quickbuynow-button:focus {
  outline: 2px solid rgba(0, 123, 255, 0.5);
  outline-offset: 2px;
}

/* Responsive adjustments for Bootstrap columns */
.col-quickbuynow {
  margin-top: 10px;
}

@media (min-width: 576px) {
  .col-quickbuynow {
    margin-top: 0;
  }
}

/* Ensure proper alignment with product quantity row */
.product-quantity .quickbuynow-button-wrapper,
.product-add-to-cart .quickbuynow-button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Integration with Bootstrap row layout */
.product-quantity.row .col-quickbuynow {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure Add to Cart button remains visible */
.product-add-to-cart .add-to-cart,
.product-add-to-cart button.add-to-cart,
.product-quantity .add-to-cart,
.product-quantity button.add-to-cart {
  display: inline-block !important;
  visibility: visible !important;
}

/* Error Messages */
#combinationNotAvailableMessage,
#customizationNotAvailableMessage {
  background-color: #ff9786;
  padding: 15px 20px;
  text-align: center;
  border-radius: 4px;
  border-left: 4px solid #dc3545;
  margin: 10px 0;
  color: #721c24;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading state */
.quickbuynow-button-wrapper .quickbuynow-button.loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

/* Disabled state */
.quickbuynow-button-wrapper .quickbuynow-button:disabled,
.quickbuynow-button-wrapper .quickbuynow-button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Mobile optimizations */
@media (max-width: 575.98px) {
  .quickbuynow-button-wrapper .quickbuynow-button {
    width: 100%;
    margin-top: 10px;
  }
  
  .col-quickbuynow {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}