.tpcf-refresh .tpcf-account-main {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tpcf-refresh .tpcf-account-panel,
.tpcf-refresh .tpcf-design-card,
.tpcf-refresh .tpcf-account-shortcut {
    background: var(--tpcf-surface);
    border: 1px solid var(--tpcf-border);
    border-radius: var(--tpcf-radius);
}

.tpcf-refresh .tpcf-account-panel {
    padding: clamp(1rem, 2.6vw, 1.65rem);
}

.tpcf-refresh .tpcf-login { padding-block-end: 3.75rem; }

.tpcf-refresh .tpcf-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
    align-items: start;
    gap: clamp(1rem, 3vw, 1.75rem);
}

.tpcf-refresh .tpcf-login .tpcf-account-panel {
    min-width: 0;
    padding: clamp(1rem, 3vw, 1.8rem);
    box-shadow: var(--tpcf-shadow);
}

.tpcf-refresh .tpcf-login-panel-heading {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-block-end: 1rem;
}

.tpcf-refresh .tpcf-login-panel-heading h2 { margin: 0; }

.tpcf-refresh .tpcf-login-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: .6rem;
    background: var(--tpcf-wash);
    color: var(--tpcf-teal-dark);
}

.tpcf-refresh .tpcf-login-form { display: grid; gap: 1.05rem; margin: 0; }
.tpcf-refresh .tpcf-login-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.tpcf-refresh .tpcf-login-fieldset legend {
    width: 100%;
    margin: 0 0 .75rem;
    padding: 0 0 .4rem;
    border: 0;
    border-block-end: 1px solid var(--tpcf-border);
    color: var(--tpcf-ink);
    font-size: .96rem;
    font-weight: 700;
}

.tpcf-refresh .tpcf-login-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.tpcf-refresh .tpcf-login-wide { grid-column: 1 / -1; }
.tpcf-refresh .tpcf-login label .tpcf-muted { font-size: .82em; font-weight: 400; }
.tpcf-refresh .tpcf-login p#register-password-hint { font-size: .875rem; margin: 0 0 .65rem; }
.tpcf-refresh .tpcf-login .tpcf-notice--error a { color: inherit; }
.tpcf-refresh .tpcf-login .tpcf-notice--error ul { margin: .45rem 0 0; padding-inline-start: 1.25rem; }

.tpcf-refresh .tpcf-login-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem .9rem;
    font-size: .875rem;
    font-weight: 600;
}

.tpcf-refresh .tpcf-login p.tpcf-login-register-link { display: none; }
.tpcf-refresh .tpcf-login #register { scroll-margin-block-start: 1rem; }
.tpcf-refresh .tpcf-password-recovery .tpcf-account-panel { max-width: 36rem; }

@media (max-width: 740px) {
    .tpcf-refresh .tpcf-login-grid { grid-template-columns: minmax(0, 1fr); }
    .tpcf-refresh .tpcf-login p.tpcf-login-register-link { display: block; margin: 1rem 0 0; font-size: .875rem; }
}

@media (max-width: 520px) {
    .tpcf-refresh .tpcf-login-fields { grid-template-columns: minmax(0, 1fr); }
}

.tpcf-refresh .tpcf-account-dashboard,
.tpcf-refresh .tpcf-account-addresses,
.tpcf-refresh .tpcf-account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tpcf-refresh .tpcf-account-shortcut {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.15rem, 3vw, 2rem);
    color: var(--tpcf-ink);
    text-decoration: none;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.tpcf-refresh .tpcf-account-shortcut:hover {
    border-color: var(--tpcf-teal);
    box-shadow: var(--tpcf-shadow);
}

.tpcf-refresh .tpcf-account-shortcut-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    margin-bottom: .65rem;
}

.tpcf-refresh .tpcf-account-shortcut-heading h2 { margin: 0; }

.tpcf-refresh .tpcf-account-shortcut-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .5rem;
    background: var(--tpcf-wash);
    color: var(--tpcf-teal-dark);
    font-size: 1.25rem;
}

