@font-face {
    font-family: "Roboto Local";
    src: url("../fonts/roboto-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Local";
    src: url("../fonts/roboto-medium.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #121212;
    --brown: #351c15;
    --yellow: #ffb500;
    --blue: #005eb8;
    --teal: #007c89;
    --error: #b4200b;
    --text-soft: #5d5754;
    --border: #6a625e;
    --page: #fcfaf8;
    --card: #ffffff;
    --shadow: 0 2px 9px rgba(0, 0, 0, 0.16);
}

/* ── Page Transition Spinner ── */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: transparent;
}

@keyframes overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e5dfda;
    border-top-color: #351c15;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.page-transition-label {
    color: #5d5754;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--black);
    font-family: "Roboto Local", Arial, sans-serif;
    font-size: 16px;
    background: var(--page);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 112px;
    width: 100%;
    max-width: 100vw;
    padding: 0 32px 0 24px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.logo-link {
    display: block;
    width: 40px;
}

.logo-link img {
    display: block;
    width: 100%;
    height: auto;
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 110px;
    min-height: 43px;
    padding: 0 22px 1px;
    border: 0;
    border-radius: 999px;
    color: #000;
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
    background: var(--yellow);
    cursor: pointer;
}

.login-arrow,
.previous-link span {
    font-size: 28px;
    line-height: 0;
}

.profile-icon {
    display: none;
    width: 24px;
    height: 24px;
}

.page-shell {
    position: relative;
    overflow: hidden;
    padding: 56px 23px 84px;
}

.page-shape {
    position: absolute;
    inset: 0 0 auto 0;
    height: calc(100vh - 110px);
    min-height: 285px;
    max-height: 460px;
    overflow: hidden;
    background-color: var(--page);
    z-index: 0;
}

.page-shape::before {
    content: "";
    position: absolute;
    inset: -1px 0 auto 0;
    width: 100%;
    height: 460px;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' viewBox='0 0 1440 460' fill='none' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMin slice'%3E%3Crect width='1440' height='460' transform='matrix(1 0 0 -1 0 460)' fill='url(%23paint0_linear_903_6549)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.00012207 64H0V0H1440V63.7655C921.131 -17.8435 321.616 -4.83051 0.00012207 14.5613V64Z' fill='white'/%3E%3Cdefs%3E%3ClinearGradient id='paint0_linear_903_6549' x1='918' y1='704.54' x2='762.626' y2='148.946' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23DFDBD7' stop-opacity='0.56'/%3E%3Cstop offset='1' stop-color='%23F2F1EF' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

.page-heading,
.shipment-progress,
.shipment-form {
    position: relative;
    z-index: 1;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    max-width: 1018px;
    margin: 0 auto 18px;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(2.35rem, 4.2vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
}

.title-rule {
    display: block;
    width: 79px;
    height: 4px;
    margin: 20px 0 22px;
    background: var(--yellow);
}

.required-note {
    margin: 0;
    font-size: 1.25rem;
}

.previous-link {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 600;
    white-space: nowrap;
}

.shipment-progress {
    display: grid;
    grid-template-columns: repeat(var(--progress-steps, 5), 1fr);
    width: min(612px, calc(100% - 24px));
    margin: 18px auto 32px;
    padding: 0;
    list-style: none;
}

.shipment-progress::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 10px;
    height: 3px;
    background: #a7a29e;
    z-index: 0;
}

.shipment-progress li {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 22px auto;
    justify-items: center;
    align-items: start;
    gap: 8px;
    min-width: 0;
    font-size: 0.88rem;
    line-height: 1.25;
    text-align: center;
}

.progress-dot {
    position: relative;
    display: block;
    align-self: center;
    width: 13px;
    height: 13px;
    border: 2px solid #8d8985;
    border-radius: 50%;
    background: #fff;
}

.shipment-progress li.completed {
    font-weight: 600;
}

.shipment-progress li.completed .progress-dot {
    border-color: var(--teal);
    background: var(--teal);
}

.shipment-progress li.completed .progress-dot::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    width: 4px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.shipment-progress li.active {
    font-weight: 600;
}

.shipment-progress li.active .progress-dot {
    width: 21px;
    height: 21px;
    border: 4px solid var(--teal);
}

.mobile-progress {
    display: none;
    position: relative;
    z-index: 1;
    max-width: 1018px;
    margin: 18px auto 26px;
}

.mobile-progress p,
.mobile-progress strong {
    display: block;
    margin: 0;
    line-height: 1.35;
}

.mobile-progress p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.mobile-progress strong {
    margin-top: 2px;
    font-size: 1.08rem;
    font-weight: 600;
}

.shipment-form {
    max-width: 1018px;
    margin: 0 auto;
}

.form-card {
    margin-bottom: 28px;
    padding: 32px 32px 39px;
    border-radius: 4px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.form-card h2 {
    margin: 0 0 23px;
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.3;
}

.two-columns,
.three-columns {
    display: grid;
    gap: 29px;
    margin-top: 16px;
}

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

.three-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr) minmax(160px, 0.72fr);
}

.field {
    position: relative;
    display: block;
    min-width: 0;
}

.field input,
.field select {
    width: 100%;
    height: 56px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 12px;
    color: var(--black);
    background: #fff;
    outline: none;
}

.field input::placeholder {
    color: #6a625e;
    opacity: 1;
}

.field select {
    appearance: none;
    cursor: pointer;
}

.select-field::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 28px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #6b4a2d;
    border-bottom: 2px solid #6b4a2d;
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
}

