/* ==========================================================================
   Nhóm nút liên hệ nhanh + hộp thoại QR WeChat / Nhận báo giá
   Dùng ở trang chi tiết sản phẩm (product/contact_actions*.tpl)
   ========================================================================== */

.pd-actions {
    margin: 18px 0 20px;
}

.pd-actions__title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--shop-color-main, #0d2b6b);
}

.pd-actions__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pd-action {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 14px;
    border: 0;
    border-radius: 8px;
    background: #0068ff;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}

.pd-action:hover,
.pd-action:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.pd-action__icon {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
}

.pd-action__icon img,
.pd-action__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.pd-action__text {
    flex: 1 1 auto;
}

.pd-action--zalo {
    background: #0068ff;
}

.pd-action--call {
    background: #e03127;
}

.pd-action--call .pd-action__icon {
    color: #e03127;
}

.pd-action--wechat {
    background: #07c160;
}

.pd-action--wechat .pd-action__icon {
    color: #07c160;
}

.pd-action--quote {
    background: var(--shop-color-main, #0d2b6b);
}

.pd-action--quote .pd-action__icon {
    color: var(--shop-color-main, #0d2b6b);
}

@media (max-width: 575px) {
    .pd-actions__list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Hộp thoại
   -------------------------------------------------------------------------- */

.pd-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pd-modal.is-open {
    display: flex;
}

.pd-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.pd-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}

.pd-modal__dialog--qr {
    max-width: 420px;
}

.pd-modal__head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #e03127;
    color: #fff;
}

.pd-modal__brand {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.pd-modal__close {
    padding: 0 4px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.pd-modal__body {
    flex: 1 1 auto;
    padding: 20px;
    overflow-y: auto;
}

.pd-modal__title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.pd-modal__product {
    margin: 0 0 16px;
    font-size: 14px;
    color: #555;
}

.pd-modal__qr {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 12px auto;
}

.pd-modal__note {
    margin: 0;
    font-size: 14px;
    color: #555;
    text-align: center;
}

.pd-modal__note--warn {
    padding: 14px;
    border-radius: 6px;
    background: #fff6e5;
    color: #8a5a00;
    text-align: left;
}

/* --------------------------------------------------------------------------
   Biểu mẫu nhận báo giá
   -------------------------------------------------------------------------- */

.pd-form__row {
    margin-bottom: 14px;
}

.pd-form__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.pd-form__label i {
    color: #e03127;
    font-style: normal;
}

.pd-form__input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    color: #111;
}

.pd-form__input:focus {
    border-color: var(--shop-color-main, #0d2b6b);
    outline: none;
}

.pd-form__input--area {
    height: auto;
    min-height: 70px;
    resize: vertical;
}

.pd-form__message {
    display: none;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.pd-form__message.is-success,
.pd-form__message.is-error {
    display: block;
}

.pd-form__message.is-success {
    background: #e6f6ea;
    color: #1c7a35;
}

.pd-form__message.is-error {
    background: #fdecea;
    color: #b3261e;
}

.pd-form__submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 6px;
    background: var(--shop-color-main, #0d2b6b);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.pd-form__submit:disabled {
    opacity: .6;
    cursor: default;
}

body.pd-modal-open {
    overflow: hidden;
}
