/**
 * PyziTheme - my-account.css (pyzitheme/assets/css/my-account.css)
 * 
 * Styl dla Moje Konto - Woocomerce.
 * Docelowo tak jak w tym stylu będą zmienne :root 
 *
 * @package     PyziTheme
 * @subpackage  Assets/CSS
 * @author      Patryk Kowalski <p.kowalski@kamikstudio.pl>
 * @copyright   2025 KamikStudio & PyziPyzi
 * @license     Proprietary
 * @version     1.0.0
 * @since       1.0.0
 * 
 * Client: PyziPyzi - Domowe wyroby cukiernicze
 * Website: https://pyzipyzi.pl
 * 
 * This file is part of PyziTheme.
 * Unauthorized copying or distribution is prohibited.
 */

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    --pyzi-primary: #ef6341;
    --pyzi-primary-dark: #d94f2e;
    --pyzi-gradient: linear-gradient(135deg, #ef6341 0%, #d94f2e 100%);
    --pyzi-text: #333;
    --pyzi-text-light: #666;
    --pyzi-text-muted: #999;
    --pyzi-border: #e3e3e3;
    --pyzi-bg-light: #f9f9f9;
    --pyzi-bg-lighter: #fafafa;
    --pyzi-white: #fff;
    --pyzi-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --pyzi-shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
    --pyzi-radius: 12px;
    --pyzi-radius-lg: 16px;
    --pyzi-transition: all 0.2s ease;
}

/* ==========================================================================
   OVERRIDE GLOBAL PAGE-CONTENT-WRAPPER dla Moje konto
   ========================================================================== */
.woocommerce-account .page-content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
}

.woocommerce-account .woocommerce {
    max-width: 85vw !important; /* 85% szerokości ekranu */
    width: 100%;
}

.woocommerce-account .page-header { display: none; }

/* ==========================================================================
   LAYOUT - SIDEBAR + CONTENT
   ========================================================================== */
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px; /* Zwiększone z 40px */
    max-width: 80vw; /* ZMIENIONE: 80% viewport width */
    margin: 0 auto;
    padding: 40px 30px;
}

.woocommerce-MyAccount-navigation {
    display: none !important;
}

.woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    min-height: 600px;
    padding: 0 20px;
}

/* ==========================================================================
   SIDEBAR NAVIGATION - DESKTOP
   ========================================================================== */
.myaccount-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--pyzi-white);
    border-radius: var(--pyzi-radius-lg);
    box-shadow: var(--pyzi-shadow);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    min-width: 280px;
}

.myaccount-sidebar:hover {
    box-shadow: var(--pyzi-shadow-hover);
}

.sidebar-header {
    padding: 30px 25px;
    background: var(--pyzi-gradient);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--pyzi-white);
}

.logo-icon {
    font-size: 32px;
    line-height: 1;
}

.logo-text {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none !important; /* Dodane !important */
    margin: 0 !important;
    padding: 15px 10px !important;
}

.sidebar-menu-item {
    margin-bottom: 6px;
    list-style: none !important; /* Dodane !important */
}

.sidebar-menu-item::before {
    display: none !important; /* Usuń pseudo-element jeśli istnieje */
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    color: var(--pyzi-text-light);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--pyzi-transition);
    position: relative;
    font-weight: 500;
    font-size: 16px;
}

.sidebar-menu-item a:hover {
    background: var(--pyzi-bg-light);
    color: var(--pyzi-text);
    transform: translateX(2px);
}

.sidebar-menu-item.active a {
    background: var(--pyzi-gradient);
    color: var(--pyzi-white);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 99, 65, 0.3);
}

.menu-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-label {
    flex: 1;
}

.active-indicator {
    width: 6px;
    height: 6px;
    background: var(--pyzi-white);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.sidebar-menu-item.logout-item {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--pyzi-border);
}

.sidebar-menu-item.logout-item a {
    color: #dc3545;
}

