/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License version 3.0
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * 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.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */

/* ==========================================================================
   Global widgets styles
   ========================================================================== */
.pplc-cart-widget,
.pplc-product-widget {
  margin: 20px 0;
  width: 100%;
  clear: both;
}

/* ==========================================================================
   Express Checkout Button Fallback & Section
   ========================================================================== */
.pplc-express-btn-section {
  margin-bottom: 15px;
  width: 100%;
}

.pplc-express-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
}

.pplc-express-divider::before,
.pplc-express-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed #ced4da;
}

.pplc-express-divider:not(:empty)::before {
  margin-right: .5em;
}

.pplc-express-divider:not(:empty)::after {
  margin-left: .5em;
}

.pplc-express-divider span {
  font-size: 11px;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.pplc-paypal-btn-wrapper {
  position: relative;
  min-height: 40px;
}

/* Fallback button shown while PayPal SDK is loading */
.pplc-paypal-btn-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  background-color: #ffc439;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
  border: none;
}

.pplc-paypal-btn-fallback:hover {
  background-color: #f2ba36;
}

.pplc-paypal-btn-fallback-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pplc-paypal-btn-fallback-inner img {
  height: 20px;
  width: auto;
}

.pplc-paypal-btn-fallback-inner strong {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #111;
  font-weight: 700;
}

/* ==========================================================================
   Pay Later Message Fallback & Section
   ========================================================================== */
.pplc-paylater-section {
  width: 100%;
}

.pplc-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.pplc-fallback-logo {
  height: 16px;
  width: auto;
  flex-shrink: 0;
}

.pplc-fallback-text {
  font-size: 13px;
  color: #2c2e2f;
  line-height: 1.4;
}

.pplc-fallback-link {
  color: #0070ba;
  text-decoration: underline;
  white-space: nowrap;
  font-weight: 600;
  margin-left: 2px;
}

.pplc-fallback-link:hover {
  color: #003087;
  text-decoration: underline;
}

/* ==========================================================================
   Promotional Banner Styles
   ========================================================================== */
.pplc-banner {
  margin: 25px 0;
  width: 100%;
}

.pplc-banner-inner {
  width: 100%;
}

.pplc-banner-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  background: linear-gradient(135deg, #003087 0%, #0070ba 100%);
  color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 48, 135, 0.15);
  flex-wrap: wrap;
  gap: 15px;
}

.pplc-banner-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.pplc-banner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 250px;
}

.pplc-banner-headline {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.pplc-banner-sub {
  font-size: 13px;
  opacity: 0.9;
}

.pplc-banner-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
}

.pplc-banner-link:hover {
  color: #e9ecef;
}

.pplc-banner-badge {
  font-size: 11px;
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Responsive / Adjustments
   ========================================================================== */
@media (max-width: 576px) {
  .pplc-banner-fallback {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .pplc-banner-content {
    min-width: 100%;
  }
}
