Contact information
.md-contact-widget {
--primary: #2563eb;
--primary-dark: #1d4ed8;
--accent: #10b981;
--bg-card: #ffffff;
--bg-subtle: #f8fafc;
--text-main: #0f172a;
--text-muted: #64748b;
--border: #e2e8f0;
--radius: 12px;
--shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
max-width: 800px;
margin: 20px auto;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: hidden;
color: var(--text-main);
}
.md-header {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
color: #ffffff;
padding: 32px 24px;
text-align: center;
}
.md-header h2 {
margin: 0 0 8px 0;
font-size: 24px;
font-weight: 700;
letter-spacing: -0.02em;
}
.md-header p {
margin: 0;
color: #94a3b8;
font-size: 14px;
}
.md-body {
padding: 24px;
}
.md-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.md-card {
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
background: var(--bg-subtle);
transition: transform 0.2s ease, box-shadow 0.2s ease;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.md-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow);
border-color: #cbd5e1;
}
.md-icon {
font-size: 24px;
margin-bottom: 8px;
}
.md-card h3 {
margin: 0 0 4px 0;
font-size: 16px;
font-weight: 600;
}
.md-card p {
margin: 0 0 16px 0;
font-size: 13px;
color: var(--text-muted);
line-height: 1.4;
}
.md-card-link {
font-size: 14px;
font-weight: 600;
color: var(--primary);
text-decoration: none;
word-break: break-word;
}
.md-card-link:hover {
color: var(--primary-dark);
text-decoration: underline;
}
/* Support Banner */
.md-support {
border-top: 1px solid var(--border);
padding-top: 20px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 16px;
}
.md-chat-status {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
font-weight: 500;
}
.md-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #cbd5e1;
}
.md-dot.online {
background: var(--accent);
box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.md-actions {
display: flex;
gap: 12px;
width: 100%;
}
@media (min-width: 640px) {
.md-actions {
width: auto;
}
}
.md-btn {
flex: 1;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 10px 16px;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
text-decoration: none;
transition: background 0.2s;
cursor: pointer;
border: none;
}
.md-btn-primary {
background: var(--primary);
color: #ffffff;
}
.md-btn-primary:hover {
background: var(--primary-dark);
}
.md-btn-secondary {
background: #f1f5f9;
color: var(--text-main);
border: 1px solid var(--border);
}
.md-btn-secondary:hover {
background: #e2e8f0;
}
/* Notice Bar */
.md-notice {
margin-top: 16px;
padding: 12px;
border-radius: 8px;
background: #f8fafc;
border: 1px solid var(--border);
color: var(--text-muted);
font-size: 12px;
line-height: 1.4;
text-align: center;
}
(function() {
function updateContactChatStatus() {
const now = new Date();
const utcHours = now.getUTCHours();
const sastHours = (utcHours + 2) % 24;
const dot = document.getElementById('md-contact-dot');
const text = document.getElementById('md-contact-status-text');
if (sastHours >= 9 && sastHours < 22) {
dot.classList.add('online');
text.innerHTML = '<strong>Live Chat Online</strong> (Typical response: < 5 mins)';
} else {
dot.classList.remove('online');
text.innerHTML = '<strong>Live Chat Offline</strong> (Leaves a ticket for 09:00 AM)';
}
}
updateContactChatStatus();
setInterval(updateContactChatStatus, 60000);
})();
if (typeof openMoreDataChat !== 'function') {
function openMoreDataChat() {
if (window.ShopifyChat && window.ShopifyChat.open) {
window.ShopifyChat.open();
} else if (window.$tawk && window.$tawk.toggle) {
window.$tawk.toggle();
} else {
window.location.href = 'mailto:info@buymoredata.co.za?subject=Support%20Inquiry%20-%20More%20Data';
}
}
}