.select-field span {
    position: absolute;
    left: 12px;
    top: 7px;
    z-index: 1;
    color: var(--text-soft);
    font-size: 0.75rem;
    pointer-events: none;
}

.select-field span + select {
    padding-top: 19px;
}

.compact-label select {
    color: #625c58;
}

.wide {
    width: 100%;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 14px 0 20px;
    line-height: 1.35;
}

.check-row span {
    min-width: 0;
}

.check-row input {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 3px;
    appearance: none;
    background: #fff;
    cursor: pointer;
}

.check-row input:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 8px;
    height: 14px;
    border-right: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    transform: rotate(45deg);
}

.residential {
    margin: 16px 0 0;
}

.required-field.has-error input,
.required-field.has-error select {
    border-color: var(--error);
    border-width: 2px;
    color: var(--error);
    font-weight: 600;
}

.required-field.has-error input::placeholder {
    color: var(--error);
}

.field-error {
    display: none;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 0;
    color: var(--error);
    font-size: 0.88rem;
    font-weight: 600;
}

.required-field.has-error .field-error {
    display: flex;
}

.field-error span {
    position: relative;
    flex: 0 0 17px;
    width: 17px;
    height: 15px;
    margin-top: 1px;
    color: transparent;
    font-size: 0;
}

.field-error span::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--error);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.field-error span::after {
    content: "!";
    position: absolute;
    left: 50%;
    top: 56%;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.street-field:not(.has-error) + .apartment-add,
.street-field.has-error + .apartment-add,
.street-field:not(.has-error) + .field-with-action,
.street-field.has-error + .field-with-action,
.street-field:not(.has-error) + .apartment-add + .field-with-action,
.street-field.has-error + .apartment-add + .field-with-action {
    margin-top: 16px;
}

.icon-button-pair {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    padding: 0;
    color: #005eb8;
    font: inherit;
    font-weight: 600;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.icon-button-pair:hover,
.icon-button-pair:focus-visible {
    text-decoration: underline;
}

.ups-icon-pluscircle {
    position: relative;
    display: inline-grid;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 2px solid #006edb;
    border-radius: 50%;
}

.ups-icon-pluscircle::before,
.ups-icon-pluscircle::after {
    content: "";
    position: absolute;
    background: #006edb;
}

.ups-icon-pluscircle::before {
    width: 8px;
    height: 2px;
}

.ups-icon-pluscircle::after {
    width: 2px;
    height: 8px;
}

.field-with-action {
    position: relative;
    display: block;
}

.apartment-extra .field input {
    padding-right: 48px;
}

.circle-action {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 4px;
    padding: 0;
    color: #006edb;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    background: transparent;
    cursor: pointer;
}

.circle-action:hover {
    background: #eef6ff;
}

.apartment-remove {
    position: absolute;
    right: 10px;
    top: 28px;
    transform: translateY(-50%);
}

.payment-shell {
    padding-bottom: 46px;
}

.login-shell {
    padding-bottom: 74px;
}

.payment-form,
.payment-actions,
.login-form {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.payment-card {
    padding-bottom: 34px;
}

.payment-decline-alert {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    margin: 2px 0 18px;
    border-radius: 7px;
    padding: 14px 14px 14px 12px;
    color: #3f3332;
    background: #fff4f4;
}

.payment-decline-alert[hidden] {
    display: none;
}

.payment-decline-alert span {
    display: grid;
    width: 13px;
    height: 13px;
    place-items: center;
    border: 1.5px solid var(--error);
    border-radius: 50%;
    color: var(--error);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.payment-decline-alert p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.32;
}

.payment-card h2,
.terms-card h2,
.login-card h2 {
    margin-bottom: 22px;
    font-size: 1.5rem;
    font-weight: 600;
}

.login-choice {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 28px;
}

.login-panel,
.signup-panel {
    min-width: 0;
}

.login-panel h3,
.signup-panel h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.login-panel p,
.signup-panel p {
    margin: 0 0 18px;
    color: #5f5753;
    line-height: 1.45;
}

.login-panel .field + .field {
    margin-top: 16px;
}

.inline-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--blue);
    font-weight: 600;
}

.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 2px solid var(--blue);
    border-radius: 999px;
    padding: 0 24px;
    color: var(--blue);
    font-weight: 600;
}

