/**
 * NFP Stock Widget Styles
 */
:root {
  /* Brand Colors */
  --color-brand-100: #fad7d7;
  --color-brand-200: #f2aeae;
  --color-brand-300: #e37b7b;
  --color-brand-400: #d44242;
  --color-brand-500: #c41010;
  --color-brand-600: #ab0c0c;
  --color-brand-700: #940909;
  --color-brand-800: #3b0404;
  --color-brand-900: #1f0202;

  /* Success Colors */
  --color-success-100: #d7fad7;
  --color-success-200: #aef2ae;
  --color-success-300: #7be37b;
  --color-success-400: #42d442;
  --color-success-500: #10c410;
  --color-success-600: #0cab0c;
  --color-success-700: #099409;
  --color-success-800: #043b04;
  --color-success-900: #021f02;

  /* Warning Colors */
  --color-warning-100: #faeed7;
  --color-warning-200: #f2dcae;
  --color-warning-300: #e3c07b;
  --color-warning-400: #d4a342;
  --color-warning-500: #c48810;
  --color-warning-600: #ab760c;
  --color-warning-700: #946609;
  --color-warning-800: #3b2804;
  --color-warning-900: #1f1502;

  /* Error Colors */
  --color-error-100: #fad7d7;
  --color-error-200: #f2aeae;
  --color-error-300: #e37b7b;
  --color-error-400: #d44242;
  --color-error-500: #c41010;
  --color-error-600: #ab0c0c;
  --color-error-700: #940909;
  --color-error-800: #3b0404;
  --color-error-900: #1f0202;

  /* Info Colors */
  --color-info-100: #d7eefa;
  --color-info-200: #aedcf2;
  --color-info-300: #7bc0e3;
  --color-info-400: #42a3d4;
  --color-info-500: #1088c4;
  --color-info-600: #0c76ab;
  --color-info-700: #096694;
  --color-info-800: #04283b;
  --color-info-900: #02151f;

  /* Neutral Colors */
  --color-neutral-100: #faf5f5;
  --color-neutral-200: #f2ebeb;
  --color-neutral-300: #e3d8d8;
  --color-neutral-400: #d4c3c3;
  --color-neutral-500: #c4b1b1;
  --color-neutral-600: #ab8787;
  --color-neutral-700: #946363;
  --color-neutral-800: #3b2e2e;
  --color-neutral-900: #1f1818;
}
.nfp-disclaimer-section {
    display: flex;
    align-items: baseline;
}

/* Pick-Up Section */
.nfp-pickup-section {
    display: flex;
    align-items: center;
    font-size: 0.95em;
    color: #111;
}

.nfp-pickup-icon { 
    margin-right: 5px;
    color: #555;
    font-size: 0.9em;
}

.nfp-pickup-text {
    margin-right: 5px;
    font-weight: normal;
}

/* Main Container */
.nfp-stock-widget {
    margin-bottom: 20px;
    --pulse-scale: 3;
}

/* Stock Status Container */
.nfp-stock-status-container {
    margin-bottom: 8px;
}

.nfp-stock-status.in-stock {
    color: #10c410;
}

.nfp-stock-status.low-stock {
    color: #c48810;
}

.nfp-stock-status.out-of-stock {
    color: #c41010;
}

.nfp-stock-status.on-backorder {
    color: #1084c4;
}


.nfp-stock-status {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.95em;
    color: #111;
}

.nfp-stock-icon {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}

/* Pulsing Circle Animation */
.nfp-stock-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    position: relative;
}

.pulse-circle {
    background-color: #4CAF50;
}

.pulse-circle:before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #4CAF50;
    border-radius: 50%;
    opacity: 0.7;
    animation: ripple 6s ease-out infinite;
}

/* Remove the second ripple effect */
.pulse-circle:after {
    display: none;
}

