/*
 * Shared multilingual UI safeguards.
 * Keep rules scoped to renewal pages and common UI patterns so page-specific
 * layouts can still override spacing and sizing where needed.
 */

.renewal-page header nav ul.depth02 > li,
.renewal-page header nav ul.depth02 li {
    height: auto !important;
    min-height: 24px;
    line-height: normal;
    overflow: visible;
}

.renewal-page header nav ul.depth02 > li a,
.renewal-page header nav ul.depth02 li a {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 24px;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
    overflow: visible;
    box-sizing: border-box;
}

.renewal-page .tabletab {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.renewal-page .tabletab li,
.renewal-page .tabletab .tb02,
.renewal-page .tabletab .tb03 {
    height: auto !important;
    min-height: 0;
    overflow: visible;
}

.renewal-page .tabletab a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 118px !important;
    height: auto !important;
    min-height: 42px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: center;
    overflow: visible;
    box-sizing: border-box;
}

.renewal-page .tabletab a span,
.renewal-page .tabletab a span b,
.renewal-page .tabletab a .fc2,
.renewal-page .tabletab a .fc3 {
    display: block;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: center;
}

.renewal-page table th {
    height: auto !important;
    min-height: 34px;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: center;
    vertical-align: middle;
}

.renewal-page button,
.renewal-page .btn,
.renewal-page .btn3,
.renewal-page input[type="button"],
.renewal-page input[type="submit"] {
    min-height: 34px;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: center;
    box-sizing: border-box;
}

.renewal-page .renewal-quick a,
.renewal-page .main057-quick a,
.renewal-page .main055-quick a,
.renewal-page .main053-quick a,
.renewal-page .main052-quick a,
.renewal-page .main051-quick a {
    text-align: center;
}

.renewal-page .renewal-quick a span,
.renewal-page .main057-quick a em,
.renewal-page .main055-quick a em,
.renewal-page .main053-quick a em,
.renewal-page .main052-quick a em,
.renewal-page .main051-quick a em {
    display: block;
    width: 100%;
    line-height: 1.25;
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 860px) {
    .renewal-page .tabletab a {
        min-width: 108px;
    }

    .renewal-page header nav ul.depth02,
    .renewal-page header nav #main > li .depth02 {
        padding-left: 1.5em !important;
        box-sizing: border-box;
    }

    .renewal-page header nav ul.depth02 > li a,
    .renewal-page header nav ul.depth02 li a {
        padding-left: .5em !important;
        padding-right: 1em !important;
    }
}