.inline-link:hover,
.inline-link:focus-visible,
.outline-button:hover,
.outline-button:focus-visible {
    text-decoration: underline;
}

.login-actions {
    margin-top: 0;
}

.auth-form {
    max-width: 560px;
}

.auth-card {
    padding: 34px 36px 36px;
}

.auth-card h2 {
    margin-bottom: 28px;
    font-size: 2rem;
    font-weight: 500;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field > span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-field input,
.auth-field select {
    height: 50px;
}

.auth-primary {
    width: 100%;
    margin: 7px 0 18px;
}

.auth-agreement {
    margin: 0 0 16px;
    color: #4f4945;
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-agreement a,
.auth-link-row a,
.auth-signup-row a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: #5f5753;
    font-size: 0.94rem;
    font-weight: 600;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d8d3ce;
}

.social-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.social-row button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #c9c3bd;
    border-radius: 50%;
    color: #121212;
    font-weight: 700;
    background: #fff;
    cursor: pointer;
}

.auth-signup-row {
    margin: 0;
    text-align: center;
    line-height: 1.45;
}

.signup-card {
    padding-top: 28px;
}

.signup-login-link {
    margin-bottom: 22px;
    text-align: left;
}

.signup-phone-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.82fr) minmax(0, 1.18fr);
    gap: 18px;
}

.signup-agreement {
    margin-top: 4px;
    margin-bottom: 26px;
}

.signup-social-title {
    margin-top: 22px;
}

.auth-standalone-page {
    min-height: 100vh;
    background: #fff;
}

.auth-standalone-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 40px 18px;
}

.standalone-login-form {
    width: min(332px, 100%);
    text-align: center;
}

.standalone-logo {
    display: block;
    width: 49px;
    margin: 0 auto 35px;
}

