/**
 * עיצוב Widgets - גרסה נקייה
 * 
 * @package    PSHH_Loyalty_Elementor
 * @author     פבל בליטמן <pavel@pshhdigital.co.il>
 * @copyright  2025 PSHH Digital
 * @since      1.0.0
 */

/* ===================================
   כללי
   =================================== */

.pshh-loyalty-widget {
    direction: rtl;
    text-align: right;
}

/* כותרת */
.pshh-loyalty-title {
    margin: 0 0 15px 0;
    font-weight: bold;
}

/* תיאור */
.pshh-loyalty-description {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

/* ===================================
   כפתורים
   =================================== */

.pshh-loyalty-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.pshh-loyalty-button.disabled,
.pshh-loyalty-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* כפתור משני */
.pshh-loyalty-button-secondary {
    background-color: #f0f0f0;
    color: #333;
}

/* ===================================
   טפסים
   =================================== */

.pshh-loyalty-form {
    max-width: 100%;
}

.pshh-loyalty-form-field {
    margin-bottom: 20px;
}

.pshh-loyalty-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.pshh-loyalty-form-input,
.pshh-loyalty-form-textarea,
.pshh-loyalty-form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.pshh-loyalty-form-input:focus,
.pshh-loyalty-form-textarea:focus,
.pshh-loyalty-form-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.pshh-loyalty-form-checkbox,
.pshh-loyalty-form-radio {
    margin-left: 8px;
}

.pshh-loyalty-form-error {
    color: #d63638;
    font-size: 14px;
    margin-top: 5px;
}

.pshh-loyalty-form-success {
    color: #00a32a;
    font-size: 14px;
    margin-top: 5px;
}

/* ===================================
   הודעות
   =================================== */

.pshh-loyalty-message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.pshh-loyalty-message-success {
    background-color: #d4edda;
    border-right: 4px solid #00a32a;
    color: #155724;
}

.pshh-loyalty-message-error {
    background-color: #f8d7da;
    border-right: 4px solid #d63638;
    color: #721c24;
}

.pshh-loyalty-message-warning {
    background-color: #fff3cd;
    border-right: 4px solid #f0ad4e;
    color: #856404;
}

.pshh-loyalty-message-info {
    background-color: #d1ecf1;
    border-right: 4px solid #0073aa;
    color: #0c5460;
}

/* ===================================
   כרטיסים
   =================================== */

.pshh-loyalty-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pshh-loyalty-card-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.pshh-loyalty-card-body {
    margin-bottom: 15px;
}

.pshh-loyalty-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* ===================================
   נקודות
   =================================== */

.pshh-loyalty-points {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
}

.pshh-loyalty-points-label {
    font-size: 14px;
    color: #666;
    margin-right: 5px;
}

.pshh-loyalty-points-value {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f0f7ff;
    border-radius: 20px;
}

/* ===================================
   טבלאות
   =================================== */

.pshh-loyalty-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.pshh-loyalty-table th,
.pshh-loyalty-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.pshh-loyalty-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

/* ===================================
   Loading
   =================================== */

.pshh-loyalty-loading {
    text-align: center;
    padding: 40px 20px;
}

.pshh-loyalty-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: pshh-spin 1s linear infinite;
}

@keyframes pshh-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   Widget הרשמה
   =================================== */

.pshh-loyalty-registration-widget .pshh-loyalty-form-field {
    margin-bottom: 20px;
}

/* ===================================
   Widget הצטרפות מהירה
   =================================== */

.pshh-loyalty-quick-join-widget {
    text-align: center;
}

.pshh-loyalty-quick-join-widget .pshh-loyalty-form-input {
    margin-bottom: 15px;
}

/* ===================================
   Widget התחברות
   =================================== */

.pshh-loyalty-login-widget .pshh-loyalty-form-links {
    text-align: center;
    margin-top: 15px;
}

.pshh-loyalty-login-widget .pshh-loyalty-form-links a {
    color: #0073aa;
    text-decoration: none;
}

/* ===================================
   Widget דשבורד
   =================================== */

.pshh-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pshh-dashboard-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.pshh-dashboard-card h3,
.pshh-dashboard-card h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.pshh-points-display {
    text-align: center;
}

.pshh-points-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
}

.pshh-card-actions .pshh-loyalty-button {
    width: 100%;
    display: block;
    text-align: center;
}

/* היסטוריה וסטטיסטיקות בדשבורד */
.pshh-card-history .pshh-history-list,
.pshh-card-stats .pshh-stats-grid {
    margin: 0;
    padding: 0;
}

