/* Program Lojalnosciowy Frontend Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.pl-customer-panel {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    color: #333333;
}

/* Header Section */
.pl-header {
    text-align: center;
    margin-bottom: 30px;
}
.pl-brand-logo {
    display: inline-block;
    margin-bottom: 12px;
    animation: pl-fade-in-down 0.8s ease;
}
.pl-brand-logo img {
    display: block;
    max-height: 80px;
    width: auto;
    margin: 0 auto;
}
.pl-panel-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Saldo and Expiry */
.pl-saldo-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}
.pl-saldo-text {
    font-size: 18px;
    color: #555555;
    font-weight: 400;
}
.pl-saldo-text .pl-highlight {
    font-size: 22px;
    color: #2c2c2c;
    font-weight: 700;
}
.pl-expiry-text {
    font-size: 13px;
    color: #999999;
}

/* Custom Progress Bar */
.pl-progress-container {
    position: relative;
    margin: 40px 10px 50px 10px;
}
.pl-progress-track {
    width: 100%;
    height: 8px;
    background-color: #eee0d3;
    border-radius: 4px;
    overflow: hidden;
}
.pl-progress-fill {
    height: 100%;
    background-color: #c7a17a;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.pl-milestones {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}
.pl-milestone {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pl-milestone-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #eee0d3;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #c7a17a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}
.pl-milestone-icon svg {
    width: 16px;
    height: 16px;
}
.pl-milestone.active .pl-milestone-icon {
    border-color: #c7a17a;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(199, 161, 122, 0.25);
}
.pl-milestone-label {
    position: absolute;
    top: 42px;
    font-size: 12px;
    font-weight: 500;
    color: #888888;
    white-space: nowrap;
    transition: color 0.4s ease;
}
.pl-milestone.active .pl-milestone-label {
    color: #2c2c2c;
    font-weight: 600;
}

/* Discount Widget */
.points-form-widget {
    background: #fafafa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 35px;
    border: 1px solid #f0f0f0;
}
.pl-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}
.pl-discount-form {
    display: flex;
    flex-direction: column;
}
.pl-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Option Cards */
.opcja-promocji {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}
.opcja-promocji:hover:not(.pl-disabled) {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.opcja-promocji.pl-selected {
    border-color: #c7a17a;
    background: #fdfaf7;
    box-shadow: 0 4px 15px rgba(199, 161, 122, 0.1);
}
.opcja-promocji input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #c7a17a;
    cursor: pointer;
}
.opcja-promocji label {
    margin-left: 15px;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pl-req-tag {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}
.opcja-promocji.pl-disabled {
    opacity: 0.55;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
}
.opcja-promocji.pl-disabled label,
.opcja-promocji.pl-disabled input {
    cursor: not-allowed;
}

/* Action Button */
.points-submit-button {
    margin-top: 15px;
    width: 100%;
    padding: 14px 28px;
    background-color: #c7a17a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(199, 161, 122, 0.3);
}
.points-submit-button:hover:not(:disabled) {
    background-color: #b58f68;
    box-shadow: 0 6px 20px rgba(199, 161, 122, 0.4);
}
.points-submit-button:active:not(:disabled) {
    transform: scale(0.99);
}
.points-submit-button:disabled {
    background-color: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

/* Notifications */
.komunikat-sukcesu {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.komunikat-blokady {
    background: #fff1f2;
    border-left: 4px solid #f43f5e;
    color: #9f1239;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Tabs Section */
.pl-tabs-container {
    margin-top: 40px;
}
.pl-tabs-header {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.pl-tab-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.pl-tab-nav:hover {
    border-color: #cbd5e1;
    color: #334155;
}
.pl-tab-nav.active {
    border-color: #c7a17a;
    color: #c7a17a;
    box-shadow: 0 4px 12px rgba(199, 161, 122, 0.12);
}
.pl-tab-icon {
    transition: stroke 0.2s ease;
}
.pl-tab-nav.active .pl-tab-icon {
    stroke: #c7a17a;
}

/* Tab Content */
.pl-tab-content {
    display: none;
    animation: pl-fade-in 0.4s ease;
}
.pl-tab-content.active {
    display: block;
}

/* History Table */
.pl-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}
.pl-history-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}
.pl-history-table td {
    padding: 16px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.pl-align-right {
    text-align: right !important;
}
.pl-points-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.pl-points-add {
    color: #10b981;
    font-weight: 700;
    font-size: 16px;
}
.pl-points-sub {
    color: #f43f5e;
    font-weight: 700;
    font-size: 16px;
}
.pl-running-balance {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}
.pl-no-logs, .pl-login-notice {
    text-align: center;
    color: #64748b;
    padding: 30px;
    font-size: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #e2e8f0;
}

/* Earn Tab Cards */
.pl-earn-card {
    background: #f8fafc;
    border-left: 4px solid #c7a17a;
    border-radius: 0 8px 8px 0;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.01);
}
.pl-earn-title {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.pl-earn-desc {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

/* Referral Copy */
.pl-ref-copy-wrapper {
    display: flex;
    margin-top: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    max-width: 500px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
#pl-ref-link-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 12px;
    font-size: 13px;
    color: #334155;
    background: #ffffff;
    font-family: monospace;
}
#pl-ref-copy-btn {
    background: #c7a17a;
    color: #ffffff;
    border: none;
    outline: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}
#pl-ref-copy-btn:hover {
    background: #b58f68;
}

/* Keyframes animations */
@keyframes pl-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pl-fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Table */
@media screen and (max-width: 600px) {
    .pl-saldo-bar {
        flex-direction: column;
        gap: 6px;
    }
    .pl-tabs-header {
        flex-direction: column;
        gap: 10px;
    }
    .pl-tab-nav {
        width: 100%;
    }
    
    .pl-history-table thead {
        display: none;
    }
    .pl-history-table, .pl-history-table tbody, .pl-history-table tr, .pl-history-table td {
        display: block;
        width: 100%;
    }
    .pl-history-table tr {
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 10px;
        background: #f8fafc;
    }
    .pl-history-table td {
        text-align: right;
        padding: 8px;
        border-bottom: 1px dashed #e2e8f0;
        position: relative;
        padding-left: 50%;
    }
    .pl-history-table td:last-child {
        border-bottom: none;
    }
    .pl-history-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        text-align: left;
        font-weight: 600;
        font-size: 12px;
        color: #64748b;
        text-transform: uppercase;
    }
    .pl-points-col {
        align-items: flex-end;
    }
    .pl-ref-copy-wrapper {
        flex-direction: column;
        border: none;
    }
    #pl-ref-link-input {
        border: 1px solid #cbd5e1;
        border-radius: 6px;
        margin-bottom: 8px;
        padding: 10px;
    }
    #pl-ref-copy-btn {
        border-radius: 6px;
        padding: 10px;
        width: 100%;
    }
}

/* Coupon Cancel Button */
.pl-btn-cancel-coupon {
    background: transparent;
    border: 1.5px solid #f43f5e;
    color: #f43f5e;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.pl-btn-cancel-coupon:hover {
    background: #f43f5e;
    color: #ffffff;
}

/* Cart Notice Styles */
.pl-cart-notice {
    color: #333333;
    margin: 15px auto;
    padding: 16px;
    background: #fdfaf7;
    border-left: 4px solid #c7a17a;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}
.pl-cart-notice i {
    color: #c7a17a;
    font-size: 18px;
}

/* Single Product Points Notice */
.pl-product-points-notice {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 25px 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
    animation: pl-fade-in 0.5s ease;
}
.pl-product-points-notice .pl-notice-content {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}
.pl-product-points-notice .pl-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pl-product-points-notice .pl-notice-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}
.pl-product-points-notice .pl-notice-text {
    font-size: 15px;
    color: #334155;
    line-height: 1.5;
}
.pl-product-points-notice .pl-points-highlight {
    color: #bd152a; /* Red/pink branding color matching PL-ring logo */
    font-weight: 700;
}
.pl-product-points-notice .pl-club-highlight {
    color: #1e293b; /* Dark charcoal */
    font-weight: 700;
}

@media screen and (max-width: 600px) {
    .pl-product-points-notice {
        padding: 14px 16px;
        margin: 20px 0;
    }
    .pl-product-points-notice .pl-notice-text {
        font-size: 13.5px;
    }
    .pl-product-points-notice .pl-notice-logo-img {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   MY ACCOUNT PAGE (YITH CUSTOM STYLING OVERRIDES)
   ========================================================================== */

/* Progress Bar continuous alignment */
.ywpar-wrapper .points-progress-widget,
.pl-customer-panel .points-progress-widget {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 700px;
    margin: 30px auto;
}
.ywpar-wrapper .points-widget-header,
.pl-customer-panel .points-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 25px;
}
.ywpar-wrapper .points-balance,
.pl-customer-panel .points-balance {
    font-size: 18px;
    color: #1e293b;
    font-weight: 400;
}
.ywpar-wrapper .points-balance strong,
.pl-customer-panel .points-balance strong {
    font-weight: 700;
    color: #1e293b;
    font-size: 22px;
}
.ywpar-wrapper .points-expiry,
.pl-customer-panel .points-expiry {
    font-size: 13px;
    color: #94a3b8;
}

/* Interrupted progress track (wzor.png style) */
.ywpar-wrapper .progress-bar-area,
.pl-customer-panel .progress-bar-area {
    margin: 30px 10px 50px 10px !important;
}
.ywpar-wrapper .progress-track-container,
.pl-customer-panel .progress-track-container {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 15px !important;
    position: relative !important;
    height: 65px !important;
}
.ywpar-wrapper .progress-segment,
.pl-customer-panel .progress-segment {
    flex-grow: 1 !important;
    height: 10px !important;
    background-color: #eee0d3 !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    border-radius: 5px !important; /* Rounded caps at both ends of each segment */
    z-index: 1 !important;
}
.ywpar-wrapper .progress-fill,
.pl-customer-panel .progress-fill {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    background-color: #c7a17a !important;
    border-radius: 5px !important;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Milestone floating gift icons and centered text */
.ywpar-wrapper .milestone,
.pl-customer-panel .milestone {
    width: 45px !important; /* Fixed width to create a uniform space around the icon */
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    z-index: 2 !important;
    height: 36px !important; /* Fix container height to vertical center of segments */
}
.ywpar-wrapper .milestone .icon-gift,
.pl-customer-panel .milestone .icon-gift {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.ywpar-wrapper .milestone .icon-gift svg,
.pl-customer-panel .milestone .icon-gift svg {
    width: 30px !important;
    height: 30px !important;
    stroke: #bda083 !important; /* Gold/brown stroke */
    stroke-width: 1.5px !important;
    fill: none !important;
}
.ywpar-wrapper .milestone:not(.achieved) .icon-gift svg,
.pl-customer-panel .milestone:not(.achieved) .icon-gift svg {
    stroke: #888888 !important; /* Gray stroke if not achieved */
}
.ywpar-wrapper .milestone-label,
.pl-customer-panel .milestone-label {
    position: absolute !important;
    top: 44px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #888888 !important;
    white-space: nowrap !important;
    transition: color 0.4s ease !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}
.ywpar-wrapper .milestone.achieved .milestone-label,
.pl-customer-panel .milestone.achieved .milestone-label {
    color: #1e293b !important;
    font-weight: 600 !important;
}

/* Form panel and Option Cards */
.ywpar-wrapper .points-form-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
.ywpar-wrapper .points-form-widget fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.ywpar-wrapper .points-form-widget legend {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    border: none;
    padding: 0;
    display: block;
    width: 100%;
    font-family: 'Outfit', sans-serif;
}
.ywpar-wrapper .opcja-promocji {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.ywpar-wrapper .opcja-promocji:hover:not(.pl-disabled) {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.ywpar-wrapper .opcja-promocji:has(input[type="radio"]:checked),
.ywpar-wrapper .opcja-promocji.pl-selected {
    border-color: #c7a17a;
    background: #fdfaf7;
    box-shadow: 0 4px 15px rgba(199, 161, 122, 0.1);
}
.ywpar-wrapper .opcja-promocji input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #c7a17a;
    cursor: pointer;
    margin: 0 16px 0 0;
}
.ywpar-wrapper .opcja-promocji label {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}
.ywpar-wrapper .pl-req-tag {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}
.ywpar-wrapper .opcja-promocji.pl-disabled {
    opacity: 0.55;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* Redeem Action Button */
.ywpar-wrapper .points-submit-button {
    margin-top: 25px;
    width: 100%;
    padding: 16px 28px;
    background-color: #c7a17a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(199, 161, 122, 0.3);
}
.ywpar-wrapper .points-submit-button:hover:not(:disabled) {
    background-color: #b58f68;
    box-shadow: 0 6px 20px rgba(199, 161, 122, 0.4);
}
.ywpar-wrapper .points-submit-button:active:not(:disabled) {
    transform: scale(0.99);
}
.ywpar-wrapper .points-submit-button:disabled {
    background-color: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

/* Feedback notices and cancel button */
.ywpar-wrapper .komunikat-sukcesu, 
.ywpar-wrapper .komunikat-blokady,
.ywpar-wrapper .woocommerce-message,
.ywpar-wrapper .woocommerce-info {
    background: #ecfdf5 !important;
    border: none !important;
    border-left: 4px solid #10b981 !important;
    color: #065f46 !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 25px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}
.ywpar-wrapper .komunikat-blokady,
.ywpar-wrapper .woocommerce-error {
    background: #fff1f2 !important;
    border-left: 4px solid #f43f5e !important;
    color: #9f1239 !important;
}
.ywpar-wrapper .komunikat-sukcesu button,
.ywpar-wrapper .pl-btn-cancel-coupon,
.ywpar-wrapper .ywpar-cancel-coupon {
    background: transparent !important;
    border: 1.5px solid #f43f5e !important;
    color: #f43f5e !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}
.ywpar-wrapper .komunikat-sukcesu button:hover,
.ywpar-wrapper .pl-btn-cancel-coupon:hover,
.ywpar-wrapper .ywpar-cancel-coupon:hover {
    background: #f43f5e !important;
    color: #ffffff !important;
}

/* History Data Table */
.ywpar-wrapper table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    margin-top: 10px !important;
}
.ywpar-wrapper table.shop_table th {
    text-align: left !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #64748b !important;
    padding: 14px 18px !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    background: transparent !important;
}
.ywpar-wrapper table.shop_table td {
    padding: 18px !important;
    font-size: 14px !important;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: transparent !important;
}
.ywpar-wrapper table.shop_table tr:hover td {
    background-color: #f8fafc !important;
}
.ywpar-wrapper .ywpar_plus {
    color: #10b981 !important;
    font-weight: 700 !important;
    margin-right: 5px !important;
}
.ywpar-wrapper .ywpar_minus {
    color: #f43f5e !important;
    font-weight: 700 !important;
    margin-right: 5px !important;
}

/* Tabs active state */
.ywpar-wrapper .ywpar_tabs_links.active {
    border-color: #c7a17a !important;
    box-shadow: 0 4px 15px rgba(199, 161, 122, 0.1) !important;
    color: #c7a17a !important;
}
.ywpar-wrapper .ywpar_tabs_links:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   REFERRAL PROGRAM STYLES
   ========================================================================== */

/* Referrals sharing section & cards wrapper */
.ywpar-wrapper .pl-referral-card-wrapper,
.pl-customer-panel .pl-referral-card-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* QR Code Card layout */
.ywpar-wrapper .pl-qr-card,
.pl-customer-panel .pl-qr-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
}

.ywpar-wrapper .pl-qr-code-img-wrapper,
.pl-customer-panel .pl-qr-code-img-wrapper {
    background: #ffffff;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.ywpar-wrapper .pl-qr-code-img-wrapper:hover,
.pl-customer-panel .pl-qr-code-img-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Status Badges */
.ywpar-wrapper .pl-status-badge,
.pl-customer-panel .pl-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.ywpar-wrapper .pl-status-sent,
.pl-customer-panel .pl-status-sent {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
}

.ywpar-wrapper .pl-status-registered,
.pl-customer-panel .pl-status-registered {
    background-color: #fef9c3 !important;
    color: #854d0e !important;
}

.ywpar-wrapper .pl-status-completed,
.pl-customer-panel .pl-status-completed {
    background-color: #dcfce7 !important;
    color: #166534 !important;
}

/* Profit and coupon displays */
.ywpar-wrapper .pl-profit-active,
.pl-customer-panel .pl-profit-active {
    color: #166534 !important;
    font-weight: 700 !important;
    font-size: 15px;
}

.ywpar-wrapper .pl-profit-pending,
.pl-customer-panel .pl-profit-pending {
    color: #854d0e !important;
    font-weight: 600 !important;
    font-size: 14px;
}

.ywpar-wrapper .pl-profit-empty,
.pl-customer-panel .pl-profit-empty {
    color: #94a3b8 !important;
}

.ywpar-wrapper .pl-ref-coupon-display,
.pl-customer-panel .pl-ref-coupon-display {
    display: inline-block;
    padding: 2px 8px;
    background: #fdfaf7;
    border: 1px dashed #c7a17a;
    border-radius: 4px;
    color: #c7a17a !important;
    font-family: monospace;
    font-size: 11px;
}

/* Social Share Row */
.ywpar-wrapper .pl-social-share-row,
.pl-customer-panel .pl-social-share-row {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.ywpar-wrapper .pl-share-btn,
.pl-customer-panel .pl-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff !important;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.ywpar-wrapper .pl-share-btn svg,
.pl-customer-panel .pl-share-btn svg {
    width: 18px;
    height: 18px;
}

.ywpar-wrapper .pl-share-btn:hover,
.pl-customer-panel .pl-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ywpar-wrapper .pl-share-whatsapp,
.pl-customer-panel .pl-share-whatsapp {
    background-color: #25D366;
}

.ywpar-wrapper .pl-share-facebook,
.pl-customer-panel .pl-share-facebook {
    background-color: #1877F2;
}

.ywpar-wrapper .pl-share-telegram,
.pl-customer-panel .pl-share-telegram {
    background-color: #0088cc;
}

.ywpar-wrapper .pl-share-native,
.pl-customer-panel .pl-share-native {
    background-color: #64748b;
}

}

/* Referral Promo Banner */
.ywpar-wrapper .pl-referral-promo-banner,
.pl-customer-panel .pl-referral-promo-banner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 26px;
    background: linear-gradient(135deg, #bd152a 0%, #880c1b 100%) !important;
    border: none !important;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(189, 21, 42, 0.15) !important;
    font-family: inherit;
    box-sizing: border-box;
    color: #ffffff !important;
}

.ywpar-wrapper .pl-referral-banner-icon,
.pl-customer-panel .pl-referral-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    flex-shrink: 0;
}

.ywpar-wrapper .pl-referral-banner-content {
    flex-grow: 1;
}

.ywpar-wrapper .pl-referral-banner-content h4,
.pl-customer-panel .pl-referral-banner-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: 0.3px;
}

.ywpar-wrapper .pl-referral-banner-content p,
.pl-customer-panel .pl-referral-banner-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.55;
}

.ywpar-wrapper .pl-referral-banner-content p strong,
.pl-customer-panel .pl-referral-banner-content p strong {
    color: #ffffff !important;
}

.ywpar-wrapper .pl-referral-banner-content p:last-of-type,
.pl-customer-panel .pl-referral-banner-content p:last-of-type {
    margin-bottom: 0 !important;
}

.ywpar-wrapper .pl-banner-action-btn,
.pl-customer-panel .pl-banner-action-btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    color: #bd152a !important;
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: none;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ywpar-wrapper .pl-banner-action-btn:hover,
.pl-customer-panel .pl-banner-action-btn:hover {
    background-color: #f8fafc !important;
    color: #880c1b !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Earned Coupon Badge */
.ywpar-wrapper .pl-earned-coupon-badge,
.pl-customer-panel .pl-earned-coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px dashed rgba(255, 255, 255, 0.4) !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ywpar-wrapper .pl-earned-coupon-badge:hover,
.pl-customer-panel .pl-earned-coupon-badge:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

.ywpar-wrapper .pl-earned-coupon-badge .pl-badge-amount,
.pl-customer-panel .pl-earned-coupon-badge .pl-badge-amount {
    font-size: 11px;
    font-weight: 800;
    color: #ffffff !important;
    background-color: #bd152a !important;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

.ywpar-wrapper .pl-earned-coupon-badge .pl-badge-code,
.pl-customer-panel .pl-earned-coupon-badge .pl-badge-code {
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.5px;
}

/* Hide remove buttons for Referral coupons */
.coupon-program-polecen .woocommerce-remove-coupon,
.coupon-program-polecen a.remove,
.coupon-program-polecen a[href*="remove_coupon="],
tr.coupon-program-polecen a {
    display: none !important;
}

/* Center and align WooCommerce notices wrapper with the content grid */
.woocommerce-notices-wrapper,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Add default grid padding for responsiveness on smaller screens */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