.standalone-login-form h1 {
    margin: 0 0 39px;
    font-size: 1.6rem;
    font-weight: 400;
}

.login-step[hidden] {
    display: none;
}

.login-password-step h1 {
    margin-bottom: 44px;
}

.login-email-review {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 20px 0 16px;
    color: #000;
    text-align: left;
    background: #fff;
}

.login-email-review span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-email-review button {
    border: 0;
    padding: 0;
    color: #5c45ff;
    font: inherit;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
}

.standalone-field {
    margin-bottom: 10px;
    text-align: left;
}

.standalone-field > span {
    position: absolute;
    left: 12px;
    top: -10px;
    z-index: 1;
    padding: 0 4px;
    color: #44546a;
    font-size: 0.86rem;
    background: #fff;
}

.standalone-field input {
    height: 51px;
}

.standalone-password-field {
    margin-bottom: 8px;
}

.standalone-password-field .password-field > span {
    position: absolute;
    left: 12px;
    top: -10px;
    z-index: 1;
    padding: 0 4px;
    color: #5c45ff;
    font-size: 0.86rem;
    background: #fff;
    pointer-events: none;
}

.standalone-password-field input {
    height: 56px;
    border-color: #5c45ff;
    padding-right: 52px;
}

.standalone-forgot {
    margin: 8px 0 32px;
}

.standalone-agreement {
    margin: 0 auto 27px;
    max-width: 318px;
    color: #000;
    font-size: 0.91rem;
    text-align: center;
}

.standalone-login-button {
    width: 100%;
    min-height: 54px;
    margin-bottom: 17px;
    font-size: 1rem;
}

.standalone-signup {
    margin-bottom: 77px;
    font-size: 0.92rem;
}

.password-signup {
    margin-bottom: 116px;
}

.standalone-social-title {
    margin: 0 0 22px;
    font-size: 0.91rem;
    text-transform: uppercase;
}

.standalone-social {
    gap: 11px;
    margin-bottom: 44px;
}

.social-row button.google {
    color: #4285f4;
}

.social-row button.facebook {
    color: #1f4f9c;
}

.social-row button.amazon {
    color: #111;
    text-decoration: underline;
    text-decoration-color: #ff9900;
}

.social-row button.apple {
    color: #000;
}

.social-row button.twitter {
    color: #000;
}

.standalone-legal {
    margin: 0;
    color: var(--blue);
    font-size: 0.9rem;
}

.standalone-legal a {
    color: var(--blue);
    text-decoration: underline;
}

.standalone-legal span {
    color: #121212;
}

.signup-page-shell {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 0;
    background: var(--page);
}

.signup-page-form {
    position: relative;
    z-index: 1;
    width: min(678px, 100%);
    margin: 0 auto;
    padding-bottom: 24px;
}

.signup-page-form h1 {
    margin: 0;
    font-size: 2.45rem;
    font-weight: 400;
    line-height: 1.15;
}

.signup-login-line {
    margin: 22px 0 27px;
}

.signup-login-line a {
    margin-left: 18px;
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
}

.signup-plain-field {
    margin-bottom: 16px;
}

.signup-plain-field input,
.signup-plain-field select {
    height: 56px;
}

.password-field-wrap {
    position: relative;
}

.password-field input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.eye-icon {
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235f5753' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='2' y1='2' x2='22' y2='22'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

.password-toggle[aria-pressed="true"] .eye-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235f5753' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.signup-phone-row.plain {
    display: grid;
    grid-template-columns: minmax(190px, 0.78fr) minmax(0, 1.22fr);
    gap: 30px;
}

.signup-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 121px;
    min-height: 47px;
    border: 0;
    border-radius: 999px;
    padding: 0 25px;
    color: #5f5753;
    font-weight: 600;
    background: #fff;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.signup-page-button span {
    font-size: 1.4rem;
    line-height: 0;
}

