/* HACOM Scraper - Khối Khuyến mại & Quà tặng (frontend, không phụ thuộc Tailwind) */
.hacom-gifts-wrap { margin: 12px 0; }
.hacom-gift-card {
    margin-top: 5px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    font-size: 13px;
    color: #1d1d20;
    overflow: hidden;
}
.hacom-gift-header,
.hacom-gift-footer {
    background: #ec1c24;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
    padding: 2px 13px;
    line-height: 40px;
    font-size: 13px;
}
.hacom-gift-footer {
    padding: 10px;
    line-height: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hacom-gift-header i,
.hacom-gift-footer i { margin: 0 5px; }
.hacom-gift-details {
    background: #f4f4f4;
    border: 1px solid #fff;
    max-height: 400px;
    overflow-x: auto;
}
.hacom-gift-details + .hacom-gift-details { border-top: 1px solid #e5e5e5; }
.hacom-gift-summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 20px 9px 45px;
    color: #ec1c24;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.hacom-gift-summary::-webkit-details-marker { display: none; }
.hacom-gift-details[open] .hacom-gift-summary { background: #fff; }
.hacom-gift-summary:hover { background: #f4f4f4; }
.hacom-gift-badge {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ec1c24;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hacom-gift-title {
    margin: 0;
    color: #ed1b24;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}
.hacom-gift-caret { transition: transform .3s; }
.hacom-gift-details[open] .hacom-gift-caret { transform: rotate(180deg); }
.hacom-gift-body {
    background: #fff;
    padding: 8px 16px 12px 30px;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}
.hacom-gift-body p { margin: 6px 0; }
.hacom-gift-body a { color: #2271b1; text-decoration: underline; }

/* Backend metabox */
#hacom-gifts-metabox textarea {
    width: 100%;
    min-height: 220px;
    font-family: Consolas, Menlo, monospace;
    font-size: 12px;
    line-height: 1.5;
}
#hacom-gifts-metabox .hacom-gifts-preview {
    margin-top: 12px;
    padding: 10px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
}
