/* Niestandardowe style dla panelu Moje Konto */
:root {
    --primary-color: #4682B4;
    --primary-light: #6CA0D3;
    --primary-dark: #3A5F8B;
    --secondary-color: #f7f7f7;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-color: #333;
    --text-light: #777;
    --border-radius: 8px;
    --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* Resetowanie stylów WooCommerce */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 280px;
    float: none;

}

.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    float: none;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 0;
}

/* Style dla nawigacji konta */
.woocommerce-MyAccount-navigation {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.woocommerce-MyAccount-navigation ul li a:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 16px;
    opacity: 0.7;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a:before {
    content: "\f015"; /* Home */
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a:before {
    content: "\f07a"; /* Shopping bag */
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--rentals a:before {
    content: "\f4df"; /* Dolly */
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads a:before {
    content: "\f019"; /* Download */
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a:before {
    content: "\f3c5"; /* Map marker */
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a:before {
    content: "\f007"; /* User */
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:before {
    content: "\f2f5"; /* Sign out */
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: rgba(0,0,0,0.03);
    color: var(--primary-color);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--primary-color);
    color: white;
}

.woocommerce-MyAccount-navigation ul li.is-active a:before {
    opacity: 1;
}

/* Panel główny - dashboard */
.cpm-dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-welcome {
    background: #4682B4;
    border-radius: var(--border-radius);
    padding: 30px;
    color: white;
    box-shadow: 0 10px 25px rgba(70, 130, 180, 0.2);
}

.welcome-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-right: 20px;
    flex-shrink: 0;
}

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

.welcome-text h2 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 600;
    color: white;
}

.welcome-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.stat-box {
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    flex: 1;
    min-width: 180px;
    display: flex;
    transition: var(--transition);
}

.stat-box:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.stat-box i {
    font-size: 24px;
    margin-right: 15px;
    opacity: 0.9;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

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

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.action-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.08);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.action-card.highlight {
    border-color: var(--primary-color);
    background-color: rgba(70, 130, 180, 0.05);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

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

.card-arrow {
    color: var(--primary-color);
    opacity: 0.5;
    transition: var(--transition);
}

.action-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.section-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.recent-rentals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.rental-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    transition: var(--transition);
}

.rental-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.rental-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--secondary-color);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.rental-id {
    font-weight: 600;
    color: var(--text-color);
}

.rental-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.rental-status.processing, .rental-status.on-hold {
    background-color: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.rental-status.completed {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.rental-status.cancelled, .rental-status.failed {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.rental-details {
    padding: 20px;
}

.rental-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rental-item {
    padding: 15px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
}

.item-name {
    font-weight: 600;
    margin-bottom: 10px;
}

.rental-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.date-start, .date-end {
    flex: 1;
    min-width: 140px;
}

.date-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.date-value {
    font-weight: 500;
}

.extension-alert {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.extension-alert i {
    margin-right: 5px;
}

.rental-actions {
    display: flex;
    padding: 15px 20px;
    background: var(--secondary-color);
    border-top: 1px solid rgba(0,0,0,0.08);
    gap: 10px;
}

.view-details, .extend-rental {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.view-details {
    background: white;
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
}

.view-details:hover {
    background: var(--text-color);
    color: white;
}

.extend-rental {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.extend-rental:hover {
    background: var(--primary-dark);
}

/* Style dla strony wynajmów */
.cpm-rentals {
    width: 100%;
}

.rentals-header {
    margin-bottom: 30px;
}

.rentals-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
}

.rentals-header p {
    margin: 0;
    color: var(--text-light);
    font-size: 16px;
}

.rentals-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 8px 15px;
    background: var(--secondary-color);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(70, 130, 180, 0.1);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.rentals-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.rental-body {
    padding: 20px;
}

.rental-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-date, .order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
}

.order-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    padding: 15px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
}

.product-name {
    font-weight: 600;
    margin-bottom: 10px;
}

.rental-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pickup-date, .return-date {
    flex: 1;
    min-width: 140px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
}

.days-remaining {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
}

.days-remaining.expiring {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.action-btn i {
    margin-right: 5px;
}

.action-btn.view {
    background: white;
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
}

.action-btn.view:hover {
    background: var(--text-color);
    color: white;
}

.action-btn.extend {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.action-btn.extend:hover {
    background: var(--primary-dark);
}

.action-btn.reorder {
    background: var(--success-color);
    color: white;
    margin-left: auto;
}

.action-btn.reorder:hover {
    background: #27ae60;
}

.no-rentals {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.no-rentals-icon {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-rentals p {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--text-color);
}

.browse-products-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.browse-products-btn:hover {
    background: var(--primary-dark);
}

/* Style dla strony przedłużania wynajmu */
.extend-rental-container {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.back-link i {
    margin-right: 5px;
}

.back-link:hover {
    color: var(--primary-color);
}

.extend-rental-header {
    margin-bottom: 30px;
}

.extend-rental-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
}

.extend-rental-header p {
    margin: 0;
    color: var(--text-light);
    font-size: 16px;
}

.current-rental-details {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.rental-product-info h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

.rental-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.date-info {
    flex: 1;
    min-width: 140px;
    padding: 12px;
    background: var(--secondary-color);
    border-radius: 4px;
}

.date-info.highlight {
    background: rgba(243, 156, 18, 0.1);
}

.extension-options {
    margin-bottom: 30px;
}

.extension-options h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 500;
}

.extension-period-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.period-option {
    position: relative;
}

.period-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.period-card {
    display: block;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: var(--transition);
}

.period-option input[type="radio"]:checked + .period-card {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(70, 130, 180, 0.2);
}

.period-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.period-name {
    font-weight: 600;
    font-size: 16px;
}

.period-price {
    font-weight: 700;
    color: var(--primary-color);
}

.period-details {
    margin-bottom: 10px;
}

.new-expiry, .savings {
    margin-bottom: 8px;
}

.detail-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.detail-value {
    font-weight: 500;
}

.period-select-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.period-option input[type="radio"]:checked + .period-card .period-select-indicator {
    opacity: 1;
}

.extension-summary {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.summary-details {
    margin-bottom: 20px;
}

.summary-details p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text-color);
}

.extend-submit-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.extend-submit-btn i {
    margin-right: 8px;
}

.extend-submit-btn:hover {
    background: var(--primary-dark);
}

/* Informacje o przedłużeniu wynajmu */
.rental-extension-info {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.rental-extension-info h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.rental-extension-info p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text-color);
}


/* Udoskonalone style dla dat wynajmu */
.rental-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.pickup-date, .return-date, .deposit-date {
    flex: 1;
    min-width: 140px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
}

.date-label {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.date-value {
    font-weight: 600;
    color: #333;
}

.days-remaining {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.deposit-date {
    background: rgba(70, 130, 180, 0.05);
    border-left: 2px solid #4682B4;
}

.extension-alert {
    margin-top: 8px;
    display: inline-block;
    padding: 3px 8px;
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border-radius: 4px;
    font-size: 12px;
}

.extension-alert i {
    margin-right: 4px;
}


/* Responsywność */
@media (max-width: 768px) {
    
    .action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
    
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
    }
    
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 20px;
    }
    
    .dashboard-welcome {
        padding: 20px;
    }
    
    .welcome-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .dashboard-stats {
        flex-direction: column;
    }
    
    .rental-dates {
        flex-direction: column;
    }
    
    .rental-actions {
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    
    .extension-period-selector {
        grid-template-columns: 1fr;
    }
}


/* Poprawione style dla sekcji "Aktywne wynajmy" */
.recent-rentals {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.rental-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 100%;
}

.rental-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.rental-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f7f7f7;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.rental-id {
    font-weight: 600;
    color: #333;
}

.rental-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.rental-status.processing, .rental-status.on-hold {
    background-color: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.rental-status.completed {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.rental-status.cancelled, .rental-status.failed {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.rental-details {
    padding: 20px;
}

.rental-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rental-item {
    padding: 15px;
    background: #f7f7f7;
    border-radius: 8px;
}

.rental-item-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.rental-product-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 5px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.rental-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rental-product-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.rental-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.date-start, .date-end {
    flex: 1;
    min-width: 140px;
}

.date-label {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 3px;
}

.date-value {
    font-weight: 500;
    color: #333;
}

.extension-alert {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
}

.extension-alert i {
    margin-right: 5px;
}

.rental-actions {
    display: flex;
    padding: 15px 20px;
    background: #f7f7f7;
    border-top: 1px solid rgba(0,0,0,0.08);
    gap: 10px;
}

.view-details, .extend-rental {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-details {
    background: white;
    color: #333;
    border: 1px solid rgba(0,0,0,0.1);
}

.view-details:hover {
    background: #333;
    color: white;
}

.extend-rental {
    background: #4682B4;
    color: white;
    margin-left: auto;
}

.extend-rental:hover {
    background: #3A5F8B;
}

/* Poprawione style dla menu nawigacji */
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #4682B4;
    color: white;
}

.woocommerce-MyAccount-navigation ul li.is-active a:before {
    opacity: 1;
    color: white;
}

/* Zachowanie stylu po najechaniu na aktywny element menu */
.woocommerce-MyAccount-navigation ul li.is-active a:hover {
    background-color: #3A5F8B;
    color: white;
}




/* Responsywność */
@media (max-width: 768px) {
    .rental-item-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rental-product-image {
        margin-bottom: 10px;
    }
    
    .rental-actions {
        flex-wrap: wrap;
    }
    
    .extend-rental {
        margin-left: 0;
        flex: 1;
        text-align: center;
    }
    
    .view-details {
        flex: 1;
        text-align: center;
    }
    
    .rental-dates {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .rental-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rental-status {
        align-self: flex-start;
    }
}

/* Style dla przycisku przedłużenia */
.rental-actions {
    display: flex;
    padding: 15px 20px;
    background: #f7f7f7;
    border-top: 1px solid rgba(0,0,0,0.08);
    gap: 10px;
    justify-content: space-between;
}

.view-details, .extend-rental {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.view-details i, .extend-rental i {
    margin-right: 6px;
}

.view-details {
    background: white;
    color: #333;
    border: 1px solid rgba(0,0,0,0.1);
}

.view-details:hover {
    background: #333;
    color: white;
}

.extend-rental {
    background: #4682B4;
    color: white;
}

.extend-rental:hover {
    background: #3A5F8B;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(70, 130, 180, 0.2);
}

/* Styl dla nieaktywnego przycisku przedłużenia */
.extend-rental.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

/* Responsywność przycisków */
@media (max-width: 480px) {
    .rental-actions {
        flex-direction: column;
    }
    
    .view-details, .extend-rental {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }
}

/* Style dla sekcji wynajmów */
.cpm-rentals {
    width: 100%;
    max-width: 100%;
}

.rentals-header {
    margin-bottom: 30px;
}

.rentals-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.rentals-header p {
    margin: 0;
    color: #777;
    font-size: 16px;
}

/* Style dla filtrów */
.rentals-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    width: 100%;
}

.filter-btn {
    padding: 8px 15px;
    background: #f7f7f7;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(70, 130, 180, 0.1);
    border-color: #4682B4;
}

.filter-btn.active {
    background: #4682B4;
    color: white;
    border-color: #4682B4;
}

/* Lista wynajmów */
.rentals-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.rental-item {
    width: 100%;
}

.rental-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 100%;
}

.rental-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.rental-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f7f7f7;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.rental-id {
    font-weight: 600;
    color: #333;
}

.rental-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
}

.rental-status.processing, .rental-status.on-hold {
    background-color: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.rental-status.completed {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.rental-status.cancelled, .rental-status.failed {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.rental-body {
    padding: 20px;
}

.rental-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-date, .order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f7f7f7;
    border-radius: 8px;
}

.order-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    padding: 15px;
    background: #f7f7f7;
    border-radius: 8px;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.product-image {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 5px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-name {
    font-weight: 600;
    color: #333;
}

.rental-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.pickup-date, .return-date {
    flex: 1;
    min-width: 140px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
}

.days-remaining {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
}

.days-remaining.expiring {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.rental-actions {
    display: flex;
    padding: 15px 20px;
    background: #f7f7f7;
    border-top: 1px solid rgba(0,0,0,0.08);
    gap: 10px;
    justify-content: flex-end;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.action-btn i {
    margin-right: 8px;
}

.action-btn.view {
    background: white;
    color: #333;
    border: 1px solid rgba(0,0,0,0.1);
}

.action-btn.view:hover {
    background: #333;
    color: white;
}

.action-btn.extend {
    background: #4682B4;
    color: white;
}

.action-btn.extend:hover {
    background: #3A5F8B;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(70, 130, 180, 0.2);
}

.action-btn.reorder {
    background: #2ecc71;
    color: white;
}

.action-btn.reorder:hover {
    background: #27ae60;
}

.no-rentals {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.no-rentals-icon {
    font-size: 48px;
    color: #777;
    margin-bottom: 20px;
}

.no-rentals p {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

.browse-products-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4682B4;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.browse-products-btn:hover {
    background: #3A5F8B;
}

/* Responsywność */
@media (max-width: 768px) {
    .rentals-filter {
        justify-content: space-between;
    }
    
    .filter-btn {
        flex: 1 1 calc(50% - 5px);
        text-align: center;
    }
    
    .rental-dates {
        flex-direction: column;
        gap: 10px;
    }
    
    .pickup-date, .return-date {
        width: 100%;
    }
    
    .product-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-image {
        margin-bottom: 10px;
    }
    
    .rental-actions {
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .rental-header, .order-date, .order-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rental-status {
        align-self: flex-start;
    }
}


