#psmPriceAlertModal .modal-dialog {
    max-width: 480px;
    margin: 3% auto;
}

@media (min-width: 576px) {
 #psmPriceAlertModal .modal-dialog {
    max-width: 520px;
  }
}

@media (max-width: 575px) {
 #psmPriceAlertModal .modal-dialog {
    max-width: 95%;
    margin: 2% auto;
  }
}

#psmPriceAlertModal .modal-content {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: none;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#psmPriceAlertModal .modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 25px 25px 20px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#psmPriceAlertModal .modal-header .close {
    position: absolute;
    right: 3px;
    top: 4px;
    opacity: 1;
    background: #df0000;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

#psmPriceAlertModal .modal-header .close:hover {
    opacity: 0.8;
    background: #c00000;
    transform: scale(1.05);
}

#psmPriceAlertModal .product-image {
    width: 90px;
    height: 90px;
    margin-right: 20px;
    border-radius: 12px;
    object-fit: cover;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid #fff;*/
}

#psmPriceAlertModal .product-info {
    flex: 1;
}

#psmPriceAlertModal .product-info h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2c3e50;
    line-height: 1.3;
}

#psmPriceAlertModal .product-info .current-price {
    font-size: 1rem;
    color: #27ae60;
    font-weight: 500;
    background: rgba(39, 174, 96, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

#psmPriceAlertModal .modal-body {
    padding: 25px 25px 20px;
    background: #fff;
}

#psmPriceAlertModal .price-drop-label {
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #2c3e50;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid #007bff;
}

#psmPriceAlertModal .price-drop-label #psmPriceAlertValue {
    color: #007bff;
    font-weight: 700;
    font-size: 1.3rem;
    background: rgba(0, 123, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 8px;
}

#psmPriceAlertModal .range-slider-container {
    position: relative;
    margin: 5px 0;
    padding: 10px;
   /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05); */
}

/* Visual progress fill for slider */
#psmPriceAlertModal .range-slider-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    height: 8px;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    border-radius: 4px;
    z-index: 1;
    width: calc(var(--fill-width, 0%) * (100% - 40px) / 100%);
    transition: width 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Modern range slider styling */
#psmPriceAlertModal .custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(233, 236, 239, 0.8);
    outline: none;
    padding: 0;
    margin: 20px 0;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

/* WebKit browsers (Chrome, Safari) */
#psmPriceAlertModal .custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    transition: all 0.2s ease;
}

#psmPriceAlertModal .custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.5);
}

/* Firefox */
#psmPriceAlertModal .custom-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    transition: all 0.2s ease;
}

/* Track styling for WebKit */
#psmPriceAlertModal .custom-range::-webkit-slider-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: rgba(233, 236, 239, 0.8);
    border-radius: 4px;
}

/* Track styling for Firefox */
#psmPriceAlertModal .custom-range::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: rgba(233, 236, 239, 0.8);
    border-radius: 4px;
    border: none;
}

/* Range labels with proper alignment - 0 price on far left, from price on far right */
#psmPriceAlertModal .range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 10px;
    position: relative;
    font-weight: 500;
}

#psmPriceAlertModal .range-labels span:first-child {
    position: absolute;
    left: 0;
    background: rgba(108, 117, 125, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

#psmPriceAlertModal .range-labels span:last-child {
    position: absolute;
    right: 0;
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    padding: 2px 8px;
    border-radius: 12px;
}

#psmPriceAlertModal .modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 20px 25px 25px;
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

#psmPriceAlertModal #psmPriceAlertSave,
#psmPriceAlertModal #psmPriceAlertCancel {
    flex: 1;
    margin: 0 8px;
    font-size: 1rem;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    width:100%;
}
/*
#psmPriceAlertModal #psmPriceAlertSave {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

#psmPriceAlertModal #psmPriceAlertSave:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}
*/
#psmPriceAlertModal #psmPriceAlertSave:active {
    transform: translateY(0);
}
/*
#psmPriceAlertModal #psmPriceAlertCancel {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

#psmPriceAlertModal #psmPriceAlertCancel:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}
*/
#psmPriceAlertModal #psmPriceAlertCancel:active {
    transform: translateY(0);
}

/* Button icons */
#psmPriceAlertModal #psmPriceAlertSave .material-icons,
#psmPriceAlertModal #psmPriceAlertCancel .material-icons {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Alert messages styling */
#psmPriceAlertModal .alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 0;
}

#psmPriceAlertModal .alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

#psmPriceAlertModal .alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Hide message containers initially with unique selectors */
#psmPriceAlertModal #psmPriceAlertError,
#psmPriceAlertModal #psmPriceAlertSuccess {
    display: none;
}

/* Show message containers when active */
#psmPriceAlertModal #psmPriceAlertError.dx-show,
#psmPriceAlertModal #psmPriceAlertSuccess.dx-show {
    display: block !important;
}

/* Modal footer row styling */
#psmPriceAlertModal .modal-footer .row {
    width: 100%;
}

.product-add-to-cart .btn.btn-primary.dx-pricealert-trigger {
  margin-left: 10px;
}

.btn.btn-primary.dx-pricealert-trigger.mini {
  border-radius: 50%;
  padding: 0px 0px 0px 10px;
  width: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  min-width: 2.5rem;
  padding-top: .1875rem;
  border-radius: 50%;
  cursor: pointer;
  transition: .2s ease-out;
  border: none;
  margin-left: 10px;
  background-color: #fff;
  box-shadow: .125rem -0.125rem .25rem 0 rgba(0,0,0,.2);
  color: #7a7a7a;
}
