/* Powertech My Account Styles */

.pt-my-account-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
    max-width: 100%;
    width: 100%;
    margin: 20px auto;
    padding: 0 12px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.pt-my-account-wrapper * {
    box-sizing: border-box;
}

@media (min-width: 1025px) {
    .pt-my-account-wrapper {
        grid-template-columns: 320px 1fr;
        gap: 32px;
        width: 80vw;
        max-width: 80vw;
        margin-top: 40px;
        margin-bottom: 40px;
        margin-left: calc(50% - 40vw);
        margin-right: calc(50% - 40vw);
        padding: 0 20px;
    }
}

/* Sidebar */
.pt-my-account-sidebar {
    background: #031c44;
    border-radius: 16px;
    padding: 24px 20px;
    align-self: stretch;
    height: auto;
    min-height: 100%;
}

@media (max-width: 1024px) {
    .pt-my-account-sidebar {
        padding: 20px;
        position: static;
    }
}

@media (max-width: 640px) {
    .pt-my-account-sidebar {
        padding: 16px;
    }
}

.pt-account-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    .pt-account-header {
        gap: 10px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
}

.pt-account-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1d29;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .pt-account-icon {
        width: 40px;
        height: 40px;
    }
}

.pt-account-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .pt-account-title {
        font-size: 16px;
    }
}

.pt-account-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .pt-account-subtitle {
        font-size: 12px;
    }
}

/* Navigation */
.pt-account-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 640px) {
    .pt-account-nav {
        gap: 2px;
    }
}

.pt-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1;
}

@media (max-width: 640px) {
    .pt-nav-item {
        gap: 10px;
        padding: 10px 12px;
        font-size: 13px;
    }
}

.pt-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    transform: translateX(2px);
}

.pt-nav-item.active {
    background: white;
    color: #1a1d29;
}

.pt-nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .pt-nav-item svg {
        width: 18px;
        height: 18px;
    }
}

.pt-nav-spacer {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* Main Content */
.pt-my-account-content {
    background: white;
    border-radius: 16px;
    padding: 16px;
    min-height: 600px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.pt-repairs-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pt-repairs-mini-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: min(100%, 420px);
    margin: 0 auto 10px;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.pt-repairs-header-row .pt-repairs-mini-menu {
    margin: 0;
    flex: 1 1 420px;
}

.pt-repairs-mini-menu__link {
    position: relative;
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #475569;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pt-repairs-mini-menu__link:hover {
    color: #111827;
}

.pt-repairs-mini-menu__link.is-active {
    color: #111827;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.pt-repairs-mini-menu__link.is-active::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 5px;
    height: 3px;
    border-radius: 999px;
    background: #3b82f6;
}

.pt-repairs-mini-menu__sep {
    display: none;
}

.pt-sendin-inline-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 176px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 12px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
}

.pt-sendin-inline-cta:hover {
    color: #ffffff;
    background: #2563eb;
}

@media (max-width: 640px) {
    .pt-repairs-header-row {
        gap: 10px;
    }

    .pt-repairs-header-row .pt-repairs-mini-menu {
        flex: 1 1 100%;
    }

    .pt-repairs-mini-menu__link {
        font-size: 15px;
        min-height: 42px;
        padding: 9px 10px;
    }

    .pt-sendin-inline-cta {
        width: 100%;
        min-width: 0;
    }
}

@media (min-width: 641px) {
    .pt-my-account-content {
        padding: 48px;
    }
}

@media (max-width: 640px) {
    .pt-my-account-content {
        padding: 16px;
        border-radius: 12px;
        min-height: auto;
    }
}

.pt-page-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .pt-page-title {
        font-size: 24px;
    }
}

.pt-page-subtitle {
    font-size: 17px;
    color: #64748b;
    margin: 0 0 40px 0;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .pt-page-subtitle {
        font-size: 15px;
        margin: 0 0 24px 0;
    }
}

/* Stats Grid */
.pt-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 641px) {
    .pt-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
        margin-bottom: 48px;
    }
}

@media (max-width: 640px) {
    .pt-stats-grid {
        margin-bottom: 24px;
    }
}

.pt-stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: all 0.2s ease;
}

@media (min-width: 641px) {
    .pt-stat-card {
        padding: 28px;
        gap: 20px;
    }
}

.pt-stat-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.pt-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .pt-stat-icon {
        width: 52px;
        height: 52px;
    }
}

.pt-stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pt-stat-label {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 10px 0;
    font-weight: 500;
    line-height: 1;
}

.pt-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1;
}

@media (max-width: 640px) {
    .pt-stat-value {
        font-size: 26px;
    }
}

.pt-stat-change {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1;
}

/* Info Section */
.pt-info-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

@media (min-width: 641px) {
    .pt-info-section {
        padding: 40px;
        margin-bottom: 40px;
    }
}

