﻿/* AMPHAN quick contact widget - self-contained, no global nav selectors */
.amphan-quick-contact {
    position: fixed;
    z-index: 500;
    right: 22px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: inherit
}

.amphan-quick-contact-items {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .2s ease,transform .2s ease,visibility .2s ease
}

.amphan-quick-contact.is-open .amphan-quick-contact-items {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0)
}

.amphan-qc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #171717 !important;
    max-width: calc(100vw - 20px)
}

.amphan-qc-label {
    padding: 9px 14px;
    background: #fff;
    color: #111;
    border-radius: 99px;
    box-shadow: 0 5px 20px #0003;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap
}

.amphan-qc-icon, .amphan-qc-toggle-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#ffe28c,#bc8108);
    color: #16100a;
    font-weight: 900;
    font-size: 26px;
    box-shadow: 0 6px 20px #0004;
    border: 1px solid #ffe5a1;
    flex: 0 0 auto
}

.amphan-qc-line {
    background: linear-gradient(135deg,#48da6b,#12a73b);
    color: white;
    font-size: 12px;
    border-color: #7be18c
}

.amphan-qc-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    color: inherit
}

.amphan-qc-toggle-icon {
    width: 62px;
    height: 62px;
    font-size: 30px;
    transition: transform .2s ease
}

.amphan-quick-contact.is-open .amphan-qc-toggle-icon {
    transform: rotate(-8deg)
}

.amphan-qc-toggle-caption {
    background: #111;
    color: #fff;
    border: 1px solid #a7883b;
    border-radius: 20px;
    padding: 4px 11px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 3px 15px #0003
}

.amphan-qc-item:hover .amphan-qc-icon, .amphan-qc-item:focus-visible .amphan-qc-icon, .amphan-qc-toggle:hover .amphan-qc-toggle-icon {
    filter: brightness(1.13);
    transform: translateY(-2px)
}

.amphan-qc-toggle:focus-visible, .amphan-qc-item:focus-visible {
    outline: 3px solid #e3b121;
    outline-offset: 3px;
    border-radius: 12px
}

@media(max-width:760px) {
    .amphan-quick-contact {
        right: 12px;
        bottom: calc(16px + env(safe-area-inset-bottom))
    }

    .amphan-qc-icon {
        width: 45px;
        height: 45px;
        font-size: 22px
    }

    .amphan-qc-line {
        font-size: 11px
    }

    .amphan-qc-toggle-icon {
        width: 54px;
        height: 54px
    }

    .amphan-qc-label {
        font-size: 12px;
        padding: 8px 11px
    }
}

@media(prefers-reduced-motion:reduce) {
    .amphan-quick-contact-items, .amphan-qc-toggle-icon {
        transition: none
    }
}