.signup-social-heading {
    margin: 15px 0 60px;
    font-size: 1.95rem;
    font-weight: 600;
}

.signup-page-social {
    justify-content: flex-start;
    gap: 34px;
    margin-bottom: 0;
}

.signup-page-social button {
    width: 38px;
    height: 38px;
}

.full-footer {
    padding: 28px 18px 34px;
}

.full-footer-inner {
    max-width: 1040px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(232, 226, 219, 0.48);
}

.footer-columns h2 {
    margin: 0 0 42px;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 600;
}

.footer-collapse-toggle {
    display: none;
}

.footer-columns ul,
.full-footer-legal ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-columns li {
    margin-bottom: 22px;
}

.footer-columns a,
.full-footer-legal a,
.full-footer-legal p {
    color: #e8e2db;
    font-size: 0.88rem;
}

.footer-columns a:hover,
.footer-columns a:focus-visible,
.full-footer-legal a:hover,
.full-footer-legal a:focus-visible {
    text-decoration: underline;
}

.full-footer-legal {
    padding-top: 18px;
}

.full-footer-legal ul {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 18px;
}

.full-footer-legal li {
    position: relative;
}

.full-footer-legal li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1px;
    right: -9px;
    width: 1px;
    height: 1.1em;
    background: rgba(232, 226, 219, 0.68);
}

.full-footer-legal p {
    margin: 24px 0 0;
}

.payment-method-toggle {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    margin: 0 0 32px;
    border: 1px solid #8b8580;
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
}

.payment-method-toggle.single-method {
    display: inline-grid;
    grid-template-columns: 1fr;
    width: auto;
    min-width: 0;
    border-color: var(--teal);
    border-radius: 999px;
    padding: 3px;
    background: #fff;
}

.payment-method-toggle legend {
    display: none;
}

.payment-method-toggle label {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    min-height: 50px;
    place-items: center;
    border-right: 1px solid #8b8580;
    color: var(--black);
    font-weight: 600;
    cursor: pointer;
}

.payment-method-toggle.single-method label {
    min-height: 45px;
    border-right: 0;
    border-radius: 999px;
    padding: 0 24px;
}

.payment-method-toggle label:last-child {
    border-right: 0;
}

.payment-method-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-toggle span {
    min-width: 0;
    white-space: nowrap;
}

.payment-method-toggle .is-selected {
    color: #fff;
    background: var(--teal);
}

.card-info h3 {
    margin: 0 0 19px;
    font-size: 1.35rem;
    font-weight: 600;
}

.card-type-field {
    margin-bottom: 18px;
}

.payment-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(130px, 0.95fr) minmax(100px, 0.75fr);
    gap: 18px;
}

.payment-field .payment-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.payment-field input {
    height: 49px;
}

.cardholder-field {
    grid-column: 1 / -1;
}

.cvv-field-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
}

.help-button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    margin-top: 33px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    padding: 0;
    color: var(--blue);
    font-weight: 600;
    background: #fff;
    cursor: pointer;
}

.cvv-help-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    margin-top: 6px;
    border: 1px solid #d8d3ce;
    border-radius: 3px;
    padding: 24px;
    background: #f5f3f0;
}

.cvv-info-icon {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    margin-top: 2px;
    border: 2px solid #000;
    border-radius: 50%;
    font-size: 0.72rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1;
}

.cvv-help-panel h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
}

.cvv-help-panel p {
    margin: 0;
    line-height: 1.5;
}

.cvv-help-close {
    width: 25px;
    height: 25px;
    border: 0;
    padding: 0;
    color: #000;
    font-size: 1.85rem;
    line-height: 0.8;
    background: transparent;
    cursor: pointer;
}

.billing-address {
    margin-top: 24px;
}

.disabled-check {
    width: 100%;
    margin-bottom: 9px;
    color: #6a625e;
}

.disabled-check input {
    background: #ece8e4;
    cursor: not-allowed;
}

