/**
 * Shetek Storage - Customer Portal Styles
 */

/* ======================
   My Rentals List
   ====================== */

.shetek-my-rentals h2 {
    margin-bottom: 25px;
}

.rentals-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rental-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.rental-card.rental-status-pending_cancellation {
    border-color: #ffb74d;
    background: #fff8e1;
}

.rental-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.rental-unit {
    display: flex;
    align-items: center;
    gap: 12px;
}

.unit-icon {
    font-size: 32px;
}

.unit-info strong {
    display: block;
    font-size: 18px;
    color: #1d2327;
}

.unit-info .unit-size {
    display: block;
    font-size: 14px;
    color: #666;
}

/* Status Badge */
.rental-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

.rental-status-badge.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.rental-status-badge.status-reserved {
    background: #fff3e0;
    color: #e65100;
}

.rental-status-badge.status-pending_payment {
    background: #e3f2fd;
    color: #1565c0;
}

.rental-status-badge.status-pending_cancellation {
    background: #fce4ec;
    color: #c2185b;
}

.rental-status-badge.status-cancelled {
    background: #f5f5f5;
    color: #616161;
}

.rental-status-badge.status-expired {
    background: #f5f5f5;
    color: #616161;
}

/* Term Badge */
.term-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
}

.term-badge.term-contract {
    background: #e3f2fd;
    color: #1565c0;
}

.term-badge.term-mtm {
    background: #fff3e0;
    color: #e65100;
}

/* Badges container */
.rental-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rental-status .term-badge {
    margin-right: 6px;
}

/* Credit inline on rental card */
.rental-credit-inline {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
}

.rental-credit-inline strong {
    font-size: 14px;
}

/* Details Grid */
.rental-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.detail-item .detail-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.detail-item .detail-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

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

.rental-actions .button-link {
    color: #d63638;
}

.rental-actions .button-link:hover {
    color: #a00;
}

.rental-actions .button-annual {
    background: #F7941D;
    color: #fff;
    border-color: #e5850e;
}

.rental-actions .button-annual:hover {
    background: #e5850e;
    color: #fff;
}

/* Past Rentals */
.past-rentals-section {
    margin-top: 40px;
}

.past-rentals-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #666;
}

.rental-card.rental-card-past {
    opacity: 0.7;
    border-style: dashed;
}

.rental-card.rental-card-past:hover {
    opacity: 1;
}

.past-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .rental-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rental-header {
        flex-direction: column;
        gap: 10px;
    }
}

/* ======================
   Rental Details Page
   ====================== */

.shetek-rental-details .back-link {
    margin-bottom: 20px;
}

.shetek-rental-details .back-link a {
    color: #666;
    text-decoration: none;
}

.shetek-rental-details .back-link a:hover {
    color: #333;
}

.rental-header-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

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

.unit-icon-large {
    font-size: 48px;
}

.rental-title h2 {
    margin: 0;
    font-size: 24px;
}

.unit-size-large {
    margin: 5px 0 0;
    color: #666;
}

/* Credit Balance Box */
.credit-balance-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.credit-balance-box .credit-label {
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credit-balance-box .credit-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1b5e20;
}

.credit-balance-box .credit-note {
    font-size: 12px;
    color: #4caf50;
    margin-left: auto;
}

.details-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.details-section h3 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #1d2327;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.details-table {
    width: 100%;
}

.details-table th,
.details-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.details-table th {
    width: 40%;
    color: #666;
    font-weight: normal;
}

.details-table td {
    font-weight: 500;
}

.details-table tr:last-child th,
.details-table tr:last-child td {
    border-bottom: none;
}

/* Contract History Table */
.contracts-table {
    width: 100%;
    border-collapse: collapse;
}

.contracts-table th,
.contracts-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.contracts-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    color: #666;
}

.contract-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.contract-status.contract-signed {
    background: #e8f5e9;
    color: #2e7d32;
}

.contract-status.contract-draft {
    background: #f5f5f5;
    color: #616161;
}

.contract-status.contract-sent {
    background: #e3f2fd;
    color: #1565c0;
}

.contract-status.contract-viewed {
    background: #fff3e0;
    color: #e65100;
}

.contract-status.contract-expired {
    background: #ffebee;
    color: #c62828;
}

/* Billing History - Enhanced */
.payments-table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table th,
.payments-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.payments-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    color: #666;
}

.payment-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.payment-status.payment-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.payment-status.payment-pending {
    background: #fff3e0;
    color: #e65100;
}

.payment-status.payment-failed {
    background: #ffebee;
    color: #c62828;
}