.pt-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 28px 0;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .pt-section-title {
        font-size: 18px;
        margin: 0 0 16px 0;
    }
}

.pt-info-grid {
    display: grid;
    gap: 0;
}

.pt-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 641px) {
    .pt-info-item {
        padding: 20px 0;
    }
}

.pt-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pt-info-item:first-child {
    padding-top: 0;
}

.pt-info-label {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
}

.pt-info-value {
    font-size: 16px;
    font-weight: 500;
    color: #0f172a;
}

/* Activity Section */
.pt-activity-section {
    background: white;
}

.pt-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.pt-activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: white;
}

@media (max-width: 640px) {
    .pt-activity-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        gap: 12px;
    }
}

.pt-activity-content {
    flex: 1;
}

.pt-activity-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.pt-activity-date {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1;
}

.pt-activity-amount {
    font-size: 18px;
    font-weight: 700;
}

.pt-activity-amount.positive {
    color: #10b981;
}

.pt-activity-amount.negative {
    color: #ef4444;
}

/* Login Prompt */
.pt-login-prompt {
    text-align: center;
    padding: 80px 20px;
}

.pt-login-prompt p {
    font-size: 17px;
    color: #64748b;
    margin-bottom: 24px;
}

.pt-login-prompt .button {
    display: inline-block;
    padding: 14px 40px;
    background: #031c44;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.pt-login-prompt .button:hover {
    background: #2d3142;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Purchases Page */
/* Purchases Page - Updated Card Design */
.pt-purchase-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pt-purchase-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 0;
}

.pt-purchase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pt-purchase-header {
    display: flex;
    gap: 20px;
    padding: 24px;
    align-items: flex-start;
}

.pt-purchase-image {
    width: 64px;
    height: 64px;
    background: #f5f5f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pt-purchase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.pt-purchase-image svg {
    width: 32px;
    height: 32px;
    color: #86868b;
}

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

.pt-purchase-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 6px 0;
}

.pt-purchase-meta {
    font-size: 13px;
    color: #86868b;
    margin: 0 0 12px 0;
}

.pt-purchase-details {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.pt-purchase-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pt-purchase-status.delivered {
    background: #dcfce7;
    color: #166534;
}

.pt-purchase-status.transit {
    background: #e0f2fe;
    color: #0369a1;
}

.pt-purchase-status.on-hold {
    background: #fef9c3;
    color: #854d0e;
}

.pt-purchase-price {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    white-space: nowrap;
}

.pt-purchase-actions {
    padding: 16px 24px;
    background: #fafafa;
    border-top: 1px solid #d2d2d7;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    box-sizing: border-box;
    min-width: 0;
}

.pt-purchase-actions .pt-btn {
    width: 100%;
}

.pt-btn-primary {
    background: #031c44;
    color: #fff;
}

.pt-btn-primary:hover {
    background: #000;
}

.pt-btn-secondary {
    background: #ffffff;
    border: 1px solid #d2d2d7;
    color: #031c44;
}

.pt-btn-secondary:hover {
    background: #f5f5f7;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .pt-purchase-header {
        flex-direction: column;
    }

    .pt-purchase-price {
        align-self: flex-start;
        font-size: 24px;
    }

    .pt-purchase-actions {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}

.pt-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.pt-empty-state svg {
    color: #cbd5e1;
    margin-bottom: 24px;
}

.pt-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.pt-empty-state p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .pt-my-account-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 24px auto;
    }

    .pt-my-account-sidebar {
        position: static;
    }

    .pt-my-account-content {
        padding: 32px;
    }

    .pt-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .pt-my-account-content {
        padding: 16px;
        border-radius: 12px;
    }

    .pt-page-title {
        font-size: 24px;
    }

    .pt-stats-grid {
        grid-template-columns: 1fr;
        margin-bottom: 24px;
    }

    .pt-stat-card {
        padding: 16px;
    }

    .pt-stat-icon {
        width: 52px;
        height: 52px;
    }

    .pt-stat-value {
        font-size: 24px;
    }

    .pt-info-section {
        padding: 16px;
        margin-bottom: 24px;
    }

    .pt-activity-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
        gap: 8px;
    }

    .pt-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Order Details Page */
/* Order Details Page */
.pt-order-details {
    padding: 0;
    max-width: 1000px;
}

.pt-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.pt-order-info-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.pt-order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

@media (max-width: 768px) {
    .pt-order-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .pt-order-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.pt-order-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pt-order-info-label {
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pt-order-info-value {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
}

.pt-order-total {
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 700;
}

.pt-order-items-section {
    margin-bottom: 32px;
}

.pt-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 20px 0;
}

.pt-order-items-list {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.pt-order-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: start;
    /* Changed from center to start */
}

.pt-order-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .pt-order-item {
        grid-template-columns: 64px 1fr;
        gap: 16px;
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .pt-order-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
        padding: 12px;
    }
}

