/* =========================================================
   Contact UI
   Header: Mail / Official LINE
   Dog detail: Mail / LINE / Telephone
   ========================================================= */

/* ---------- Header contact buttons ---------- */

#mail .header-contact-buttons {
    display: flex;
    width: 250px;
    gap: 5px;
    align-items: stretch;
}

#mail .header-contact-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    height: 34px;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
    transition: opacity .2s ease;
}

#mail .header-contact-buttons a:hover {
    opacity: .82;
}

#mail .header-contact-mail {
    flex: 1 1 46%;
    background: #fff0bd;
    color: #633500;
    border: 1px solid #e5bd61;
}

#mail .header-contact-line {
    flex: 1 1 54%;
    background: #06c755;
    color: #fff;
    border: 1px solid #05ad49;
}

#mail .contact-icon {
    font-size: 20px;
    line-height: 1;
}

#mail .line-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 18px;
    border-radius: 9px;
    background: #fff;
    color: #06c755;
    font-size: 8px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: -0.5px;
}

/* ---------- Dog detail contact area ---------- */

#detail_contact.detail-contact-new {
    margin: 15px 0 30px;
    padding: 0;
    border: 0;
}

.detail-contact-inner {
    padding: 18px;
    box-sizing: border-box;
    background: #fffaf0;
    border: 1px solid #e8c58d;
    border-radius: 6px;
}

.detail-contact-title {
    margin: 0 0 5px;
    color: #7b3e00;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.detail-contact-note {
    margin: 0 0 14px;
    color: #66513e;
    font-size: 13px;
    text-align: center;
}

.detail-contact-actions {
    display: flex;
    gap: 10px;
}

.detail-contact-actions a {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 58px;
    padding: 8px 10px;
    box-sizing: border-box;
    border-radius: 5px;
    text-decoration: none;
    transition: opacity .2s ease;
}

.detail-contact-actions a:hover {
    opacity: .84;
}

.detail-contact-actions strong,
.detail-contact-actions small {
    display: block;
}

.detail-contact-actions strong {
    font-size: 17px;
    line-height: 1.2;
}

.detail-contact-actions small {
    margin-top: 3px;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.2;
}

.detail-contact-mail {
    background: #f5a623;
    color: #fff;
}

.detail-contact-line {
    background: #06c755;
    color: #fff;
}

.detail-contact-icon {
    font-size: 31px;
    line-height: 1;
}

.detail-line-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 29px;
    border-radius: 15px;
    background: #fff;
    color: #06c755;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}

.detail-contact-line-note {
    margin: 10px 0 12px;
    color: #66513e;
    font-size: 12px;
    text-align: center;
}

.detail-contact-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    background: #6da800;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.detail-contact-phone {
    font-size: 22px;
}

/* ---------- Mobile ---------- */

@media screen and (max-width: 640px) {

    /* Keep the existing mobile header layout.
       Cancel the old 15px left offset only. */
    #mail {
        margin-left: 0;
    }

    #mail .header-contact-buttons {
        width: 250px;
        max-width: 100%;
        gap: 4px;
    }

    #mail .header-contact-buttons a {
        height: 34px;
        padding: 0 6px;
        font-size: 12px;
    }

    .detail-contact-inner {
        padding: 14px 10px;
    }

    .detail-contact-title {
        font-size: 18px;
        text-align: left;
    }

    .detail-contact-note,
    .detail-contact-line-note {
        text-align: left;
    }

    .detail-contact-actions {
        gap: 6px;
    }

    .detail-contact-actions a {
        min-height: 55px;
        padding: 7px 5px;
        gap: 5px;
    }

    .detail-contact-actions strong {
        font-size: 15px;
    }

    .detail-contact-actions small {
        font-size: 10px;
    }

    .detail-contact-icon {
        font-size: 26px;
    }

    .detail-line-icon {
        width: 36px;
        height: 25px;
        font-size: 9px;
    }

    .detail-contact-tel {
        font-size: 17px;
    }
}