@keyframes ripple {
    0%, 85% {
        transform: scale(1);
        opacity: 0.6;
    }
    15%, 25% {
        transform: scale(var(--pulse-scale));
        opacity: 0;
    }
    /* Stay dormant from 25% to 85% of the animation time */
    26%, 84% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Limited Stock Circle */
.limited-circle {
    background-color: #f39c12;
}

.limited-circle:before {
    background-color: #f39c12;
    animation: ripple 6s ease-out infinite;
}

.limited-circle:after {
    display: none;
}

/* Out of Stock Circle */
.out-of-stock-circle {
    background-color: #e74c3c;
}

.out-of-stock-circle:before {
    background-color: #e74c3c;
    animation: ripple 6s ease-out infinite;
}

.out-of-stock-circle:after {
    display: none;
}

/* Shipping Info */
.nfp-shipping-info {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}

.nfp-shipping-info i {
    margin-right: 5px;
}

/* Return Policy */
.nfp-return-policy {
    display: flex;
    align-items: center;
    font-size: 0.95em;
    color: #111;
}

.nfp-return-icon {
    margin-right: 5px;
    color: #555;
    font-size: 0.9em;
}

.nfp-return-policy-summary {
    margin-right: 5px;
    font-weight: normal;
}

.nfp-info-icon {
    cursor: pointer;
    color: #ffffff !important;
    font-size: 0.8em;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #000000;
    border: 1px solid #000000;
    font-style: normal;
    font-weight: bold;
    line-height: 1;
}

/* Additional selectors to ensure white text color */
.nfp-info-icon i,
.nfp-info-icon span,
.nfp-return-policy .nfp-info-icon {
    color: #ffffff !important;
}

/* Body Class when Modal is Open */
body.nfp-modal-open {
    overflow: hidden;
}

/* Return Policy Modal */
.nfp-return-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.nfp-return-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.nfp-return-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.nfp-return-modal-close:hover,
.nfp-return-modal-close:focus {
    color: black;
    text-decoration: none;
}

.nfp-return-modal-body {
    padding: 10px 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nfp-return-modal-content {
        width: 95%;
        margin: 25% auto;
    }
    .nfp-shipping-text {
        width: 100%;
    }
}

/* Inline Stock and Shipping */
.nfp-stock-shipping-inline {
    margin-bottom: 10px;
}

.nfp-stock-shipping-inline .nfp-stock-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.nfp-shipping-separator {
    margin: 0 6px;
    color: #777;
    font-weight: normal;
}

.nfp-shipping-text {
    font-weight: normal;
    color: #555;
    font-size: 0.95em;
}

/* For mobile display */
@media (max-width: 480px) {
    .nfp-stock-shipping-inline .nfp-stock-status {
        /* flex-direction: column;
        align-items: flex-start; */
    }
    
    .nfp-shipping-separator {
        display: none;
    }
    
    .nfp-shipping-text {
        margin-top: 0px;
        margin-left: 18px;
    }
}

/* Backorder Circle */
.backorder-circle {
    background-color: #9b59b6;
}

.backorder-circle:before {
    background-color: #9b59b6;
    animation: ripple 6s ease-out infinite;
}

.backorder-circle:after {
    display: none;
}

/* Additional Info for Backorders */
.nfp-backorder-info {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
    margin-left: 20px;
    font-style: italic;
}

/* Stock Quantity Display */
.nfp-stock-quantity {
    font-weight: normal;
    color: #444;
    display: inline-block;
    margin-left: 4px;
}

/* When quantity is on separate line */
div.nfp-stock-quantity {
    margin-top: 4px;
    margin-left: 20px;
    font-size: 0.9em;
}

.nfp-delivery-date {
    font-size: 0.9em;
    color: #333;
    display: flex;
    align-items: center;
}

.nfp-delivery-date-value {
    color: #2ecc71;
    font-weight: 500;
    margin-left: 4px;
}

/* For mobile display */
@media (max-width: 480px) {
    div.nfp-stock-quantity, 
    .nfp-backorder-info {
        margin-left: 10px;
    }
}

.nfp-interest-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

/* Hide the quantity label */
.nfp-interest-form label {
    display: none;
}

.nfp-interest-input-group {
    width: auto;
    margin-bottom: 0;
}

.nfp-interest-email {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Email notification styles - ensure it's on its own line */
.nfp-interest-user-info {
    width: 100%;
    margin-bottom: 5px;
    padding: 0;
    color: var( --e-global-color-secondary );
    font-size: 0.75rem;
    display: block;
}

/* Container for quantity and submit button - to be on the same line */
.nfp-interest-controls-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Quantity controls styling improvements */
.nfp-interest-input-group .quantity {
    position: relative;
    width: 100px;
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #000;
    border-radius: 4px;
    user-select: none; /* Prevent text selection on rapid clicking */
}

.nfp-interest-input-group .quantity input.qty {
    flex: 1;
    text-align: center;
    width: 30px;
    height: 100%;
    border: none;
    background: #ffffff;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
}

.nfp-interest-input-group .quantity input.qty:hover {
    color: var(--e-global-color-primary);
}

.nfp-interest-input-group .quantity input.qty:focus {
    outline: none;
    box-shadow: none;
}

.nfp-interest-input-group .quantity input::-webkit-outer-spin-button,
.nfp-interest-input-group .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Improve decrease button for better click recognition */
.nfp-interest-input-group .qty-decrease {
    border: 1px solid #000;
    color: white;
    background: black;
    padding: 0;
    width: 28px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Improve increase button for better click recognition */
.nfp-interest-input-group .qty-increase {
    border-radius: 0px;
    border: #000 1px solid;
    background: #000;
    color: white;
    padding: 0;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Add hover styles to make buttons more interactive */
.nfp-interest-input-group .qty-decrease:hover,
.nfp-interest-input-group .qty-increase:hover {
    background-color: #333;
}

/* Add active styles for better feedback */
.nfp-interest-input-group .qty-decrease:active,
.nfp-interest-input-group .qty-increase:active {
    background-color: #555;
}

.nfp-interest-submit {
    height: 40px;
    width: auto;
    min-width: 150px;
    padding: 0 20px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.nfp-interest-submit:hover:not(:disabled) {
    background-color: #333333;
}

.nfp-interest-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.nfp-interest-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
}

.nfp-interest-processing {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

.nfp-interest-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.nfp-interest-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Notification Success Message for Registered Interest */
.nfp-interest-registered {
    background-color: var(--color-success-100, #d7fad7);
    border: 1px solid var(--color-success-300, #7be37b);
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    color: var(--color-success-800, #043b04);
}

.nfp-interest-registered-message {
    margin-right: 8px;
    margin-bottom: 0;
    font-size: 0.95em;
    font-weight: 500;
    flex-grow: 1;
}

.nfp-interest-registered-qty {
    font-weight: 600;
}

.nfp-interest-change-button {
    margin-left: 10px;
    color: var(--color-success-900, #021f02) !important;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9em;
    background: none !important;
    border: none !important;
    padding: 0;
    margin-bottom: 0;
    text-decoration: underline;
}

.nfp-interest-change-button:hover {
    color: var(--color-success-900, #021f02) !important;
}

.nfp-interest-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: none !important;
    color: #e63946;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    border: none !important;
    cursor: pointer;
    margin-left: 8px;
    padding: 0;
    transition: none;
}

.nfp-interest-remove-button:hover {
    color: #e63946;
    transform: none;
}

.nfp-interest-remove-button:focus {
    outline: none;
    box-shadow: none;
}

/* User Info and Login Styles */
.nfp-interest-login-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.nfp-interest-login-button {
    text-decoration: none !important;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
    padding: 7px;
    background: #000;
    color: #fff!important;
    border-radius: 4px;
    margin: 0px!important
}

.nfp-interest-login-button:hover {
    background-color: #111;
    color: #fff;
    text-decoration: none !important;
}
.nfp-interest-email {
    width: 80%!important;
    border: 2px solid #000!important;
    padding: 6px!important;
    border-radius: 4px!important;
}
/* Responsive styles */
@media (max-width: 480px) {
    .nfp-interest-login-button {
        position: relative;
        display: inline-block;
        margin-bottom: 10px;
    }
}