.sidebar-menu-item.logout-item a:hover {
    background: #fff5f5;
    color: #c82333;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 25px;
    border-top: 1px solid var(--pyzi-border);
    background: var(--pyzi-bg-lighter);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--pyzi-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--pyzi-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 13px;
    color: var(--pyzi-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   MOBILE DROPDOWN NAVIGATION
   ========================================================================== */
.myaccount-mobile-nav {
    display: none;
    position: relative;
    margin-bottom: 20px;
}

.mobile-nav-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--pyzi-white);
    border: 2px solid var(--pyzi-border);
    border-radius: var(--pyzi-radius);
    cursor: pointer;
    transition: var(--pyzi-transition);
    font-size: 15px;
    font-weight: 600;
    color: var(--pyzi-text);
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle.active {
    border-color: var(--pyzi-primary);
    box-shadow: 0 4px 12px rgba(239, 99, 65, 0.15);
}

.mobile-nav-toggle.active {
    background: #fff9f7;
}

.current-page-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-page-icon svg {
    stroke: var(--pyzi-primary);
}

.current-page-label {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.mobile-nav-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--pyzi-white);
    border: 2px solid var(--pyzi-border);
    border-radius: var(--pyzi-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--pyzi-transition);
    z-index: 1000;
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 8px;
}

.mobile-nav-menu li {
    margin-bottom: 2px;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--pyzi-text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--pyzi-transition);
    font-size: 15px;
    font-weight: 500;
}

.mobile-nav-menu a:hover {
    background: var(--pyzi-bg-light);
    color: var(--pyzi-text);
}

.mobile-nav-menu li.active a {
    background: var(--pyzi-gradient);
    color: var(--pyzi-white);
    font-weight: 600;
}

.mobile-nav-menu .check-icon {
    margin-left: auto;
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   COMMON COMPONENTS
   ========================================================================== */

/* Back Button */
.myaccount-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    margin-bottom: 25px;
    background: var(--pyzi-white);
    border: 2px solid var(--pyzi-border);
    border-radius: 10px;
    color: var(--pyzi-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--pyzi-transition);
}

.myaccount-back-button:hover {
    border-color: var(--pyzi-primary);
    color: var(--pyzi-primary);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(239, 99, 65, 0.15);
}

/* Page Header */
.myaccount-page-header {
    margin-bottom: 40px;
}

.myaccount-page-header h1 {
    margin: 0 0 12px;
    font-size: 36px;
    color: var(--pyzi-text);
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-icon {
    font-size: 40px;
}

.page-description {
    font-size: 17px;
    color: var(--pyzi-text-light);
    margin: 0;
}

/* Cards */
.stat-card,
.order-card,
.address-card {
    background: var(--pyzi-white);
    border: 1px solid var(--pyzi-border);
    border-radius: var(--pyzi-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover,
.order-card:hover,
.address-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pyzi-shadow-hover);
}

/* Buttons */
.button,
.button-primary,
.button-view-order,
.button-edit-address,
.button-save-changes {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--pyzi-primary);
    color: #fff !important; /* ← DODANE !important */
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--pyzi-transition);
    justify-content: center;
}

.button:hover,
.button-primary:hover,
.button-view-order:hover,
.button-edit-address:hover,
.button-save-changes:hover {
    background: var(--pyzi-primary-dark);
    color: #fff !important; /* ← DODANE !important */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 99, 65, 0.3);
}

/* SVG w przyciskach - też białe */
.button svg,
.button-primary svg,
.button-view-order svg,
.button-edit-address svg,
.button-save-changes svg {
    stroke: #fff !important; /* ← DODANE */
}

/* Toggle details button */
.toggle-details {
    background: var(--pyzi-primary);
    color: #fff !important; /* ← DODANE !important */
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.toggle-details:hover {
    background: var(--pyzi-primary-dark);
    color: #fff !important; /* ← DODANE !important */
}

.button-action {
    padding: 12px 20px;
    background: var(--pyzi-white);
    color: var(--pyzi-text);
    border: 2px solid var(--pyzi-border);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--pyzi-transition);
}

.button-action:hover {
    border-color: var(--pyzi-primary);
    color: var(--pyzi-primary);
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.dashboard-welcome {
    margin-bottom: 40px;
    padding: 40px;
    background: var(--pyzi-gradient);
    border-radius: var(--pyzi-radius);
    color: var(--pyzi-white);
}

.dashboard-welcome h2 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
}

.dashboard-welcome p {
    margin: 0;
    font-size: 17px;
    opacity: 0.9;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 30px;
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.stat-card h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: var(--pyzi-text);
}

.stamps-preview {
    text-align: center;
    margin: 20px 0;
}

.stamps-count {
    font-size: 48px;
    font-weight: 700;
    color: var(--pyzi-primary);
    line-height: 1;
}

.stamps-count .separator {
    opacity: 0.3;
    margin: 0 5px;
}

.stamps-count .total {
    opacity: 0.5;
}

