.hasepost-tanken {
    --hp-surface: linear-gradient(180deg, #fffdf7 0%, #f2efe4 100%);
    --hp-ink: #172126;
    --hp-muted: #5d676b;
    --hp-line: rgba(23, 33, 38, 0.12);
    --hp-accent: #c11f26;
    --hp-accent-dark: #99171c;
    --hp-accent-soft: rgba(193, 31, 38, 0.12);
    --hp-good: #1e7b53;
    --hp-good-soft: rgba(30, 123, 83, 0.14);
    color: var(--hp-ink);
    background:
        radial-gradient(circle at top right, rgba(193, 31, 38, 0.16), transparent 28%),
        radial-gradient(circle at left center, rgba(30, 123, 83, 0.10), transparent 32%),
        var(--hp-surface);
    border: 1px solid var(--hp-line);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(23, 33, 38, 0.09);
    padding: 28px;
}

.hasepost-tanken__hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.hasepost-tanken__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    color: var(--hp-accent);
    margin: 0 0 10px;
    font-weight: 700;
}

.hasepost-tanken__hero h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
    line-height: 1.05;
}

.hasepost-tanken__meta {
    margin: 12px 0 0;
    color: var(--hp-muted);
}

.hasepost-tanken__refresh {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #d92a31 0%, var(--hp-accent) 100%);
    color: #fff;
    font-weight: 800;
    padding: 14px 18px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(193, 31, 38, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.hasepost-tanken__refresh:hover,
.hasepost-tanken__refresh:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(193, 31, 38, 0.30);
}

.hasepost-tanken__refresh[disabled] {
    cursor: wait;
    opacity: 0.82;
    transform: none;
}

.hasepost-tanken__summary {
    margin: 0 0 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--hp-line);
    color: var(--hp-ink);
}

.hasepost-tanken__summary--between {
    margin-top: 20px;
}

.hasepost-tanken__card {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--hp-line);
    border-radius: 22px;
    overflow: hidden;
}

.hasepost-tanken__card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--hp-line);
}

.hasepost-tanken__card-title h3 {
    margin: 0;
    font-size: 1.15rem;
}

.hasepost-tanken__card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hasepost-tanken__best {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(193, 31, 38, 0.15);
    color: var(--hp-accent);
    font-weight: 700;
}

.hasepost-tanken__toggle {
    appearance: none;
    border: 1px solid var(--hp-line);
    background: #fff;
    color: var(--hp-ink);
    border-radius: 999px;
    padding: 9px 12px;
    cursor: pointer;
    font-weight: 700;
}

.hasepost-tanken__table-clip {
    position: relative;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.hasepost-tanken__card.is-collapsed .hasepost-tanken__table-clip {
    max-height: 270px;
}

.hasepost-tanken__card.is-collapsed .hasepost-tanken__table-clip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 82px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 253, 247, 0) 0%, rgba(255, 253, 247, 0.94) 70%, rgba(255, 253, 247, 1) 100%);
}

.hasepost-tanken__card:not(.is-collapsed) .hasepost-tanken__table-clip {
    max-height: 2200px;
}

.hasepost-tanken__table-wrap {
    overflow-x: auto;
}

.hasepost-tanken__table-wrap--mobile {
    display: none;
}

.hasepost-tanken__table {
    width: 100%;
    border-collapse: collapse;
}

.hasepost-tanken__table th,
.hasepost-tanken__table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--hp-line);
    text-align: left;
    vertical-align: top;
}