.pt-order-item:last-child {
    border-bottom: none;
}

.pt-order-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #f5f5f7;
    margin: 0;
    /* potential fix for unwanted spacing */
    min-width: 80px;
    /* prevent shrinking */
}

.pt-order-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pt-order-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 4px 0;
}

.pt-order-item-meta {
    font-size: 13px;
    color: #86868b;
    margin: 0;
}

.pt-order-item-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 768px) {
    .pt-order-item-price {
        grid-column: 2;
        text-align: left;
        margin-top: 12px;
    }
}

@media (max-width: 640px) {
    .pt-order-item-price {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 8px;
    }
}

.pt-order-item-unit-price {
    font-size: 13px;
    color: #86868b;
}

.pt-order-item-total {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
}

.pt-order-notes-section {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
}

.pt-order-notes {
    font-size: 14px;
    color: #92400e;
    line-height: 1.6;
}

/* Order Summary Section */
.pt-order-summary-section {
    margin-bottom: 32px;
}

.pt-order-summary-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    max-width: 400px;
    margin-left: auto;
}

.pt-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pt-summary-row:last-child {
    border-bottom: none;
}

.pt-summary-label {
    font-size: 14px;
    font-weight: 500;
    color: #86868b;
}

.pt-summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}

.pt-summary-discount .pt-summary-value {
    color: #ef4444;
}

.pt-summary-total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pt-summary-total .pt-summary-label {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
}

.pt-summary-total .pt-summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
}

/* Payment Information Section */
.pt-payment-info-section {
    margin-bottom: 32px;
}

.pt-payment-info-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.pt-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pt-payment-row:last-child {
    border-bottom: none;
}

.pt-payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}

.pt-payment-method svg {
    color: #0079b1;
    /* Brand color */
}

.pt-payment-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.pt-payment-amount {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
}

.pt-payment-ref {
    font-size: 12px;
    color: #86868b;
}

/* Addresses */
.pt-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .pt-addresses-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .pt-addresses-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.pt-address-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    background: #f8fafc;
}

@media (max-width: 640px) {
    .pt-address-card {
        padding: 16px;
        border-radius: 12px;
    }
}

.pt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.pt-card-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin: 0 0 4px 0;
}

.pt-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.pt-card-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.pt-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 18px;
}

@media (max-width: 640px) {
    .pt-form-grid {
        grid-template-columns: 1fr;
        gap: 12px 16px;
    }
}

.pt-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pt-field-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

@media (max-width: 640px) {
    .pt-field-label {
        font-size: 13px;
    }
}

.pt-required {
    color: #dc2626;
    margin-left: 4px;
}

.pt-field input {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 640px) {
    .pt-field input {
        font-size: 16px;
        padding: 10px 12px;
        border-radius: 8px;
    }
}

.pt-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.pt-field-error input {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.pt-field-disabled {
    opacity: 0.6;
}

.pt-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}

.pt-checkbox input {
    width: 18px;
    height: 18px;
}

.pt-form-actions {
    display: flex;
    justify-content: flex-end;
}

.pt-alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

.pt-alert-success {
    background: #ecfdf3;
    border: 1px solid #86efac;
    color: #166534;
}

.pt-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Login Page */
.pt-login-page {
    max-width: 420px;
    margin: 60px auto;
    padding: 0 20px;
}

.pt-login-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.pt-login-header h1 {
    margin: 0 0 6px 0;
    font-size: 28px;
    color: #0f172a;
}

.pt-login-header p {
    margin: 0 0 20px 0;
    color: #64748b;
    font-size: 15px;
}

.pt-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pt-login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.pt-login-button {
    width: 100%;
    margin-top: 6px;
}

.pt-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.pt-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .pt-order-header {
        flex-direction: column;
        gap: 16px;
    }

    .pt-order-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pt-order-item {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }

    .pt-order-item-image {
        width: 80px;
        height: 80px;
    }

    .pt-order-item-price {
        grid-column: 2;
        text-align: left;
        margin-top: 12px;
    }

    .pt-payment-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pt-payment-details {
        align-items: flex-start;
    }
}