.stamps-label,
.progress-text {
    font-size: 14px;
    color: var(--pyzi-text-light);
    margin-top: 5px;
}

.reward-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #4CAF50;
    color: var(--pyzi-white);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.recent-orders-list {
    margin: 15px 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-number {
    font-weight: 600;
    color: var(--pyzi-text);
}

.order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.status-completed {
    background: #d4edda;
    color: #155724;
}

.order-status.status-processing {
    background: #cce5ff;
    color: #004085;
}

.order-status.status-pending,
.order-status.status-on-hold {
    background: #fff3cd;
    color: #856404;
}

.order-status.status-cancelled,
.order-status.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.dashboard-actions {
    margin-top: 40px;
}

.dashboard-actions h3 {
    margin-bottom: 15px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--pyzi-white);
    border: 2px solid var(--pyzi-border);
    border-radius: var(--pyzi-radius);
    text-decoration: none;
    color: var(--pyzi-text);
    transition: var(--pyzi-transition);
}

.action-button:hover {
    border-color: var(--pyzi-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 99, 65, 0.2);
}

.action-button .icon {
    font-size: 32px;
}

.action-button .label {
    font-weight: 600;
    font-size: 14px;
}

/* ==========================================================================
   LOYALTY PROGRAM
   ========================================================================== */
.pyzipyzi-loyalty-program {
    max-width: 900px;
    margin: 0 auto;
}

.loyalty-card-container {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.loyalty-card {
    background: var(--pyzi-white);
    border: 3px solid var(--pyzi-primary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(239, 99, 65, 0.15);
    max-width: 700px;
    width: 100%;
}

.card-header {
    text-align: center;
    margin-bottom: 25px;
}

.card-logo {
    font-size: 60px;
    margin-bottom: 10px;
}

.card-header h3 {
    margin: 10px 0 5px;
    font-size: 24px;
    color: var(--pyzi-primary);
}

.card-tagline {
    margin: 0;
    font-size: 14px;
    color: var(--pyzi-text-light);
}

.stamps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 30px 0;
}

.stamp-cell {
    aspect-ratio: 1;
    border: 3px solid var(--pyzi-border);
    border-radius: var(--pyzi-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--pyzi-bg-lighter);
    transition: var(--pyzi-transition);
}

.stamp-cell.filled {
    border-color: var(--pyzi-primary);
    background: var(--pyzi-white);
}

.stamp-cell.empty {
    border-style: dashed;
}

.stamp-filled svg,
.stamp-empty svg {
    width: 60px;
    height: 60px;
}

.stamp-cell .reward-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}

.stamp-cell .reward-badge.kiloo {
    background: #FFD700;
    color: var(--pyzi-text);
    font-size: 10px;
}

.card-footer {
    margin-top: 20px;
}

.progress-bar {
    height: 12px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--pyzi-gradient);
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-size: 16px;
    color: var(--pyzi-text);
}

.rewards-info {
    margin: 40px 0;
}

.rewards-info h3 {
    margin-bottom: 20px;
}

.rewards-grid {
    display: grid;
    gap: 20px;
}

.reward-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--pyzi-white);
    border: 2px solid var(--pyzi-border);
    border-radius: var(--pyzi-radius);
    transition: var(--pyzi-transition);
}

.reward-item.available {
    border-color: #4CAF50;
    background: #f1f8f4;
}

.reward-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.reward-content h4 {
    margin: 0 0 8px;
    font-size: 18px;
}

.reward-content p {
    margin: 0 0 10px;
    color: var(--pyzi-text-light);
}

.reward-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.reward-status.available {
    background: #4CAF50;
    color: var(--pyzi-white);
}

.reward-status.unlocked {
    background: #FFD700;
    color: var(--pyzi-text);
}

.reward-status.locked {
    background: #f0f0f0;
    color: var(--pyzi-text-muted);
}

.claim-reward-info {
    margin-top: 30px;
    padding: 25px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--pyzi-radius);
    text-align: center;
}

.rewards-history {
    margin: 40px 0;
}

.rewards-history h3 {
    margin-bottom: 20px;
}

.history-table {
    overflow-x: auto;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--pyzi-border);
}

.history-table th {
    background: var(--pyzi-bg-light);
    font-weight: 600;
}

.how-it-works {
    margin: 40px 0;
    padding: 30px;
    background: var(--pyzi-bg-light);
    border-radius: var(--pyzi-radius);
}