.pshh-card-history .pshh-history-item {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.pshh-card-history .pshh-history-item:last-child {
    border-bottom: none;
}

.pshh-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.pshh-stat-item {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.pshh-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.pshh-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #0073aa;
}

/* ===================================
   Widget יתרת נקודות
   =================================== */

.pshh-loyalty-points-balance-widget .pshh-loyalty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.pshh-loyalty-points-value {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

/* כשהאייקון מעל */
.pshh-loyalty-points-value.pshh-icon-position-above {
    flex-direction: column;
    gap: 15px;
}

.pshh-loyalty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pshh-loyalty-icon i,
.pshh-loyalty-icon svg {
    display: block;
}

.pshh-icon-right {
    order: 1;
}

.pshh-loyalty-points {
    order: 2;
    line-height: 1;
    display: block;
    font-size: 48px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.pshh-icon-left {
    order: 3;
}

.pshh-loyalty-points-label {
    order: 4;
    line-height: 1;
    display: block;
    font-size: 18px;
    color: #666;
}

.pshh-icon-position-above .pshh-loyalty-icon {
    order: 0;
}

.pshh-icon-position-above .pshh-loyalty-points {
    order: 1;
}

.pshh-icon-position-above .pshh-loyalty-points-label {
    order: 2;
}

.pshh-icon-above {
    margin-bottom: 15px;
}

.pshh-loyalty-points-money {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #999;
}

/* ===================================
   Widget היסטוריית נקודות
   =================================== */

.pshh-history-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pshh-filter-button {
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pshh-filter-button.active {
    background-color: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
}

.pshh-history-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.pshh-history-description {
    margin-bottom: 20px;
    color: #666;
}

/* סגנון רשימה */
.pshh-history-layout-list .pshh-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pshh-history-layout-list .pshh-history-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.pshh-history-layout-list .pshh-history-action-description {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.pshh-history-layout-list .pshh-history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* סגנון טבלה */
.pshh-history-layout-table .pshh-history-table {
    width: 100%;
    border-collapse: collapse;
}

.pshh-history-layout-table .pshh-history-table th,
.pshh-history-layout-table .pshh-history-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.pshh-history-layout-table .pshh-history-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* סגנון כרטיסים */
.pshh-history-layout-cards .pshh-history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.pshh-history-layout-cards .pshh-history-item {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
}

/* נקודות */
.pshh-history-points {
    font-weight: 600;
}

.pshh-history-points.positive {
    color: #4CAF50;
}

.pshh-history-points.negative {
    color: #f44336;
}

.pshh-history-date {
    font-size: 12px;
    color: #999;
}

.pshh-history-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* עימוד */
.pshh-history-pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
}

.pshh-pagination-link {
    padding: 8px 12px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pshh-pagination-link.active {
    background-color: #0073aa;
    color: #ffffff;
}

/* ===================================
   Widget פרטי חבר
   =================================== */

.pshh-member-info-widget {
    width: 100%;
}

.pshh-member-info-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.pshh-member-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.pshh-member-avatar img {
    border-radius: 50%;
    border: 3px solid #e0e0e0;
}

/* סגנון רשימה */
.pshh-layout-list .pshh-member-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pshh-layout-list .pshh-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* סגנון רשת */
.pshh-layout-grid .pshh-member-info-grid {
    display: grid;
    gap: 15px;
}

.pshh-layout-grid .pshh-info-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}

.pshh-layout-grid .pshh-info-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #666;
}

.pshh-layout-grid .pshh-info-value {
    display: block;
    color: #333;
}

/* סגנון כרטיס */
.pshh-layout-card {
    text-align: center;
}

.pshh-layout-card .pshh-member-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pshh-layout-card .pshh-info-item {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 4px;
}

.pshh-info-label {
    font-weight: 600;
    color: #666;
}

.pshh-info-value {
    color: #333;
}

.pshh-member-points {
    padding: 15px;
    border-radius: 8px;
    background: #e7f3ff;
}

.pshh-member-points .pshh-info-value {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
}

.pshh-member-edit {
    margin-top: 20px;
}

.pshh-edit-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pshh-member-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pshh-member-details {
    flex: 1;
}

.pshh-detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.pshh-detail-label {
    font-weight: 600;
    min-width: 100px;
    color: #666;
}

.pshh-detail-value {
    color: #333;
}

/* ===================================
   Widget נקודות במוצר
   =================================== */

.pshh-product-points-wrapper {
    margin: 15px 0;
}

.pshh-product-points {
    display: inline-block;
    transition: all 0.3s ease;
}

.pshh-points-content {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pshh-points-value {
    font-weight: 700;
    display: inline-block;
}

.pshh-points-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pshh-points-icon i,
.pshh-points-icon svg {
    display: block;
}

/* אייקון מעל */
.pshh-product-points.pshh-icon-above {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* סגנונות תצוגה */

/* תג (Badge) */
.pshh-product-points.pshh-style-badge {
    background-color: #0073aa;
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.pshh-product-points.pshh-style-badge .pshh-points-icon {
    color: #ffffff;
}

/* בתוך השורה (Inline) */
.pshh-product-points.pshh-style-inline {
    background-color: transparent;
    color: #0073aa;
    padding: 0;
    font-size: inherit;
}

.pshh-product-points.pshh-style-inline .pshh-points-value,
.pshh-product-points.pshh-style-inline .pshh-points-icon {
    color: #0073aa;
}

/* קופסה (Box) */
.pshh-product-points.pshh-style-box {
    background-color: #f0f7ff;
    color: #0073aa;
    padding: 12px 20px;
    border: 2px solid #0073aa;
    border-radius: 8px;
    font-weight: 600;
}

.pshh-product-points.pshh-style-box .pshh-points-value,
.pshh-product-points.pshh-style-box .pshh-points-icon {
    color: #0073aa;
}

/* באנר (Banner) */
.pshh-product-points.pshh-style-banner {
    display: block;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pshh-product-points.pshh-style-banner .pshh-points-content {
    justify-content: center;
}

.pshh-product-points.pshh-style-banner .pshh-points-value {
    color: #ffffff;
    font-size: 24px;
}

.pshh-product-points.pshh-style-banner .pshh-points-icon {
    color: #ffffff;
}

/* מיקום אייקון */
.pshh-product-points.pshh-icon-above .pshh-icon-above {
    margin-bottom: 8px;
}

.pshh-icon-right .pshh-points-icon {
    order: -1;
}

.pshh-icon-left .pshh-points-icon {
    order: 1;
}

/* ===================================
   Widget יתרונות המועדון
   =================================== */

.pshh-club-benefits-widget {
    width: 100%;
}

.pshh-benefits-description {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

.pshh-benefits-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pshh-benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.pshh-benefit-icon-wrapper {
    margin-bottom: 20px;
}

.pshh-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
    line-height: 1;
}

.pshh-benefit-icon i,
.pshh-benefit-icon svg {
    display: block;
}

.pshh-benefit-content {
    flex: 1;
    width: 100%;
}

.pshh-benefit-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.pshh-benefit-text {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* סגנונות תצוגה */

/* רשת (Grid) */
.pshh-benefits-list.pshh-layout-grid {
    display: grid;
    gap: 20px;
}

/* רשימה (List) */
.pshh-benefits-list.pshh-layout-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pshh-benefits-list.pshh-layout-list .pshh-benefit-item {
    flex-direction: row;
    text-align: right;
    align-items: flex-start;
}

.pshh-benefits-list.pshh-layout-list .pshh-benefit-icon-wrapper {
    margin-bottom: 0;
    margin-left: 20px;
    flex-shrink: 0;
}

.pshh-benefits-list.pshh-layout-list .pshh-benefit-icon {
    font-size: 32px;
}

/* כרטיסים (Cards) */
.pshh-benefits-list.pshh-layout-cards {
    display: grid;
    gap: 25px;
}

.pshh-benefits-list.pshh-layout-cards .pshh-benefit-item {
    padding: 35px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pshh-benefits-list.pshh-layout-cards .pshh-benefit-icon {
    font-size: 48px;
}

/* ===================================
   Widget איך זה עובד
   =================================== */

.pshh-how-it-works-widget {
    width: 100%;
}

.pshh-steps-description {
    margin-bottom: 40px;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

.pshh-steps-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pshh-step-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.pshh-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #0073aa;
    color: #ffffff;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}

.pshh-step-number i,
.pshh-step-number svg {
    display: block;
}

.pshh-step-content {
    flex: 1;
}

.pshh-step-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.pshh-step-text {
    margin: 0;
    color: #666;
    line-height: 1.7;
    font-size: 15px;
}

/* ===================================
   Widget נקודות בתשלום (Checkout)
   =================================== */

.pshh-loyalty-checkout-widget {
    width: 100%;
}

.pshh-loyalty-checkout-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.loyalty-checkout-header {
    margin-bottom: 20px;
}

.loyalty-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.loyalty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
    line-height: 1;
}

.loyalty-icon i,
.loyalty-icon svg {
    display: block;
}

.loyalty-checkout-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.loyalty-subtitle {
    margin: 0;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.loyalty-checkout-content {
    margin-top: 15px;
}

/* תוכן לאורח */
.loyalty-cta-actions {
    text-align: center;
}

.not-member-text {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #666;
}

.loyalty-auth-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.loyalty-login-btn,
.loyalty-register-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.loyalty-login-btn {
    background-color: #0073aa;
    color: #ffffff;
    border: 1px solid #0073aa;
}

.loyalty-register-btn {
    background-color: #00a32a;
    color: #ffffff;
    border: 1px solid #00a32a;
}

/* תוכן לחבר מועדון */
.loyalty-member-info {
    text-align: center;
}

.member-message {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #00a32a;
    font-weight: 500;
}

.member-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #e7f3ff;
    border-radius: 5px;
}

.balance-label {
    font-size: 14px;
    color: #666;
}

.balance-points {
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
}

/* ===================================
   נגישות (Accessibility)
   =================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.pshh-loyalty-form-input:focus,
.pshh-loyalty-button:focus,
.pshh-loyalty-checkbox-label input:focus {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

.pshh-loyalty-checkbox-label a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 2px;
}

.pshh-loyalty-messages {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 4px;
    font-weight: 500;
}

.pshh-loyalty-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pshh-loyalty-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pshh-loyalty-checkbox-label {
    color: #333;
    line-height: 1.6;
}

.pshh-loyalty-checkbox-label a {
    color: #0073aa;
    text-decoration: underline;
    font-weight: 600;
}

.pshh-loyalty-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    cursor: pointer;
}

.pshh-loyalty-checkbox-label input[type="checkbox"]:focus {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 1024px) {
    .pshh-dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .pshh-benefits-list.pshh-layout-grid,
    .pshh-benefits-list.pshh-layout-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .pshh-loyalty-button {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .pshh-loyalty-table {
        font-size: 14px;
    }
    
    .pshh-loyalty-table th,
    .pshh-loyalty-table td {
        padding: 8px;
    }
    
    .pshh-loyalty-points {
        font-size: 36px;
    }
    
    .pshh-loyalty-points-value {
        gap: 8px;
    }
    
    .pshh-icon-position-above {
        gap: 12px;
    }
    
    .pshh-member-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .pshh-dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .pshh-history-filters {
        flex-direction: column;
    }
    
    .pshh-filter-button {
        width: 100%;
    }
    
    .pshh-history-layout-cards .pshh-history-list {
        grid-template-columns: 1fr;
    }
    
    .pshh-history-layout-list .pshh-history-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pshh-history-layout-list .pshh-history-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .pshh-layout-grid .pshh-member-info-grid {
        grid-template-columns: 1fr !important;
    }
    
    .pshh-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pshh-product-points.pshh-style-badge {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .pshh-product-points.pshh-style-box {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .pshh-product-points.pshh-style-banner {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .pshh-product-points.pshh-style-banner .pshh-points-value {
        font-size: 20px;
    }
    
    .pshh-benefits-list.pshh-layout-grid,
    .pshh-benefits-list.pshh-layout-cards {
        grid-template-columns: 1fr !important;
    }
    
    .pshh-benefits-list.pshh-layout-list .pshh-benefit-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .pshh-benefits-list.pshh-layout-list .pshh-benefit-icon-wrapper {
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .pshh-benefit-item {
        padding: 25px 15px;
    }
    
    .pshh-benefit-title {
        font-size: 18px;
    }
    
    .pshh-benefit-text {
        font-size: 14px;
    }
    
    /* איך זה עובד - מובייל */
    .pshh-step-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pshh-step-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .pshh-step-title {
        font-size: 18px;
    }
    
    .pshh-step-text {
        font-size: 14px;
    }
    
    /* תשלום - מובייל */
    .loyalty-auth-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .loyalty-login-btn,
    .loyalty-register-btn {
        width: 100%;
        text-align: center;
    }
    
    .member-balance {
        flex-direction: column;
        gap: 5px;
    }
}

/* ===================================
   RTL Support
   =================================== */

[dir="rtl"] .pshh-loyalty-widget {
    text-align: right;
}

[dir="ltr"] .pshh-loyalty-widget {
    text-align: left;
}

/* ===================================
   Reduced Motion
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .pshh-loyalty-button,
    .pshh-loyalty-form-input,
    .pshh-step-item.pshh-animated,
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   High Contrast Mode
   =================================== */

@media (prefers-contrast: high) {
    .pshh-loyalty-form-input,
    .pshh-loyalty-button {
        border: 2px solid currentColor;
    }
}

/* ===================================
   Print
   =================================== */

@media print {
    .pshh-loyalty-button {
        display: none;
    }
}