.disabled-check input:checked::after {
    border-color: #aaa39e;
}

.billing-address p {
    margin: 0;
    color: #5f5753;
    font-size: 0.96rem;
}

.terms-card {
    padding-bottom: 31px;
}

.terms-check {
    position: relative;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
}

.terms-check input {
    margin-top: 1px;
}

.terms-check > span {
    flex: 1;
    line-height: 1.45;
}

.terms-check a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
}

.terms-check .field-error {
    position: static;
    flex: 0 0 calc(100% - 32px);
    margin: 8px 0 0 32px;
}

.payment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.back-button span {
    font-size: 1.6rem;
    line-height: 0;
}

.payment-actions .continue-button {
    min-width: 248px;
}

.packaging-card {
    margin-bottom: 22px;
}

.package-dimensions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 28px;
}

.continue-button {
    min-width: 134px;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 28px;
    color: #000;
    font-weight: 600;
    background: var(--yellow);
    cursor: pointer;
}

.continue-button span {
    margin-left: 8px;
    font-size: 1.5rem;
    line-height: 0;
    vertical-align: -1px;
}

.field input:focus,
.field select:focus,
.check-row input:focus-visible,
.continue-button:focus-visible,
.login-button:focus-visible,
.previous-link:focus-visible,
.circle-action:focus-visible {
    outline: 3px solid rgba(0, 94, 184, 0.22);
    outline-offset: 2px;
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 20px 23px 34px;
    color: #e8e2db;
    background: var(--brown);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px 28px;
    align-items: start;
    max-width: 1018px;
    margin: 0 auto;
}

.legal-footer {
    min-width: 0;
}