.how-it-works h3 {
    margin-bottom: 20px;
}

.steps {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.steps li {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--pyzi-border);
}

.steps li:last-child {
    border-bottom: none;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--pyzi-primary);
    color: var(--pyzi-white);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    font-size: 15px;
}

.rules-link {
    text-align: center;
    margin: 20px 0 0;
}

.rules-link a {
    color: var(--pyzi-primary);
    font-weight: 600;
}

/* ==========================================================================
   MY SUBMISSIONS
   ========================================================================== */
.pyzipyzi-submissions {
    max-width: 900px;
    margin: 0 auto;
}

.no-submissions {
    text-align: center;
    padding: 60px 20px;
}

.no-submissions-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.no-submissions h3 {
    margin-bottom: 10px;
}

.no-submissions p {
    color: var(--pyzi-text-muted);
    margin-bottom: 20px;
}

.submissions-list {
    margin: 30px 0;
}

.submission-item {
    background: var(--pyzi-white);
    border: 1px solid var(--pyzi-border);
    border-radius: var(--pyzi-radius);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.submission-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: var(--pyzi-bg-light);
    border-bottom: 1px solid var(--pyzi-border);
}

.submission-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-icon {
    font-size: 24px;
}

.submission-title h3 {
    margin: 0;
    font-size: 18px;
}

.submission-date {
    font-size: 14px;
    color: var(--pyzi-text-muted);
}

.submission-body {
    padding: 25px 30px;
}

.toggle-details {
    background: var(--pyzi-primary);
    color: var(--pyzi-white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.toggle-details:hover {
    background: var(--pyzi-primary-dark);
}

.submission-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--pyzi-border);
}

.submission-data {
    width: 100%;
    border-collapse: collapse;
}

.submission-data th,
.submission-data td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.submission-data th {
    width: 30%;
    font-weight: 600;
    color: var(--pyzi-text-light);
}

.submission-data td {
    color: var(--pyzi-text);
}

.submission-footer {
    padding: 15px 30px;
    background: var(--pyzi-bg-light);
    border-top: 1px solid var(--pyzi-border);
}

.entry-id {
    font-size: 12px;
    color: var(--pyzi-text-muted);
}

.submissions-info {
    margin-top: 30px;
    padding: 20px;
    background: var(--pyzi-bg-light);
    border-radius: 8px;
}

/* ==========================================================================
   ORDERS
   ========================================================================== */
.pyzipyzi-orders {
    max-width: 100%;
}

.orders-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-box {
    background: var(--pyzi-white);
    padding: 25px;
    border-radius: var(--pyzi-radius);
    border: 1px solid var(--pyzi-border);
    text-align: center;
    transition: var(--pyzi-transition);
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--pyzi-shadow-hover);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--pyzi-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--pyzi-text-light);
    font-weight: 500;
}

.orders-list {
    display: grid;
    gap: 25px;
}

.order-card {
    background: var(--pyzi-white);
    border: 1px solid var(--pyzi-border);
    border-radius: var(--pyzi-radius);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: var(--pyzi-bg-light);
    border-bottom: 1px solid var(--pyzi-border);
}

.order-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-number {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-number .label {
    font-size: 14px;
    color: var(--pyzi-text-muted);
}

.order-number .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--pyzi-text);
}

.order-date {
    font-size: 14px;
    color: var(--pyzi-text-light);
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.order-status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.order-status-badge.status-processing {
    background: #cce5ff;
    color: #004085;
}

.order-status-badge.status-on-hold {
    background: #fff3cd;
    color: #856404;
}

.order-status-badge.status-cancelled,
.order-status-badge.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.order-status-badge.status-refunded {
    background: #e2e3e5;
    color: #383d41;
}

.order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    gap: 20px;
}

.order-items-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.items-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.items-info {
    flex: 1;
    min-width: 0;
}

.items-count {
    font-size: 16px;
    font-weight: 600;
    color: var(--pyzi-text);
    margin-bottom: 4px;
}

.items-names {
    font-size: 14px;
    color: var(--pyzi-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-total {
    text-align: right;
    flex-shrink: 0;
}

.total-label {
    font-size: 12px;
    color: var(--pyzi-text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--pyzi-primary);
}

.order-footer {
    display: flex;
    gap: 10px;
    padding: 25px 30px;
    background: var(--pyzi-bg-lighter);
    border-top: 1px solid var(--pyzi-border);
}

.button-view-order {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
}

.button-view-order:hover {
    transform: translateX(2px);
}

.no-orders-state {
    text-align: center;
    padding: 80px 20px;
}

.no-orders-icon {
    font-size: 100px;
    margin-bottom: 20px;
}

.no-orders-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--pyzi-text);
}

