/* Shared footer layout. Device classes preserve the selected PC/mobile view. */

#footer {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    padding: 0;
    border-top: 1px solid #d7dce2;
    background: #eee;
    color: #626a75;
    text-align: left;
    font-family: Arial, 'Malgun Gothic', sans-serif;
    font-size: 12px;
    line-height: 1.8;
}

#footer *, #footer *::before, #footer *::after {
    box-sizing: border-box;
}

#footer .footer-shell {
    width: 980px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

#footer .footer-policy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    min-height: 56px;
    padding: 14px 0;
    border-bottom: 1px solid #d9dde2;
}

#footer .footer-policy a {
    color: #555d68;
    font-size: 12px;
    line-height: 1.8;
    text-decoration: none;
}

#footer .footer-policy b {
    color: #343b45;
    font-weight: 700;
}

#footer .footer-policy a:hover {
    color: #111;
    text-decoration: underline;
}

#footer .footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: start;
    gap: 40px;
    padding: 24px 0 26px;
}

/* Subpages reveal the original footer once; the company trigger then disappears. */
#footer .footer-disclosure {
    display: block;
    min-width: 0;
    margin: 0;
    border: 0;
}

#footer .footer-disclosure-summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 0;
    color: #404854;
    font-size: 13px;
    line-height: 1.8;
    list-style: none;
    cursor: pointer;
}

#footer .footer-disclosure-summary::-webkit-details-marker {
    display: none;
}

#footer .footer-disclosure-summary::marker {
    content: '';
}

#footer .footer-disclosure-title {
    flex: 0 1 auto;
    min-width: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#footer .footer-disclosure:not([open]) > .footer-content {
    display: none;
}

#footer .footer-disclosure-summary::after {
    content: '';
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin: -4px 3px 0 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

#footer .footer-disclosure-summary:focus-visible {
    outline: 2px solid #ff3900;
    outline-offset: 3px;
}

#footer.footer--compact.footer--mobile .footer-policy {
    justify-content: flex-start;
}

#footer .footer-disclosure[open] > .footer-disclosure-summary {
    overflow: hidden;
    pointer-events: none;
    animation: footer-company-trigger-out 180ms ease forwards;
}

#footer .footer-disclosure[open] > .footer-content {
    animation: footer-company-content-in 260ms ease 80ms both;
}

@keyframes footer-company-trigger-out {
    from {
        max-height: 64px;
        opacity: 1;
    }
    to {
        min-height: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes footer-company-content-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #footer .footer-disclosure[open] > .footer-disclosure-summary {
        display: none;
        animation: none;
    }

    #footer .footer-disclosure[open] > .footer-content {
        animation: none;
    }
}

#footer .footer-company {
    min-width: 0;
}

#footer .footer-logo {
    display: block;
    width: 168px;
    max-width: 100%;
    height: auto;
    margin: 0 0 12px;
    padding: 0;
}

#footer .footer-company-name {
    display: inline-block;
    margin-bottom: 7px;
    color: #404854;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    text-decoration: none;
}

#footer .company_info {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 2px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer .company_info::after {
    display: none;
}

#footer .company_info li {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #69717c;
    font-size: 12px;
    line-height: 1.9;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

#footer .company_info .footer-company-line--full {
    flex-basis: 100%;
}

#footer .footer-info-label {
    margin-right: 4px;
    color: #767d86;
}

#footer .footer-copyright {
    margin: 14px 0 0;
    color: #858b93;
    font-size: 11px;
    line-height: 1.7;
}

#footer .footer-support {
    min-width: 0;
    padding-top: 1px;
}

#footer .footer-support-title {
    margin: 0 0 10px;
    color: #343b45;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

#footer .footer-support-phone {
    display: inline-block;
    color: #222;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

#footer .footer-support-hours {
    margin: 10px 0 0;
    color: #737b85;
    font-size: 12px;
    line-height: 1.8;
}

#footer .footer-support-hours span {
    display: block;
}

#footer .footer-inquiry-link,
#footer .footer-inquiry-link:hover,
#footer .footer-inquiry-link:focus,
#footer .footer-inquiry-link:active,
#footer .footer-inquiry-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #cfd4db;
    border-radius: 7px;
    background: #fff;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    vertical-align: middle;
}

#footer .footer-inquiry-link:hover {
    border-color: #8a939f;
}

#footer .footer-inquiry-icon {
    display: block;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#footer .main-social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 18px;
    border-radius: 0;
    background: transparent;
}

#footer .main-social-links .social-link-item {
    display: block;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 50%;
    font-size: 0;
    color: transparent;
}

#footer a:focus-visible {
    outline: 2px solid #ff3900;
    outline-offset: 3px;
}

#footer.footer--mobile .footer-shell {
    width: 100%;
    padding: 0 20px;
}

#footer.footer--mobile .footer-policy {
    justify-content: center;
    gap: 6px 18px;
    min-height: 54px;
    padding: 16px 0;
}

#footer.footer--mobile .footer-policy a {
    font-size: 12px;
}

#footer.footer--mobile .footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0 24px;
}

#footer.footer--mobile .footer-support {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px 12px;
    order: -1;
    width: 100%;
    padding: 0 0 20px;
    border-bottom: 1px solid #d9dde2;
}

#footer.footer--mobile .footer-support-title {
    margin: 0;
    font-size: 14px;
}

#footer.footer--mobile .footer-inquiry-link {
    width: 128px;
    min-height: 44px;
}

#footer.footer--mobile .footer-support-phone {
    font-size: 20px;
}

#footer.footer--mobile .footer-support-hours {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    gap: 0 10px;
    margin: 0;
}

#footer.footer--mobile .footer-company {
    width: 100%;
}

#footer.footer--mobile .footer-logo {
    width: 154px;
    margin-bottom: 12px;
}

#footer.footer--mobile .company_info {
    gap: 3px 14px;
}

#footer.footer--mobile .company_info li {
    font-size: 12px;
    line-height: 1.8;
}

#footer.footer--mobile .footer-copyright {
    margin-top: 12px;
}

@media (max-width: 359px) {
    #footer.footer--mobile .footer-shell {
        padding-right: 16px;
        padding-left: 16px;
    }

    #footer.footer--mobile .footer-policy {
        column-gap: 12px;
    }

    #footer.footer--mobile .footer-policy a {
        font-size: 11px;
    }

    #footer.footer--mobile .footer-support-phone {
        font-size: 18px;
    }
}

/* Keep the desktop support label and inquiry on one row. */

#footer.footer--pc .footer-support {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    column-gap: 12px;
}

#footer.footer--pc .footer-support-title {
    margin: 0;
}

#footer.footer--pc .footer-inquiry-link {
    width: 116px;
}

#footer.footer--pc .footer-support-hours,
#footer.footer--pc .main-social-links {
    grid-column: 1/-1;
}

#footer.footer--pc .footer-support-phone {
    grid-column: 1/-1;
    justify-self: start;
    margin-top: 10px;
}

/* Compact mobile footer clearance above fixed prompts and actions. */

#footer.footer--mobile .footer-content {
    padding-bottom: 12px;
}