.tpcf-refresh .tpcf-account-shortcut h2,
.tpcf-refresh .tpcf-account-panel h2 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.tpcf-refresh .tpcf-account-shortcut p { color: var(--tpcf-muted); }

.tpcf-refresh .tpcf-account-shortcut-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    width: 100%;
}

.tpcf-refresh .tpcf-account-shortcut-details p { margin: 0; }
.tpcf-refresh .tpcf-account-arrow { flex: none; color: var(--tpcf-teal-dark); font-size: 1.35rem; line-height: 1; }

.tpcf-refresh .tpcf-design-search {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: .8rem;
    padding: clamp(.9rem, 2.2vw, 1.3rem);
    margin-bottom: 1rem;
    border: 1px solid var(--tpcf-border);
    border-radius: var(--tpcf-radius);
    background: var(--tpcf-surface);
}

.tpcf-refresh .tpcf-account-field { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.tpcf-refresh .tpcf-account-field label { font-size: .9rem; }
.tpcf-refresh .tpcf-account-field input,
.tpcf-refresh .tpcf-account-field select { width: 100%; }

.tpcf-refresh .tpcf-account-field [aria-invalid="true"] { border-color: var(--tpcf-danger); }
.tpcf-refresh .tpcf-account-field .tpcf-account-field-error { margin: 0; color: var(--tpcf-danger); font-size: .85rem; }
.tpcf-refresh .tpcf-account-count { color: var(--tpcf-muted); font-size: .86rem; }

.tpcf-refresh .tpcf-design-grid,
.tpcf-refresh .tpcf-account-order-list,
.tpcf-refresh .tpcf-order-line-list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
}

