/* ===== Style cho toàn trang (trước đây nằm ở Customizer > CSS bổ sung, giờ gộp vào đây) ===== */
body {
    background-color: #91e8e8 !important;
}

.entry-title,
.page-title,
h1.entry-title,
.wp-block-post-title {
    display: none !important;
}

.mss-wrapper {
    max-width: 760px;
    margin: 20px auto 0;
    font-size: 16px;
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mss-topbar {
    background: #fff;
    border: 7px solid #d8eef9;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 18px;
}

.mss-topbar-title {
    margin: 0 0 12px;
    font-size: 14px;
    color: #4a4458;
}

.mss-topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mss-pill {
    background: #2E9BD6;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    transition: opacity .15s ease;
}

.mss-pill:hover {
    opacity: .85;
}

.mss-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.mss-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8f5fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid #cfe9f6;
    overflow: hidden;
    flex-shrink: 0;
}

.mss-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mss-header h2 {
    margin: 0;
    font-size: 22px;
    color: #2c2433;
}

.mss-card {
    background: #fff;
    border: 1px solid #d8eef9;
    border-radius: 16px;
    padding: 22px;
}

.mss-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #3a3344;
    font-weight: 600;
    margin-bottom: 12px;
}

.mss-link-btn {
    background: #fff;
    border: 1px solid #9bd3ec;
    color: #2E9BD6;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
}

#mss-product-url {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #c8e6f5;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 16px;
}

#mss-product-url:focus {
    outline: none;
    border-color: #2E9BD6;
}

.mss-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.mss-btn {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity .15s ease, transform .05s ease;
}

.mss-btn:active {
    transform: scale(0.99);
}

.mss-btn-primary {
    background: #2E9BD6;
    color: #fff;
}

.mss-btn-outline {
    background: #fff;
    color: #2E9BD6;
    border: 1px solid #2E9BD6;
}

.mss-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.mss-status {
    margin: 14px 0 0;
    font-size: 13px;
    min-height: 18px;
}

.mss-status.is-success { color: #1f9d55; }
.mss-status.is-error   { color: #d9534f; }
.mss-status a          { color: #2E9BD6; word-break: break-all; }

@media (max-width: 540px) {
    .mss-btn { min-width: 100%; }
}

/* ===== Time slots ===== */
/* ===== Time slots: khung lớn bọc ngoài, có phần đầu + thân ===== */
.mss-timeslots-card {
    background: #fff;
    border: 1px solid #cfe9f6;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 16px;
}

.mss-timeslots-header {
    background: #eaf6fc;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #146a96;
    border-bottom: 1px solid #cfe9f6;
}

.mss-timeslots-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
}

.mss-slot {
    background: #fff;
    border: 1px solid #cfe9f6;
    border-radius: 12px;
    padding: 20px 8px;
    min-height: 78px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .1s ease;
}

.mss-slot:hover {
    border-color: #9bd3ec;
}

.mss-slot:active {
    transform: scale(0.97);
}

.mss-slot-time {
    font-size: 18px;
    font-weight: 700;
    color: #2c2433;
    line-height: 1.2;
}

.mss-slot-status {
    font-size: 11px;
    letter-spacing: .03em;
    color: #2E9BD6;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.4;
}

/* Hiệu ứng lõm sâu khi đang được chọn */
.mss-slot.is-selected {
    background: #d3edf9;
    border: 2px solid #1c7fb5;
    padding: 19px 7px;
    box-shadow: inset 0 4px 10px rgba(20,106,150,0.45);
}

.mss-slot.is-selected .mss-slot-time,
.mss-slot.is-selected .mss-slot-status {
    color: #0e4a68;
}

.mss-slot.is-live {
    border-color: #2E9BD6;
    box-shadow: 0 0 0 2px rgba(46,155,214,0.15);
}

.mss-slot.is-live .mss-slot-status {
    color: #1f9d55;
}

.mss-slot.is-ended {
    opacity: .5;
}

@media (max-width: 540px) {
    .mss-timeslots-body { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .mss-timeslots { grid-template-columns: 1fr; }
}

/* ===== Search & filter ===== */
.mss-search-card {
    margin-top: 16px;
}

#mss-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #c8e6f5;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 14px;
}

#mss-search-input:focus {
    outline: none;
    border-color: #2E9BD6;
}

.mss-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mss-filter-pill {
    background: #fff;
    border: 1px solid #9bd3ec;
    color: #2E9BD6;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mss-filter-pill.is-active {
    background: #2E9BD6;
    color: #fff;
    border-color: #2E9BD6;
}

.mss-filter-sort {
    margin-left: auto;
}

.mss-product-list {
    margin-top: 18px;
}

.mss-empty-state {
    text-align: center;
    color: #8a8a8a;
    font-size: 13px;
    padding: 24px 10px;
    margin: 0;
}

.mss-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mss-slot-time,
.mss-slot-status {
    display: block;
    width: 100%;
    text-align: center;
}

.mss-slot-time {
    margin-bottom: 4px;
    line-height: 1.2;
}

.mss-slot-status {
    line-height: 1.2;
}

/* ===== Product grid (datafeed thật) ===== */
.mss-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.mss-product-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #d8eef9;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .15s ease, transform .1s ease;
}

.mss-product-card:hover {
    box-shadow: 0 4px 14px rgba(46,155,214,0.18);
    transform: translateY(-2px);
}

.mss-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #eef7fb;
}

.mss-product-img-empty {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #eef7fb;
}

.mss-product-name {
    padding: 8px 10px 2px;
    font-size: 12px;
    color: #2c2433;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mss-product-price {
    padding: 0 10px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #d9534f;
}

@media (max-width: 540px) {
    .mss-product-grid { grid-template-columns: repeat(2, 1fr); }
}