.payment-status.payment-refunded {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Payment type badges */
.payment-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.payment-type-badge.type-initial {
    background: #e3f2fd;
    color: #1565c0;
}

.payment-type-badge.type-renewal {
    background: #f3e5f5;
    color: #7b1fa2;
}

.payment-type-badge.type-late_fee {
    background: #ffebee;
    color: #c62828;
}

.payment-type-badge.type-credit {
    background: #e8f5e9;
    color: #2e7d32;
}

.payment-type-badge.type-manual {
    background: #f5f5f5;
    color: #616161;
}

/* Credit row in billing table */
.payment-row-credit {
    background: #f1f8e9;
}

.credit-amount-inline {
    color: #2e7d32;
    font-weight: 600;
}

.no-payments {
    color: #666;
    font-style: italic;
}

/* ======================
   Switch to Annual
   ====================== */

.switch-to-annual-section {
    border-color: #F7941D;
    border-width: 2px;
}

.switch-to-annual-section h3 {
    color: #e5850e;
    border-bottom-color: #fef3e0;
}

.annual-offer {
    text-align: center;
}

.annual-pricing {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.annual-price-item {
    flex: 1;
    max-width: 250px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.annual-price-item.highlight {
    background: #fef3e0;
    border: 2px solid #F7941D;
}

.annual-price-item .price-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.annual-price-item .price-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
}

.annual-price-item.highlight .price-value {
    color: #e5850e;
}

.annual-price-item .price-savings {
    display: block;
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
    margin-top: 4px;
}

.annual-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#switch-to-annual-btn {
    background: #F7941D;
    border-color: #e5850e;
    color: #fff;
    font-size: 16px;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
}

#switch-to-annual-btn:hover {
    background: #e5850e;
}

#switch-to-annual-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.annual-note {
    color: #d63638;
    font-size: 13px;
    margin-top: 12px;
}

/* ======================
   Cancellation Section
   ====================== */

.cancellation-section.pending {
    background: #fff8e1;
    border-color: #ffb74d;
}

.cancellation-info {
    line-height: 1.6;
}

.cancellation-info .button {
    margin-top: 15px;
}

/* ======================
   Cancel Rental Page
   ====================== */

.shetek-cancel-rental .back-link {
    margin-bottom: 20px;
}

.shetek-cancel-rental h2 {
    margin-bottom: 25px;
}

.cancellation-summary {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 25px;
}

.unit-being-cancelled {
    display: flex;
    align-items: center;
    gap: 15px;
}

.unit-being-cancelled .unit-icon {
    font-size: 36px;
}

.unit-being-cancelled strong {
    display: block;
    font-size: 18px;
}

.unit-being-cancelled span {
    display: block;
    color: #666;
    font-size: 14px;
}

.notice-warning {
    padding: 15px 20px;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
}

.notice-warning strong {
    display: block;
    margin-bottom: 8px;
    color: #e65100;
}

.notice-warning p {
    margin: 0;
    color: #5d4037;
}