.legal-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    border: 0;
    padding: 0;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.symbol-chevron {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-right: 2px solid currentcolor;
    border-bottom: 2px solid currentcolor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.legal-toggle[aria-expanded="true"] .symbol-chevron {
    transform: rotate(225deg);
}

.legal-panel {
    padding-top: 0;
}

.legal-footer.is-collapsed .legal-panel {
    display: none;
}

.legal-panel ul {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-panel li {
    position: relative;
}

.legal-panel li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1px;
    right: -9px;
    width: 1px;
    height: 1.1em;
    background: rgba(232, 226, 219, 0.68);
}

.legal-panel a {
    color: #e8e2db;
    font-size: 0.88rem;
}

.legal-panel a:hover,
.legal-panel a:focus-visible {
    text-decoration: underline;
}

.copyright {
    margin: 0;
    color: #e8e2db;
    font-size: 0.88rem;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .site-header {
        height: 112px;
        padding: 0 21px 0 17px;
    }

    .logo-link,
    .login-button {
        flex: 0 0 auto;
    }

    .login-button {
        width: 32px;
        min-width: 32px;
        min-height: 32px;
        padding: 0;
        border-radius: 50%;
        gap: 0;
    }

    .login-label,
    .login-arrow {
        display: none;
    }

    .profile-icon {
        display: block;
        width: 20px;
        height: 20px;
    }

    .page-shell {
        padding: 53px 0 72px;
    }

    .page-heading {
        display: block;
        margin: 0 0 28px;
        padding: 0 0 0 2px;
    }

    .page-heading h1 {
        font-size: 1.88rem;
        line-height: 1.15;
    }

    .title-rule {
        width: 79px;
        height: 4px;
        margin: 20px 0 22px;
    }

    .required-note {
        font-size: 1rem;
        line-height: 1.4;
    }

    .previous-link {
        display: none;
    }

    .shipment-progress {
        display: grid;
        width: min(292px, calc(100% - 82px));
        margin: 0 auto 17px;
    }

    .shipment-progress li {
        grid-template-rows: 22px;
        gap: 0;
    }

    .shipment-progress li > span:not(.progress-dot) {
        display: none;
    }

    .shipment-progress::before {
        top: 10px;
        height: 3px;
    }

    .mobile-progress {
        display: block;
        width: min(292px, calc(100% - 48px));
        margin: 0 auto 26px;
        text-align: center;
    }

    .mobile-progress p {
        color: #4a4542;
        font-size: 1rem;
    }

    .mobile-progress strong {
        position: relative;
        width: 100%;
        margin-top: 13px;
        padding-right: 24px;
        color: #000;
        font-size: 1.18rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .mobile-progress-chevron {
        position: absolute;
        top: 50%;
        right: 0;
        width: 12px;
        height: 12px;
        border-right: 3px solid currentcolor;
        border-bottom: 3px solid currentcolor;
        transform: translateY(-50%) rotate(-45deg);
    }

    .form-card {
        padding: 24px 16px 28px;
    }

    .two-columns,
    .three-columns,
    .payment-grid,
    .field-with-action,
    .package-dimensions {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .circle-action {
        justify-self: end;
    }

    .payment-method-toggle {
        margin-bottom: 24px;
    }

    .cardholder-field {
        grid-column: auto;
    }

    .cvv-field-wrap {
        grid-template-columns: 1fr auto;
    }

    .payment-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
    }

    .payment-actions .continue-button {
        min-width: 0;
        flex: 1 1 auto;
        padding-inline: 18px;
    }

    .login-choice {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .auth-card {
        padding: 26px 16px 30px;
    }

    .signup-phone-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .signup-phone-row .select-field {
        margin-bottom: 14px;
    }

    .auth-standalone-shell {
        align-items: start;
        padding-top: 120px;
    }

    .standalone-signup {
        margin-bottom: 48px;
    }

    .signup-page-shell {
        padding-inline: 16px;
    }

    .signup-page-form h1 {
        font-size: 2.2rem;
    }

    .signup-phone-row.plain {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .signup-social-heading {
        margin-bottom: 28px;
        font-size: 1.55rem;
    }

    .signup-page-social {
        gap: 16px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .footer-columns section {
        border-bottom: 1px solid rgba(232, 226, 219, 0.42);
    }

    .footer-collapse-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 80px;
        border: 0;
        padding: 0 18px 0 0;
        color: #fff;
        font: inherit;
        font-size: 1.2rem;
        font-weight: 600;
        text-align: left;
        background: transparent;
        cursor: pointer;
    }

    .footer-collapse-toggle .symbol-chevron {
        width: 10px;
        height: 10px;
        border-width: 2px;
        transform: rotate(45deg);
    }

    .footer-collapse-toggle[aria-expanded="true"] .symbol-chevron {
        transform: rotate(225deg);
    }

    .footer-columns h2 {
        display: none;
    }

    .footer-columns ul,
    .full-footer-legal ul {
        display: none;
        padding: 0 0 18px;
    }

    .footer-collapse.is-open ul {
        display: grid;
        gap: 14px;
    }

    .footer-collapse.is-open li {
        margin-bottom: 0;
    }

    .full-footer-legal li:not(:last-child)::after {
        display: none;
    }

    .full-footer {
        padding-top: 0;
    }

    .full-footer-legal {
        position: relative;
        padding: 0;
        border-bottom: 0;
    }

    .full-footer-legal .footer-collapse-toggle {
        border-bottom: 1px solid rgba(232, 226, 219, 0.42);
    }

    .full-footer-legal p {
        margin: 0;
        padding: 6px 0 64px;
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .footer-inner {
        display: block;
    }

    .legal-footer {
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid rgba(232, 226, 219, 0.48);
    }

    .legal-toggle {
        display: flex;
    }

    .legal-panel {
        padding-top: 12px;
    }

    .legal-panel ul {
        display: grid;
        justify-content: stretch;
        gap: 12px;
    }

    .legal-panel li:not(:last-child)::after {
        display: none;
    }
}

/* ── UPS Login Popup ── */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: transparent;
    animation: modal-fade-in 0.25s ease;
}

.login-modal-overlay.is-closing {
    animation: modal-fade-out 0.2s ease forwards;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modal-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.ups-popup {
    position: absolute;
    top: 86px;
    right: 16px;
    width: min(318px, calc(100vw - 20px));
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
    animation: modal-slide-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 20px 20px 22px;
    text-align: left;
}

.ups-popup.is-closing {
    animation: modal-slide-out 0.2s ease forwards;
}

@keyframes modal-slide-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modal-slide-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: #888;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: #f0f0f0;
    color: #000;
}

.popup-ctas {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
}

.popup-btn .text {
    line-height: 1;
}

.popup-btn-login {
    color: #000;
    background: #ffc400;
    border: 0;
}

.popup-btn-login:hover {
    background: #f2b800;
}

.popup-btn-signup {
    color: #0073e6;
    background: #fff;
    border: 2px solid #0073e6;
}

.popup-btn-signup:hover {
    background: #f4f9ff;
    border-color: #0064c8;
}

.popup-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentcolor;
    border-bottom: 2px solid currentcolor;
    transform: rotate(-45deg);
    transform-origin: center;
    margin-top: 1px;
}

.popup-content {
    text-align: left;
}

.popup-welcome-header {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 400;
}

.popup-main-heading {
    display: block;
    margin-bottom: 2px;
    color: #000;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
}

.popup-sub-heading {
    display: block;
    color: #000;
    font-size: 0.99rem;
    line-height: 1.35;
}

.popup-marketing {
    display: flex;
    flex-direction: column;
    gap: 17px;
    text-align: left;
}

.popup-marketing-item {
    display: flex;
    align-items: center;
    gap: 13px;
}

.popup-marketing-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-marketing-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.55);
}

.popup-marketing-text {
    font-size: 0.89rem;
    color: #4a4542;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .ups-popup {
        top: 84px;
        right: 10px;
        padding: 20px 20px 22px;
    }

    .popup-main-heading {
        font-size: 1.5rem;
    }

    .popup-marketing-icon {
        width: 18px;
        height: 18px;
    }

    .popup-marketing-icon img {
        width: 18px;
        height: 18px;
    }
}