.hasepost-tanken__table th {
    color: var(--hp-muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hasepost-tanken__table tbody tr.is-best-price {
    background: var(--hp-good-soft);
}

.hasepost-tanken__sub {
    display: block;
    color: var(--hp-muted);
    font-size: 0.92rem;
    margin-top: 4px;
}

.hasepost-tanken__price {
    font-weight: 700;
}

.hasepost-tanken__address-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(23, 33, 38, 0.18);
}

.hasepost-tanken__address-link:hover,
.hasepost-tanken__address-link:focus-visible {
    color: var(--hp-accent);
    border-bottom-color: currentColor;
}

.hasepost-tanken-empty {
    padding: 18px;
    border: 1px dashed rgba(23, 33, 38, 0.3);
    border-radius: 16px;
    background: #faf8f1;
}

.hasepost-tanken-fab {
    position: fixed;
    top: calc(50% + 90px);
    right: 0;
    transform: translateY(-50%);
    z-index: 2147483646;
    opacity: 0;
    animation: hasepostTankenFabFadeIn 320ms ease forwards;
}

.hasepost-tanken-fab,
.hasepost-tanken-fab * {
    box-sizing: border-box;
}

.hasepost-tanken-fab__link {
    width: 75px;
    height: 75px;
    min-width: 75px;
    min-height: 75px;
    max-width: 75px;
    max-height: 75px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    cursor: pointer;
    overflow: visible !important;
    padding: 0 !important;
}

.hasepost-tanken-fab__image {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

@media (max-width: 767px) {
    .hasepost-tanken {
        padding: 18px;
        border-radius: 22px;
    }

    .hasepost-tanken__hero,
    .hasepost-tanken__card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hasepost-tanken__card-actions {
        width: 100%;
        justify-content: space-between;
    }

    .hasepost-tanken__refresh {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hasepost-tanken__table-wrap--desktop {
        display: none;
    }

    .hasepost-tanken__table-wrap--mobile {
        display: block;
    }

    .hasepost-tanken__table th,
    .hasepost-tanken__table td {
        padding: 12px 10px;
        font-size: 0.95rem;
    }

    .hasepost-tanken__table--mobile {
        table-layout: fixed;
    }

    .hasepost-tanken__table--mobile th,
    .hasepost-tanken__table--mobile td,
    .hasepost-tanken__table--mobile strong,
    .hasepost-tanken__table--mobile .hasepost-tanken__sub,
    .hasepost-tanken__table--mobile .hasepost-tanken__address-link {
        font-family: inherit !important;
        letter-spacing: normal !important;
        text-transform: none !important;
        line-height: 1.28 !important;
    }

    .hasepost-tanken__table--mobile td {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    .hasepost-tanken__table--mobile strong,
    .hasepost-tanken__table--mobile .hasepost-tanken__address-link {
        display: block;
        font-size: 1em !important;
    }

    .hasepost-tanken__table--mobile .hasepost-tanken__sub {
        font-size: 0.92rem !important;
    }

    .hasepost-tanken__table--mobile th:nth-child(1),
    .hasepost-tanken__table--mobile td:nth-child(1) {
        width: 38%;
    }

    .hasepost-tanken__table--mobile th:nth-child(2),
    .hasepost-tanken__table--mobile td:nth-child(2) {
        width: 34%;
    }

    .hasepost-tanken__table--mobile th:nth-child(3),
    .hasepost-tanken__table--mobile td:nth-child(3) {
        width: 28%;
        text-align: right;
        white-space: nowrap;
    }

    .hasepost-tanken-fab {
        top: calc(50% + 90px);
    }

    .hasepost-tanken-fab__link {
        width: calc(75px * (var(--hasepost-tanken-fab-scale-mobile, 80) / 100));
        height: calc(75px * (var(--hasepost-tanken-fab-scale-mobile, 80) / 100));
        min-width: calc(75px * (var(--hasepost-tanken-fab-scale-mobile, 80) / 100));
        min-height: calc(75px * (var(--hasepost-tanken-fab-scale-mobile, 80) / 100));
        max-width: calc(75px * (var(--hasepost-tanken-fab-scale-mobile, 80) / 100));
        max-height: calc(75px * (var(--hasepost-tanken-fab-scale-mobile, 80) / 100));
    }

    .hasepost-tanken-fab.hide-mobile {
        display: none;
    }
}

@keyframes hasepostTankenFabFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .hasepost-tanken-fab.hide-desktop {
        display: none;
    }
}