.tpcf-refresh .tpcf-design-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tpcf-refresh .tpcf-design-card {
    padding: .7rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tpcf-refresh .tpcf-design-preview {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    min-width: 0;
    padding: .85rem;
    border-radius: .45rem;
    background: #eff3f1;
    text-decoration: none;
}

.tpcf-refresh .tpcf-design-preview:hover { background: #e5eeea; }
.tpcf-refresh.tpcf-concept-feature .tpcf-design-card { padding: 0; }
.tpcf-refresh.tpcf-concept-feature .tpcf-design-preview { aspect-ratio: 1; border-radius: var(--tpcf-radius) var(--tpcf-radius) 0 0; background: #e7f1eb; }
.tpcf-refresh.tpcf-concept-feature .tpcf-design-preview:hover { background: #ddebe1; }
.tpcf-refresh.tpcf-concept-feature .tpcf-design-content { padding: 1rem .85rem; }
.tpcf-refresh .tpcf-design-preview img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.tpcf-refresh .tpcf-design-preview-empty { display: grid; gap: .45rem; text-align: center; color: var(--tpcf-muted); font-size: .82rem; }
.tpcf-refresh .tpcf-design-preview-empty .fa { font-size: 1.7rem; }
.tpcf-refresh .tpcf-design-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: .9rem .15rem .15rem; }
.tpcf-refresh .tpcf-design-content h2 { font-size: 1.16rem; margin-bottom: .26rem; line-height: 1.25; }
.tpcf-refresh .tpcf-design-content mark { background: #ffe69c; color: inherit; border-radius: .15em; }
.tpcf-refresh .tpcf-design-content time { display: block; padding-bottom: .8rem; color: var(--tpcf-muted); font-size: .83rem; }
.tpcf-refresh .tpcf-design-content .tpcf-account-tag { margin-bottom: .6rem; }
.tpcf-refresh .tpcf-design-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
    width: 100%;
    margin-top: auto;
}

.tpcf-refresh .tpcf-design-basket-action { grid-column: 1 / -1; }
.tpcf-refresh .tpcf-design-actions form { margin: 0; }
.tpcf-refresh .tpcf-design-actions .tpcf-button { width: 100%; padding-inline: .45rem; font-size: .82rem; }
.tpcf-refresh .tpcf-design-publish { margin-top: .65rem; min-height: 2rem; display: inline-flex; align-items: center; font-size: .84rem; }

.tpcf-refresh .tpcf-account-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
}

.tpcf-refresh .tpcf-account-actions form { margin: 0; }
.tpcf-refresh .tpcf-account-form .tpcf-account-actions { margin-top: 1.5rem; }
.tpcf-refresh .tpcf-account-form-grid .tpcf-account-field:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; }
.tpcf-refresh .tpcf-account-empty { padding: clamp(1.4rem, 4vw, 3rem); text-align: center; background: var(--tpcf-wash); border-radius: var(--tpcf-radius); }
.tpcf-refresh .tpcf-account-empty p { color: var(--tpcf-muted); }
.tpcf-refresh .tpcf-account-feedback { margin-bottom: 1rem; border: 1px solid #a9d3c3; border-radius: .5rem; padding: .75rem .95rem; color: #0a5048; background: #e7f4ed; }
.tpcf-refresh .tpcf-account-feedback.is-error { color: #801d29; background: #fff0f1; border-color: #e6aeb4; }
.tpcf-refresh .tpcf-account-tag { display: inline-block; border-radius: 100vmax; padding: .25rem .58rem; color: var(--tpcf-teal-dark); background: var(--tpcf-wash); font-size: .79rem; font-weight: 700; }
.tpcf-refresh .tpcf-address-toolbar { margin-bottom: 1rem; }
.tpcf-refresh .tpcf-address-card { display: flex; flex-direction: column; align-items: flex-start; }
.tpcf-refresh .tpcf-address-card--billing { border-color: var(--tpcf-danger); }
.tpcf-refresh .tpcf-saved-address-details {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    width: 100%;
}
.tpcf-refresh .tpcf-saved-address-details address { min-width: 0; margin: 0; }
.tpcf-refresh .tpcf-saved-address-details .tpcf-address-billing-tag { flex: none; white-space: nowrap; }
.tpcf-refresh .tpcf-address-billing-tag { background: #fff0f1; color: var(--tpcf-danger); }
.tpcf-refresh .tpcf-account-panel address { font-style: normal; color: var(--tpcf-muted); }
.tpcf-refresh .tpcf-address-card .tpcf-account-actions { margin-top: auto; padding-top: 1rem; }
.tpcf-refresh .tpcf-account-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; font-size: .9rem; font-weight: 600; }

.tpcf-refresh .tpcf-account-order-row { display: grid; gap: .8rem; }

.tpcf-refresh .tpcf-account-order-header,
.tpcf-refresh .tpcf-account-order-footer {
    display: flex;
    justify-content: space-between;
    gap: .65rem 1rem;
}

.tpcf-refresh .tpcf-account-order-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .25rem;
    max-width: 50%;
    text-align: end;
}

.tpcf-refresh .tpcf-account-order-footer {
    align-items: center;
    padding-block-start: .75rem;
    border-block-start: 1px solid var(--tpcf-border);
}

.tpcf-refresh .tpcf-account-order-delivery {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    color: var(--tpcf-muted);
    font-size: .82rem;
}

.tpcf-refresh .tpcf-account-order-delivery .fa { color: var(--tpcf-teal-dark); }
.tpcf-refresh .tpcf-account-order-footer .tpcf-account-actions { flex: none; margin-inline-start: auto; }
.tpcf-refresh .tpcf-account-order-row h2 { margin-bottom: .16rem; font-size: 1.23rem; }
.tpcf-refresh .tpcf-account-order-row time { color: var(--tpcf-muted); font-size: .86rem; }
.tpcf-refresh .tpcf-account-currency { font-variant-numeric: tabular-nums; }
.tpcf-refresh .tpcf-order-tools { margin-bottom: 1rem; justify-content: space-between; }
.tpcf-refresh .tpcf-order-status-panel,
.tpcf-refresh .tpcf-order-deliveries,
.tpcf-refresh .tpcf-order-tracking,
.tpcf-refresh .tpcf-order-addresses { margin-bottom: 1rem; }
.tpcf-refresh .tpcf-order-status-panel p:last-child { margin-bottom: 0; }
.tpcf-refresh .tpcf-order-progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; margin: 1rem 0; padding: 0; list-style: none; }
.tpcf-refresh .tpcf-order-progress li { display: grid; gap: .4rem; align-content: start; text-align: center; color: var(--tpcf-muted); font-size: .76rem; }
.tpcf-refresh .tpcf-order-progress span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; margin: auto; border: 1px solid var(--tpcf-border); border-radius: 50%; }
.tpcf-refresh .tpcf-order-progress .is-reached span { color: var(--tpcf-teal-dark); border-color: #a9d3c3; background: var(--tpcf-wash); }
.tpcf-refresh .tpcf-order-progress [aria-current] { color: var(--tpcf-teal-dark); font-weight: 700; }
.tpcf-refresh .tpcf-order-progress [aria-current] span { color: white; background: var(--tpcf-teal); border-color: var(--tpcf-teal); }
.tpcf-refresh .tpcf-order-addresses h2 { margin-bottom: .55rem; font-size: 1.16rem; }
.tpcf-refresh .tpcf-order-addresses address { margin: 0; }
.tpcf-refresh .tpcf-order-shipment-list { list-style: none; margin: 0; padding: 0; }
.tpcf-refresh .tpcf-order-shipment-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: .65rem 1rem; }
.tpcf-refresh .tpcf-order-shipment-list li + li { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--tpcf-border); }
.tpcf-refresh .tpcf-order-shipment-list h3 { margin: 0 0 .35rem; font-size: 1.06rem; }
.tpcf-refresh .tpcf-order-shipment-list dl { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; }
.tpcf-refresh .tpcf-order-shipment-list dt { color: var(--tpcf-muted); font-size: .8rem; }
.tpcf-refresh .tpcf-order-shipment-list dd { margin: 0; }
.tpcf-refresh .tpcf-order-tracking ul { padding-inline-start: 1.15rem; margin: 0; }
.tpcf-refresh .tpcf-order-tracking li { margin-top: .5rem; }
.tpcf-refresh .tpcf-order-tracking span { color: var(--tpcf-muted); margin-inline-end: .6rem; }
.tpcf-refresh .tpcf-order-line-list li { border-bottom: 1px solid var(--tpcf-border); padding-bottom: .8rem; }
.tpcf-refresh .tpcf-order-line-list h3 { font-size: 1.06rem; }
.tpcf-refresh .tpcf-order-line-list dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; margin: 0; }
.tpcf-refresh .tpcf-order-line-list dt { color: var(--tpcf-muted); font-size: .78rem; }
.tpcf-refresh .tpcf-order-line-list dd,
.tpcf-refresh .tpcf-order-totals dd { margin: 0; }
.tpcf-refresh .tpcf-order-totals { max-width: 19rem; margin: 1rem 0 0 auto; }
.tpcf-refresh .tpcf-order-totals div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .28rem; }
.tpcf-refresh .tpcf-order-totals div:last-child { padding-block-start: .5rem; font-weight: 700; }

@media (max-width: 979px) {
    .tpcf-refresh .tpcf-design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .tpcf-refresh .tpcf-design-grid,
    .tpcf-refresh .tpcf-account-dashboard,
    .tpcf-refresh .tpcf-account-addresses,
    .tpcf-refresh .tpcf-account-form-grid { grid-template-columns: 1fr; }
    .tpcf-refresh .tpcf-design-search { grid-template-columns: minmax(0, 1fr) auto; }
    .tpcf-refresh .tpcf-design-search .tpcf-account-field:first-of-type { grid-column: 1 / -1; }
    .tpcf-refresh .tpcf-account-order-footer { flex-direction: column; align-items: flex-start; }
    .tpcf-refresh .tpcf-account-order-footer .tpcf-account-actions { margin-inline-start: 0; }
    .tpcf-refresh .tpcf-order-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: .65rem; }
    .tpcf-refresh .tpcf-order-line-list dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .tpcf-refresh .tpcf-account-shortcut { transition: none; }
}