/* ── Charge Banner ── */
.charge-banner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 18px;
    border-radius: 6px;
    padding: 16px 22px;
    background: linear-gradient(135deg, #fef7e0, #fef0c8);
    border: 1px solid #f5d98a;
}

.charge-banner-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--yellow);
    color: #000;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.charge-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.charge-banner-label {
    font-size: 0.85rem;
    color: #5d5754;
}

.charge-banner-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* ── Payment Processing Overlay ── */
.payment-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 48px 24px;
    text-align: center;
}

.payment-processing-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e5dfda;
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: payment-spin 0.7s linear infinite;
}

@keyframes payment-spin {
    to { transform: rotate(360deg); }
}

.payment-processing-label {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--teal);
}

.continue-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Complete Page ── */
.complete-page-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 40px 18px;
    background: var(--page);
}

.complete-card {
    width: min(480px, 100%);
    text-align: center;
    padding: 48px 32px;
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.complete-checkmark {
    margin-bottom: 24px;
}

.complete-checkmark svg {
    display: block;
    margin: 0 auto;
}

.complete-heading {
    margin: 0 0 16px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
}

.complete-message {
    margin: 0 0 24px;
    font-size: 1.05rem;
    color: #2d2d2d;
    line-height: 1.5;
}

.complete-redirect {
    margin: 0;
    font-size: 0.88rem;
    color: #7a726e;
}

.complete-redirect-link {
    border: 0;
    padding: 0;
    color: var(--blue);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
}

.complete-redirect-link:hover {
    text-decoration: none;
}

@media (max-width: 480px) {
    .complete-card {
        padding: 32px 20px;
    }

    .complete-heading {
        font-size: 1.5rem;
    }
}
