/**
 * Joy Product Card - Styles v2.6.8
 * 
 * 直接使用Woodmart输出的attribute-label badges
 * CSS负责定位，JS负责转换圆点和颜色
 */

/* ============================================
   CARD BASE - Flex布局确保卡片等高
   ============================================ */
.jp-card {
    position: relative;
    padding: 10px !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* 边框样式 */
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    /* 背景色 */
    background-color: #f9f9f9;
}

/* 鼠标悬停效果 */
.jp-card:hover {
    border-color: #BDBDBD;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 只针对包含jp-card的产品容器 */


/* ============================================
   IMAGE CONTAINER
   ============================================ */
.jp-card > .product-element-top {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: visible;
    /* 图片居中 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   整个图片区域可点击（a标签）
   ============================================ */
.jp-card .product-element-top {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* 图片链接容器 - product-element-top 现在是 a 标签 */
.jp-card .product-element-top.product-image-link {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

/* 图片样式 - 居中显示 */
.jp-card .product-element-top img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 90% !important;
    max-height: 90% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    pointer-events: none !important;
}

/* 直接作为 product-element-top 子元素的图片 - 确保居中 */
.jp-card .product-element-top > img:not(.hover-img) {
    position: relative !important;
    z-index: 1 !important;
}

.jp-card .product-element-top .hover-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* ============================================
   Product Labels 容器 - display:contents让子元素独立定位
   ============================================ */
.jp-card .product-labels {
    display: contents !important;
}

/* ============================================
   折扣Badge - 左上角
   ============================================ */
.jp-card .product-labels .onsale {
    position: absolute !important;
    left: 0 !important;
    top: 10px !important;
    z-index: 10 !important;
    display: none !important; /* 默认隐藏，等JS计算折扣后再显示 */
    background: #E53935 !important;
    color: #fff !important;
    padding: 5px 12px !important;
    border-radius: 3px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}

/* JS初始化后，如果有折扣，会通过内联样式显示 */
.jp-card .product-labels .onsale.jp-show {
    display: block !important;
}

/* ============================================
   Promo / Hot / New Badge - 左上角
   ============================================ */
.jp-card .jp-promo-badge {
    position: absolute !important;
    left: 0 !important;
    top: 10px !important;
    z-index: 11 !important;
    display: block !important;
    background: #83b735 !important;
    color: #fff !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

/* 如果同时有promo badge和onsale badge，调整onsale位置到promo下方 */
/* 通过JS添加 jp-has-promo-badge 类来控制 */
.jp-card.jp-has-promo-badge .product-labels .onsale {
    top: 45px !important;
}

/* ============================================
   隐藏不需要的 attribute-labels
   ============================================ */
.jp-card .label-attribute-pa_pouch-count,
.jp-card .label-attribute-pa_pouch-type,
.jp-card .label-attribute-pa_pouch-flavor-category {
    display: none !important;
}

/* ============================================
   右上角: Strength Level (由JS转换为圆点)
   ============================================ */
.jp-card .label-attribute-pa_nicotine-strength-level {
    position: absolute !important;
    right: -5px !important;
    top: 10px !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    background: transparent !important;
    padding: 0px 8px !important;
    border-radius: 3px !important;
    /* 隐藏原始文字，JS会替换为圆点 */
    font-size: 0 !important;
    color: transparent !important;
}

/* 圆点样式 - 由JS生成 */
.jp-card .label-attribute-pa_nicotine-strength-level .jp-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    border: 1.5px solid #000 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    display: inline-block !important;
}

/* 实心圆点 */
.jp-card .label-attribute-pa_nicotine-strength-level .jp-dot.filled {
    background: #000 !important;
}

/* ============================================
   右上角: MG Badge (在圆点下方)
   ============================================ */
.jp-card .label-attribute-pa_nicotine-content-per-pouch {
    position: absolute !important;
    right: 0 !important;
    top: 25px !important;
    z-index: 10 !important;
    display: block !important;
    background: #000 !important;
    color: #fff !important;
    padding: 5px 12px !important;
    border-radius: 3px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    min-width: 55px !important;
    text-align: center !important;
}

/* ============================================
   底部中间: Flavor Badge (颜色由JS设置)
   ============================================ */
.jp-card .label-attribute-pa_pouch-flavor {
    position: absolute !important;
    bottom: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    display: block !important;
    background: #fff !important;
    border: 2px solid #8C8C8C;
    color: #8C8C8C;
    border-radius: 20px !important;
    padding: 5px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    text-transform: none !important;
}

/* ============================================
   Wishlist - 图片区域左侧，距离顶部40%（使用Woodmart原生hook）
   ============================================ */
/* wd-buttons 现在在 product-element-top <a> 标签外部，需要相对于 product-wrapper 定位 */
.jp-card .wd-buttons,
.jp-card .wd-buttons.wd-pos-r-t {
    position: absolute !important;
    /* 定位在图片区域左侧，距离顶部40% */
    top: 40% !important; /* 距离顶部40% */
    left: 10px !important; /* 向右移动10px */
    bottom: auto !important; /* 移除底部定位 */
    right: auto !important; /* 覆盖Woodmart默认的right定位 */
    inset-inline-end: auto !important; /* 覆盖Woodmart的RTL定位 */
    z-index: 20 !important;
    width: auto !important; /* 限制宽度，不占据整个商品卡 */
    height: auto !important; /* 限制高度 */
    max-width: 100% !important; /* 确保不超过卡片宽度 */
    display: inline-flex !important; /* 使用inline-flex，只包裹内容 */
    align-items: center !important;
    gap: 0 !important; /* 按钮之间的间距 */
    flex-shrink: 0 !important; /* 不允许收缩 */
    flex-grow: 0 !important; /* 不允许扩展 */
    pointer-events: none !important; /* 让容器不拦截点击，只有按钮本身可点击 */
    /* 默认状态：透明背景和边框 */
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important; /* 默认无阴影 */
    border-radius: 50% !important; /* 圆形 */
    /* 始终显示，不需要hover */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    /* 移除flex-direction column，让按钮水平排列 */
    flex-direction: row !important;
    /* 确保相对于product-wrapper定位（因为现在在product-element-top外部） */
    margin: 0 !important;
    padding: 4px !important; /* 添加内边距，让背景和边框更明显 */
    /* 添加过渡效果 */
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Hover 状态：白色背景和灰色边框，带浮层效果 */
.jp-card:hover .wd-buttons,
.jp-card:hover .wd-buttons.wd-pos-r-t {
    background: #fff !important;
    border-color: #e0e0e0 !important; /* 灰色边框 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important; /* 浮层阴影效果 */
}

/* 确保 product-wrapper 是相对定位，这样 wd-buttons 的绝对定位才能正确工作 */
.jp-card {
    position: relative !important;
}

/* 覆盖Woodmart的hover显示逻辑 */
.jp-card:hover .wd-buttons,
.jp-card .wd-buttons {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.jp-card .wd-buttons > * {
    pointer-events: auto !important; /* 恢复按钮的点击事件 */
    flex-shrink: 0 !important; /* 子元素不允许收缩 */
}

.jp-card .wd-buttons .wd-wishlist-btn {
    position: static !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

/* 确保wishlist按钮的原始样式保留 */
.jp-card .wd-buttons .wd-wishlist-btn > a,
.jp-card .wd-wishlist-btn > a {
    /* 保留原始样式，只覆盖必要的位置相关样式 */
    position: relative !important; /* 确保 added-icon 的绝对定位能正常工作 */
}

/* Wishlist 心形图标样式 - 默认灰色 */
.jp-card .wd-buttons .wd-wishlist-icon > a:before,
.jp-card .wd-buttons .wd-wishlist-btn > a:before {
    color: #999 !important; /* 默认灰色 */
    transition: color 0.3s ease !important;
}

/* 当鼠标进入 wd-buttons 组件时，心形图标变成黑色 */
.jp-card .wd-buttons:hover .wd-wishlist-icon > a:before,
.jp-card .wd-buttons:hover .wd-wishlist-btn > a:before {
    color: #000 !important; /* hover 时黑色 */
}

/* 确保wishlist按钮的added状态图标正确显示 */
.jp-card .wd-buttons .wd-wishlist-btn a.added .wd-added-icon,
.jp-card .wd-wishlist-btn a.added .wd-added-icon {
    display: flex !important;
}

/* 确保 added-icon 的定位样式正确（Woodmart 原始样式） */
/* 只在 added 状态下显示 */
.jp-card .wd-buttons .wd-action-btn.wd-style-icon a.added .wd-added-icon,
.jp-card .wd-buttons .wd-wishlist-btn.wd-style-icon a.added .wd-added-icon,
.jp-card .wd-action-btn.wd-style-icon a.added .wd-added-icon {
    position: absolute !important;
    inset-inline-start: calc(50% + var(--wd-action-icon-size, 1.2em) - 0.55em) !important;
    bottom: calc(50% + var(--wd-action-icon-size, 1.2em) - 0.7em) !important;
    transform: translate(-50%, 50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(0.87em, 20px) !important;
    height: min(0.87em, 20px) !important;
    border-radius: 50% !important;
    background: var(--wd-primary-color, #83b735) !important;
    font-size: calc(var(--wd-action-icon-size, 1.2em) - 2px) !important;
}

/* 确保未添加状态时隐藏（遵循 Woodmart 原始行为） */
.jp-card .wd-buttons .wd-action-btn.wd-style-icon .wd-added-icon,
.jp-card .wd-buttons .wd-wishlist-btn.wd-style-icon .wd-added-icon {
    display: none !important;
}

/* 确保 added-icon 的图标内容显示 */
.jp-card .wd-buttons .wd-action-btn.wd-style-icon .wd-added-icon:before,
.jp-card .wd-buttons .wd-wishlist-btn.wd-style-icon .wd-added-icon:before {
    content: "\f107" !important;
    font-family: "woodmart-font" !important;
    color: #FFF !important;
    font-size: min(0.45em, 9px) !important;
}

/* ============================================
   隐藏旧的joy-*badges (如果PHP还有残留)
   ============================================ */
.jp-card .joy-top-right-group,
.jp-card .joy-bottom-group {
    display: none !important;
}

/* ============================================
   BODY AREA - Flex布局让卡片等高对齐
   ============================================ */
.jp-card__body {
    padding: 12px 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* jp-main 自动拉伸填充空间 */
.jp-card .jp-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}

/* jp-addon 和 jp-actions 固定在底部 */
.jp-card .jp-addon,
.jp-card .jp-actions {
    flex-shrink: 0;
}

/* ============================================
   商品标题和星级评分
   ============================================ */
.jp-card .wd-entities-title {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.jp-card .wd-entities-title a {
    color: inherit;
    text-decoration: none;
}

.jp-card .wd-entities-title a:hover {
    color: var(--wd-primary-color, #83b735);
}

.jp-card .star-rating {
    margin: 5px auto;
    font-size: 14px;
}

/* jp-products-grid 容器中的卡片样式 */
.jp-products-grid .wd-product {
    margin-bottom: 0 !important;
}

.jp-products-grid .wd-product .wd-entities-title,
.jp-products-grid .jp-card .wd-entities-title,
.jp-products-grid .product-element-bottom .wd-entities-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    padding: 0 !important;
    text-align: center !important;
}

.jp-products-grid .wd-product .star-rating,
.jp-products-grid .jp-card .star-rating,
.jp-products-grid .product-element-bottom .star-rating {
    margin-top: 2px !important;
    margin-bottom: 5px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    padding: 0 !important;
}

/* 确保标题和评价之间没有其他元素影响间距 */
.jp-products-grid .wd-product .jp-card__body > .wd-entities-title + .star-rating,
.jp-products-grid .wd-product .product-element-bottom > .wd-entities-title + .star-rating {
    margin-top: 2px !important;
}

/* ============================================
   TOTAL ROW
   ============================================ */
.jp-total {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
    min-height: 22px;
}

.jp-total .jp-price-save {
    margin-left: auto;
}

.jp-total-old,
.jp-total del,
.jp-total .jp-total-old {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--wd-text-color, #777) !important;
    text-decoration: line-through !important;
}

.jp-total-now,
.jp-total .jp-total-now {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--wd-primary-color, #83b735) !important;
}

.jp-price-save,
.jp-total .jp-price-save {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #E53935 !important;
}

.jp-total .woocommerce-Price-amount {
    font-size: inherit !important;
    color: inherit !important;
    font-weight: inherit !important;
}

/* ============================================
   SELECT DROPDOWNS
   ============================================ */
.jp-select-wrap {
    position: relative;
    margin-bottom: 0;
}

.jp-select {
    width: 100%;
    height: 40px;
    padding: 0 35px 0 12px;
    font-size: 13px;
    line-height: 40px;
    border: 1px solid var(--wd-bordered-main-color, #e0e0e0);
    border-radius: 4px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.jp-select:hover {
    border-color: var(--wd-primary-color, #83b735);
}

.jp-select:focus {
    outline: none;
    border-color: var(--wd-primary-color, #83b735);
}

.jp-disabled .jp-select,
.jp-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* ============================================
   ADD-ON SECTION
   ============================================ */
.jp-addon {
    margin: 15px 0;
}

.jp-addon-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--wd-text-color, #333);
}

.jp-addon-label-text {
    font-weight: 600;
}

.jp-addon-label a {
    color: var(--wd-primary-color, #83b735);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jp-addon-label a:hover {
    text-decoration: underline;
}

.jp-addon-select-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.jp-addon-thumb {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--wd-bordered-main-color, #e0e0e0);
    border-radius: 4px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jp-addon-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jp-addon-select-wrap {
    flex: 1;
    min-width: 0;
}

/* 覆盖全局输入框样式，移除 Add-on 选择框的多余内边距 */
.jp-card select.jp-addon-select,
.jp-products-grid select.jp-addon-select {
    padding-left: 5px !important;
    padding-right: 10px !important; /* 保留箭头空间 */
}

/* ============================================
   BUTTONS
   ============================================ */
.jp-actions {
    margin-top: 12px;
}

.jp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--btn-default-brd-radius, 4px);
    cursor: pointer !important;
    transition: all 0.25s ease;
    text-decoration: none;
}

.jp-btn-cart {
    background-color: #83b735 !important;
    color: #fff !important;
    cursor: pointer !important;
}

.jp-btn-cart:hover {
    background-color: #74a32f !important;
    color: #fff !important;
    cursor: pointer !important;
}

.jp-btn-cart.jp-loading {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait !important;
}

/* Loading spinner 旋转动画 */
.jp-spinner {
    animation: jp-spin 0.8s linear infinite;
}

@keyframes jp-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.jp-btn-cart.jp-added {
    background-color: #83b735 !important;
    animation: jp-pulse 0.8s ease;
}

@keyframes jp-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.jp-btn-notify {
    background-color: #FF9800;
    color: #fff;
}

.jp-btn-notify:hover {
    background-color: #F57C00;
    color: #fff;
}

/* ============================================
   LOADING STATE
   ============================================ */
.jp-card--loading .jp-total,
.jp-card--loading .jp-addon-select-row {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.jp-addon-thumb.jp-loading {
    opacity: 0.5;
    position: relative;
}

.jp-addon-thumb.jp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: jp-spin 0.6s linear infinite;
}

@keyframes jp-spin {
    to { transform: rotate(360deg); }
}

.jp-addon-thumb.jp-img-error img {
    opacity: 0.3;
    filter: grayscale(100%);
}

/* ============================================
   OUT OF STOCK
   ============================================ */
.jp-card--oos .product-element-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.5);
    pointer-events: none;
    z-index: 5;
}

/* OOS卡片隐藏SALE badge */
.jp-card--oos .product-labels .onsale {
    display: none !important;
}

/* OOS卡片: jp-main 隐藏select，显示Out of Stock */
.jp-card--oos .jp-main .jp-select-wrap {
    display: none !important;
}

.jp-card--oos .jp-main {
    position: relative;
    min-height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f9f9f9;
}

.jp-card--oos .jp-main::after {
    content: 'Out of Stock';
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .jp-select {
        height: 38px;
        line-height: 38px;
        font-size: 12px;
    }
    
    .jp-addon-thumb {
        width: 38px;
        height: 38px;
    }
    
    .jp-total-now {
        font-size: 16px !important;
    }
    
    .jp-btn {
        height: 40px;
        font-size: 12px;
    }
    
    /* Responsive badges */
    .jp-card .label-attribute-pa_nicotine-content-per-pouch {
        font-size: 11px !important;
        padding: 4px 10px !important;
        top: 38px !important;
    }
    
    .jp-card .label-attribute-pa_nicotine-strength-level .jp-dot {
        width: 8px !important;
        height: 8px !important;
    }
    
    .jp-card .label-attribute-pa_pouch-flavor {
        font-size: 11px !important;
        padding: 4px 12px !important;
    }
}

@media (max-width: 576px) {
    .jp-addon-thumb {
        width: 36px;
        height: 36px;
    }
    
    .jp-select {
        height: 36px;
        line-height: 36px;
    }
    
    .jp-btn {
        height: 38px;
        font-size: 11px;
    }
    
    .jp-card .label-attribute-pa_nicotine-strength-level .jp-dot {
        width: 7px !important;
        height: 7px !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.jp-select:focus-visible {
    outline: 2px solid var(--wd-primary-color, #83b735);
    outline-offset: 2px;
}

.jp-btn:focus-visible {
    outline: 2px solid var(--wd-primary-color, #83b735);
    outline-offset: 2px;
}


/* ============================================
   NOTIFY ME MODAL (Waitlist)
   ============================================ */
.jp-notify-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.jp-notify-modal-overlay.jp-notify-show {
    opacity: 1 !important;
    visibility: visible !important;
}

.jp-notify-modal {
    position: relative !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 32px !important;
    max-width: 420px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    transform: scale(0.9);
    transition: transform 0.3s ease !important;
}

.jp-notify-modal-overlay.jp-notify-show .jp-notify-modal {
    transform: scale(1) !important;
}

.jp-notify-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    background: transparent !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    color: #999 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s !important;
    line-height: 1 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    min-height: auto !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
}

.jp-notify-close:hover {
    background: transparent !important;
    color: #333 !important;
}

.jp-notify-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 16px 0 !important;
    padding-right: 30px !important;
}

.jp-notify-desc {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin: 0 0 24px 0 !important;
}

.jp-notify-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.jp-notify-email {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    background: #fff !important;
    color: #333 !important;
    min-height: auto !important;
}

.jp-notify-email:focus {
    outline: none !important;
    border-color: #83b735 !important;
    box-shadow: 0 0 0 3px rgba(131, 183, 53, 0.15) !important;
}

.jp-notify-error {
    display: none;
    color: #E53935 !important;
    font-size: 13px !important;
    margin-top: -8px !important;
}

.jp-notify-submit {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #83b735 !important;
    background-color: #83b735 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    padding: 0 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.jp-notify-submit:hover {
    background: #74a32f !important;
    background-color: #74a32f !important;
    color: #fff !important;
}

.jp-notify-submit:disabled {
    background: #c5d9a8 !important;
    background-color: #c5d9a8 !important;
    cursor: not-allowed !important;
}

/* Notify Modal - Success State */
.jp-notify-success-state {
    text-align: center !important;
}

.jp-notify-success-icon {
    margin-bottom: 20px !important;
}

.jp-notify-success-icon svg {
    animation: jp-notify-check 0.5s ease !important;
}

@keyframes jp-notify-check {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.jp-notify-success-state .jp-notify-title {
    padding-right: 0 !important;
}

.jp-notify-success-state .jp-notify-desc {
    margin-bottom: 24px !important;
}

.jp-notify-success-state .jp-notify-desc strong {
    color: #333 !important;
}

.jp-notify-gotit {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #83b735 !important;
    background-color: #83b735 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    padding: 0 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.jp-notify-gotit:hover {
    background: #74a32f !important;
    background-color: #74a32f !important;
    color: #fff !important;
}

/* Notify Modal - Mobile Responsive */
@media (max-width: 576px) {
    .jp-notify-modal {
        padding: 24px !important;
        width: 95% !important;
        margin: 10px !important;
    }
    
    .jp-notify-title {
        font-size: 18px !important;
    }
    
    .jp-notify-desc {
        font-size: 13px !important;
    }
    
    .jp-notify-email,
    .jp-notify-submit,
    .jp-notify-gotit {
        height: 44px !important;
        min-height: 44px !important;
        font-size: 14px !important;
        line-height: 44px !important;
    }
}