.no-orders-state p {
    font-size: 16px;
    color: var(--pyzi-text-light);
    margin-bottom: 30px;
}

.orders-pagination {
    margin-top: 40px;
    text-align: center;
}

.orders-pagination ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.orders-pagination a,
.orders-pagination span {
    display: block;
    padding: 10px 16px;
    background: var(--pyzi-white);
    border: 2px solid var(--pyzi-border);
    border-radius: 8px;
    color: var(--pyzi-text);
    text-decoration: none;
    font-weight: 600;
    transition: var(--pyzi-transition);
}

.orders-pagination a:hover {
    border-color: var(--pyzi-primary);
    color: var(--pyzi-primary);
}

.orders-pagination .current {
    background: var(--pyzi-primary);
    border-color: var(--pyzi-primary);
    color: var(--pyzi-white);
}

/* ==========================================================================
   ADDRESSES
   ========================================================================== */
.pyzipyzi-addresses {
    max-width: 900px;
    margin: 0 auto;
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.address-card {
    background: var(--pyzi-white);
    border: 2px solid var(--pyzi-border);
    border-radius: var(--pyzi-radius-lg);
}

.address-card:hover {
    border-color: var(--pyzi-primary);
    box-shadow: 0 8px 24px rgba(239, 99, 65, 0.15);
}

.address-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 30px;
    background: linear-gradient(135deg, var(--pyzi-bg-light) 0%, var(--pyzi-white) 100%);
    border-bottom: 1px solid var(--pyzi-border);
}

.address-icon {
    font-size: 42px;
    flex-shrink: 0;
    line-height: 1;
}

.address-header-text h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: var(--pyzi-text);
    font-weight: 700;
}

.address-desc {
    margin: 0;
    font-size: 13px;
    color: var(--pyzi-text-muted);
}

.address-body {
    padding: 30px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--pyzi-text-light);
}

.address-content address {
    font-style: normal;
}

.address-empty {
    text-align: center;
    color: var(--pyzi-text-muted);
}

.empty-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.address-empty p {
    margin: 0;
    font-size: 14px;
}

.address-footer {
    padding: 25px 30px;
    background: var(--pyzi-bg-lighter);
    border-top: 1px solid var(--pyzi-border);
}

.button-edit-address {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
}

.addresses-info {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--pyzi-bg-light);
    border: 1px solid var(--pyzi-border);
    border-radius: var(--pyzi-radius);
}

.info-icon {
    font-size: 36px;
    flex-shrink: 0;
    line-height: 1;
}

.info-content h4 {
    margin: 0 0 15px;
    font-size: 18px;
    color: var(--pyzi-text);
}

.info-content ul {
    margin: 0;
    padding-left: 20px;
    color: var(--pyzi-text-light);
    font-size: 14px;
    line-height: 1.8;
}

.info-content li {
    margin-bottom: 8px;
}

.info-content strong {
    color: var(--pyzi-text);
}

/* ==========================================================================
   EDIT ACCOUNT
   ========================================================================== */
.pyzipyzi-edit-account {
    max-width: 800px;
    margin: 0 auto;
}

.edit-account {
    background: var(--pyzi-white);
    border-radius: var(--pyzi-radius-lg);
    overflow: hidden;
    box-shadow: var(--pyzi-shadow);
    margin-bottom: 30px;
}

.form-section {
    padding: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.section-icon {
    font-size: 40px;
    flex-shrink: 0;
    line-height: 1;
}

.section-title h3 {
    margin: 0 0 5px;
    font-size: 22px;
    color: var(--pyzi-text);
    font-weight: 700;
}

.section-title p {
    margin: 0;
    font-size: 14px;
    color: var(--pyzi-text-muted);
}

.form-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: span 2;
}

.form-field label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--pyzi-text);
}

.form-field .required {
    color: var(--pyzi-primary);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"] {
    padding: 16px 18px;
    border: 2px solid var(--pyzi-border);
    border-radius: 10px;
    font-size: 16px;
    transition: var(--pyzi-transition);
    font-family: inherit;
    width: 100%;
}