/* Ultra-small screens (Galaxy Fold) */
@media (max-width: 380px) {
    .pt-my-account-wrapper {
        margin: 12px auto;
        padding: 0 8px;
        gap: 12px;
    }

    .pt-my-account-content {
        padding: 12px;
        border-radius: 10px;
    }

    .pt-page-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .pt-page-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .pt-stats-grid {
        margin-bottom: 16px;
        gap: 12px;
    }

    .pt-stat-card {
        padding: 12px;
        gap: 12px;
    }

    .pt-stat-icon {
        width: 44px;
        height: 44px;
    }

    .pt-stat-label {
        font-size: 12px;
    }

    .pt-stat-value {
        font-size: 20px;
    }

    .pt-stat-change {
        font-size: 12px;
    }

    .pt-section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .pt-info-section {
        padding: 12px;
        margin-bottom: 16px;
    }

    .pt-info-item {
        padding: 12px 0;
    }

    .pt-info-label,
    .pt-info-value {
        font-size: 13px;
    }

    .pt-purchase-header {
        padding: 12px;
        gap: 12px;
    }

    .pt-purchase-image {
        width: 64px;
        height: 64px;
    }

    .pt-purchase-title {
        font-size: 14px;
    }

    .pt-purchase-meta,
    .pt-purchase-date {
        font-size: 12px;
    }

    .pt-purchase-price {
        font-size: 20px;
    }

    .pt-purchase-actions {
        display: grid;
        grid-template-columns: 1fr;
        padding: 8px 12px;
        gap: 6px;
    }

    .pt-btn {
        padding: 10px 12px;
        font-size: 12px;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pt-purchase-card {
        border-radius: 12px;
    }

    .pt-purchase-image {
        width: 48px;
        height: 48px;
    }

    .pt-purchase-price {
        font-size: 16px;
    }

    .pt-order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pt-order-header .pt-btn {
        width: 100%;
        text-align: center;
    }

    .pt-order-details {
        overflow-x: hidden;
    }

    .pt-order-info-card {
        padding: 12px;
        border-radius: 12px;
    }

    .pt-order-info-value {
        font-size: 14px;
    }

    .pt-order-total {
        font-size: 18px;
    }

    .pt-order-items-list {
        border-radius: 12px;
    }

    .pt-order-item {
        grid-template-columns: 48px 1fr;
        gap: 8px;
        padding: 10px;
    }

    .pt-order-item-image {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 8px;
    }

    .pt-order-item-title {
        font-size: 13px;
    }

    .pt-order-item-meta {
        font-size: 11px;
    }

    .pt-order-item-total {
        font-size: 15px;
    }

    .pt-order-item-price {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 4px;
    }

    .pt-order-summary-card {
        max-width: 100%;
        padding: 16px;
        border-radius: 12px;
    }

    .pt-summary-label {
        font-size: 12px;
    }

    .pt-summary-value {
        font-size: 14px;
    }

    .pt-summary-total .pt-summary-label {
        font-size: 15px;
    }

    .pt-summary-total .pt-summary-value {
        font-size: 18px;
    }

    .pt-payment-info-card {
        padding: 12px;
        border-radius: 12px;
    }

    .pt-payment-method {
        font-size: 13px;
        gap: 8px;
    }

    .pt-payment-amount {
        font-size: 15px;
    }

    .pt-section-title {
        font-size: 15px;
    }

    .pt-page-title {
        font-size: 18px;
    }

    .pt-activity-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .pt-activity-title {
        font-size: 14px;
    }

    .pt-activity-date,
    .pt-activity-amount {
        font-size: 12px;
    }

    .pt-order-info-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .pt-order-info-item {
        gap: 6px;
    }

    .pt-order-info-label {
        font-size: 11px;
    }

    .pt-order-info-value {
        font-size: 15px;
    }

    .pt-order-items-section {
        margin-bottom: 16px;
    }

    .pt-order-item {
        padding: 10px;
        gap: 10px;
        grid-template-columns: 60px 1fr;
    }

    .pt-order-item-image {
        width: 60px;
        height: 60px;
    }

    .pt-order-item-title {
        font-size: 14px;
    }

    .pt-order-item-meta {
        font-size: 12px;
    }

    .pt-form-grid {
        grid-template-columns: 1fr;
        gap: 10px 12px;
    }

    .pt-field-label {
        font-size: 12px;
    }

    .pt-field input {
        padding: 8px 10px;
        font-size: 14px;
    }

    .pt-checkbox {
        font-size: 12px;
    }

    .pt-addresses-grid {
        gap: 12px;
    }

    .pt-address-card {
        padding: 12px;
    }

    .pt-card-title {
        font-size: 16px;
    }

    .pt-card-desc {
        font-size: 12px;
    }

    .pt-my-account-sidebar {
        padding: 12px;
    }

    .pt-account-header {
        gap: 8px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .pt-account-icon {
        width: 36px;
        height: 36px;
    }

    .pt-account-title {
        font-size: 14px;
    }

    .pt-account-subtitle {
        font-size: 11px;
    }

    .pt-nav-item {
        gap: 8px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .pt-nav-item svg {
        width: 16px;
        height: 16px;
    }

    .pt-nav-spacer {
        margin: 12px 0;
    }
}