.cancellation-dates {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.shetek-cancel-rental .date-item {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.shetek-cancel-rental .date-item.highlight {
    background: #e3f2fd;
    border: 2px solid #1976d2;
}

.shetek-cancel-rental .date-item .date-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.shetek-cancel-rental .date-item .date-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.shetek-cancel-rental .date-item.highlight .date-value {
    color: #1565c0;
}

.cancellation-policy {
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 30px;
}

.cancellation-policy h3 {
    margin: 0 0 15px;
    font-size: 16px;
}

.cancellation-policy ul {
    margin: 0;
    padding-left: 20px;
}

.cancellation-policy li {
    margin-bottom: 8px;
    color: #555;
}

/* Cancellation Form */
.cancellation-form {
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.cancellation-form h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.form-description {
    color: #666;
    margin-bottom: 20px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.form-row input:focus,
.form-row select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.checkbox-row label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    margin-top: 3px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-actions .button {
    padding: 10px 25px;
}

@media (max-width: 600px) {
    .cancellation-dates {
        flex-direction: column;
    }

    .rental-header-full {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .rental-title {
        flex-direction: column;
    }

    .annual-pricing {
        flex-direction: column;
        align-items: center;
    }

    .annual-price-item {
        max-width: 100%;
    }

    .credit-balance-box {
        flex-direction: column;
        text-align: center;
    }

    .credit-balance-box .credit-note {
        margin-left: 0;
    }
}

/* ======================
   Dashboard (My Account Landing)
   ====================== */

.shetek-portal-dashboard {
    max-width: 800px;
}

/* Summary Card */
.shetek-dashboard-summary {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #F7941D;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

.summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.summary-unit strong {
    font-size: 20px;
    color: #1d2327;
    display: block;
}

.summary-size {
    font-size: 14px;
    color: #666;
}

.summary-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.summary-detail-item {
    text-align: center;
    padding: 10px 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.summary-detail-item .detail-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.summary-detail-item .detail-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.summary-upsell {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #5d4037;
    margin-bottom: 12px;
}

.summary-upsell a {
    color: #F7941D;
    font-weight: 600;
}

.summary-multi {
    font-size: 13px;
    color: #666;
}

.summary-multi a {
    color: #2271b1;
    font-weight: 500;
}

/* Icon Tiles */
.shetek-dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.shetek-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: #1d2327;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 130px;
}

.shetek-tile:hover {
    border-color: #F7941D;
    box-shadow: 0 4px 12px rgba(247, 148, 29, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: #1d2327;
}

.shetek-tile.shetek-tile-highlight {
    border-color: #F7941D;
    background: #fffaf3;
}

.shetek-tile-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    color: #F7941D;
}

.shetek-tile-icon svg {
    width: 100%;
    height: 100%;
}

.shetek-tile-label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.shetek-tile-sub {
    font-size: 12px;
    color: #888;
}

/* No-rental state */
.shetek-dashboard-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.shetek-dashboard-empty .empty-icon {
    color: #ccc;
    margin-bottom: 20px;
}

.shetek-dashboard-empty h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #1d2327;
}

.shetek-dashboard-empty p {
    color: #666;
    margin-bottom: 20px;
}

.shetek-dashboard-empty .button-primary {
    background: #F7941D;
    border-color: #e5850e;
    color: #fff;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
}

.shetek-dashboard-empty .button-primary:hover {
    background: #e5850e;
}

/* Dashboard mobile */
@media (max-width: 768px) {
    .summary-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .shetek-dashboard-tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .shetek-dashboard-tiles {
        grid-template-columns: 1fr;
    }

    .shetek-tile {
        min-height: auto;
        padding: 16px;
        flex-direction: row;
        gap: 14px;
        text-align: left;
        justify-content: flex-start;
    }

    .shetek-tile-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

/* ======================
   Billing Section (Dashboard)
   ====================== */

.shetek-billing-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #ddd;
}

.billing-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 12px;
}

.billing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.billing-row .billing-label {
    color: #666;
}

.billing-row .billing-value {
    font-weight: 600;
    color: #1d2327;
}

/* Autopay Toggle (iOS-style) */
.autopay-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.autopay-toggle-label {
    font-size: 14px;
    color: #666;
}

.autopay-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.autopay-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.autopay-toggle .toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 26px;
    transition: background 0.3s ease;
}

.autopay-toggle .toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.autopay-toggle input:checked + .toggle-slider {
    background: #2e7d32;
}

.autopay-toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.autopay-toggle input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Autopay Method Display */
.autopay-method {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1d2327;
    font-weight: 500;
}

.autopay-method .method-icon {
    font-size: 16px;
}

.autopay-method-link {
    font-size: 12px;
    color: #2271b1;
    text-decoration: none;
    margin-left: 8px;
}

.autopay-method-link:hover {
    text-decoration: underline;
}

/* Overdue Alert */
.payment-overdue-alert {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    border-left: 4px solid #c62828;
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    animation: overdue-pulse 2s ease-in-out 3;
}

@keyframes overdue-pulse {
    0%, 100% { border-left-color: #c62828; }
    50% { border-left-color: #ef5350; }
}

.overdue-text {
    font-size: 14px;
    color: #b71c1c;
    font-weight: 500;
}

.overdue-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.pay-now-btn {
    background: #c62828;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.pay-now-btn:hover {
    background: #b71c1c;
}

.pay-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* No method prompt */
.autopay-no-method {
    font-size: 13px;
    color: #888;
}

.autopay-no-method a {
    color: #2271b1;
    font-weight: 500;
}

/* Billing section mobile */
@media (max-width: 480px) {
    .billing-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .autopay-toggle-row {
        flex-direction: row;
    }

    .payment-overdue-alert {
        flex-direction: column;
        text-align: center;
    }
}

/* ======================
   Agreement Status Card
   ====================== */

.agreement-status-card {
    border-left: 4px solid #F7941D;
}

.agreement-status-content {
    padding: 0;
}

.agreement-timeline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.timeline-point {
    text-align: center;
}

.timeline-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.timeline-date {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.timeline-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #F7941D, #e0e0e0);
    margin-top: 12px;
}

.agreement-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.months-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.months-badge.months-green {
    background: #e8f5e9;
    color: #2e7d32;
}

.months-badge.months-yellow {
    background: #fff8e1;
    color: #e65100;
}

.months-badge.months-red {
    background: #ffebee;
    color: #c62828;
}

.agreement-rate {
    font-size: 14px;
    color: #666;
}

.agreement-upsell {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 14px;
    color: #5d4037;
    line-height: 1.5;
}

.agreement-upsell .button {
    margin-left: 10px;
}

/* Section header row (heading + button) */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-header-row h3 {
    margin: 0;
    padding: 0;
    border: none;
}

/* ======================
   Rental Statement (Print-Friendly)
   ====================== */

.shetek-rental-statement {
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.statement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #1d2327;
}

.statement-business h2 {
    margin: 0 0 5px;
    font-size: 22px;
    color: #1d2327;
}

.statement-business p {
    margin: 2px 0;
    font-size: 13px;
    color: #666;
}

.statement-title {
    text-align: right;
}

.statement-title h1 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #F7941D;
    letter-spacing: 1px;
}

.statement-title p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.statement-customer {
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 24px;
}

.statement-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.statement-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.statement-value {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.statement-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.statement-table th,
.statement-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.statement-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.statement-table .text-right,
.text-right {
    text-align: right;
}

.statement-totals {
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 24px;
}

.statement-totals .statement-row {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.statement-totals .statement-row:last-child {
    border-bottom: none;
}

.statement-totals .statement-value {
    font-size: 16px;
}

.statement-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 20px;
}

.statement-actions .button-primary {
    background: #F7941D;
    border-color: #e5850e;
    color: #fff;
}

/* ======================
   Renewal Page
   ====================== */

.shetek-renew-rental {
    max-width: 700px;
}

.shetek-renew-rental .back-link {
    margin-bottom: 20px;
}

.shetek-renew-rental .back-link a {
    color: #666;
    text-decoration: none;
}

.shetek-renew-rental h2 {
    margin-bottom: 25px;
}

.renew-current-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.renew-unit strong {
    font-size: 18px;
    display: block;
}

.renew-unit span {
    font-size: 14px;
    color: #666;
}

.renew-status {
    display: flex;
    gap: 6px;
}

.renew-remaining {
    padding: 12px 16px;
    background: #e3f2fd;
    border-radius: 6px;
    font-size: 14px;
    color: #1565c0;
    margin-bottom: 24px;
}

.renew-offer-card {
    background: #fff;
    border: 2px solid #F7941D;
    border-radius: 8px;
    padding: 28px;
}

.renew-offer-card h3 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #F7941D;
    text-align: center;
}

.renew-pricing {
    margin-bottom: 20px;
}

.renew-price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.renew-price-row:last-child {
    border-bottom: none;
}

.renew-price-row.renew-discount {
    color: #2e7d32;
}

.renew-price-row.renew-total {
    padding-top: 14px;
    margin-top: 4px;
    border-top: 2px solid #1d2327;
    border-bottom: none;
    font-size: 18px;
}

.renew-stacking {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.renew-stacking p {
    margin: 0;
}

.renew-action {
    text-align: center;
}

#renew-now-btn {
    background: #F7941D;
    border-color: #e5850e;
    color: #fff;
    font-size: 16px;
    padding: 14px 36px;
    border-radius: 6px;
    cursor: pointer;
}

#renew-now-btn:hover {
    background: #e5850e;
}

#renew-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.renew-note {
    color: #d63638;
    font-size: 13px;
    margin-top: 12px;
}

/* ======================
   Print Styles
   ====================== */

@media print {
    /* Hide navigation and non-essential elements */
    .woocommerce-MyAccount-navigation,
    .site-header,
    .site-footer,
    .shetek-mobile-header,
    .shetek-announce-bar,
    .no-print,
    .statement-actions,
    .back-link,
    .woocommerce-breadcrumb,
    #wpadminbar,
    .admin-bar-placeholder {
        display: none !important;
    }

    /* Full-width content */
    .woocommerce-MyAccount-content {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body,
    .site,
    .page_wrap,
    .site-content,
    .content-area,
    .inside-article {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Clean statement typography */
    .shetek-rental-statement {
        max-width: 100%;
        font-size: 12pt;
    }

    .statement-header {
        border-bottom-color: #000;
    }

    .statement-title h1 {
        color: #000;
    }

    .statement-table th {
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page {
        margin: 1.5cm;
    }
}