.form-field input:focus {
    outline: none;
    border-color: var(--pyzi-primary);
    box-shadow: 0 0 0 3px rgba(239, 99, 65, 0.1);
}

.field-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--pyzi-text-muted);
}

/* Password Field - NOWA WERSJA */
.password-field-wrapper {
    position: relative !important;
    display: block !important;
}

.password-field-wrapper input {
    width: 100% !important;
    padding: 16px 50px 16px 18px !important;
    border: 2px solid var(--pyzi-border);
    border-radius: 10px;
    font-size: 16px;
    transition: var(--pyzi-transition);
    font-family: inherit;
}

.toggle-password {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 10px !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    line-height: 1;
    height: auto !important;
    width: auto !important;
}

.toggle-password:hover {
    opacity: 1 !important;
}

.toggle-password:focus {
    outline: 2px solid var(--pyzi-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.toggle-password .eye-icon {
    font-size: 20px;
    line-height: 1;
    display: block;
}

.form-actions {
    padding: 30px 40px;
    background: var(--pyzi-bg-lighter);
}

.button-save-changes {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
}

.security-tips {
    background: var(--pyzi-bg-light);
    border: 1px solid var(--pyzi-border);
    border-radius: var(--pyzi-radius);
    padding: 25px;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.tips-icon {
    font-size: 28px;
    line-height: 1;
}

.tips-header h4 {
    margin: 0;
    font-size: 18px;
    color: var(--pyzi-text);
}

.security-tips ul {
    margin: 0;
    padding-left: 20px;
    color: var(--pyzi-text-light);
    font-size: 14px;
    line-height: 1.8;
}

.security-tips li {
    margin-bottom: 8px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .woocommerce-MyAccount-content {
        padding: 0;
    }
    
    .myaccount-sidebar {
        display: none;
    }
    
    .myaccount-mobile-nav {
        display: block;
    }
    
    .myaccount-back-button {
        width: 100%;
        justify-content: center;
    }
    
    .myaccount-page-header h1 {
        font-size: 28px;
    }
    
    .page-icon {
        font-size: 32px;
    }
    
    .dashboard-welcome {
        padding: 25px;
    }
    
    .dashboard-welcome h2 {
        font-size: 26px;
    }
    
    .dashboard-stats,
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stamps-grid {
        gap: 12px;
    }
    
    .loyalty-card {
        padding: 25px;
    }
    
    .reward-item,
    .order-header,
    .address-header,
    .addresses-info,
    .submissions-info,
    .submission-header {
        flex-direction: column;
        text-align: center;
    }
    
    .order-body {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-total {
        text-align: left;
        width: 100%;
    }
    
    .order-footer {
        flex-direction: column;
    }
    
    .button-view-order,
    .button-action {
        width: 100%;
        justify-content: center;
    }
    
    .addresses-grid {
        grid-template-columns: 1fr;
    }
    
    .form-fields {
        grid-template-columns: 1fr;
    }
    
    .form-field.full-width {
        grid-column: span 1;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .dashboard-welcome {
        padding: 20px;
    }
    
    .dashboard-welcome h2 {
        font-size: 24px;
    }
    
    .order-header,
    .address-header,
    .submission-header {
        padding: 20px;
    }
    
    .order-body,
    .address-body,
    .submission-body {
        padding: 20px;
    }
    
    .order-footer,
    .address-footer {
        padding: 20px;
    }
}

/* ==========================================================================
   SHIPPING NOTICE - Alert o ograniczeniach wysyłki
   ========================================================================== */
.shipping-notice {
    display: flex;
    gap: 20px;
    padding: 25px;
    margin-bottom: 35px;
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border: 2px solid #ffc107;
    border-left: 6px solid #ff9800;
    border-radius: var(--pyzi-radius);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shipping-notice .notice-icon {
    font-size: 36px;
    flex-shrink: 0;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.shipping-notice .notice-content {
    flex: 1;
}

.shipping-notice .notice-content h4 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #8b6914;
    font-weight: 700;
}

.shipping-notice .notice-content p {
    margin: 0 0 8px;
    font-size: 15px;
    color: #856404;
    line-height: 1.6;
}

.shipping-notice .notice-content p:last-child {
    margin-bottom: 0;
}

.shipping-notice .notice-content strong {
    color: #6d4c00;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .shipping-notice {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .shipping-notice .notice-content h4 {
        font-size: 16px;
    }
    
    .shipping-notice .notice-content p {
        font-size: 14px;
    }
}