/* Auto Cashback Loyalty - Public styles */
.acl-pub-wrap { --acl-bg: #f6f7fb; --acl-card: #fff; --acl-border: #e3e6ef; --acl-text: #1f2937; --acl-muted: #6b7280; --acl-primary: #2c5cff; --acl-primary-dark: #1f47cc; --acl-pos: #16a34a; --acl-neg: #dc2626; max-width: 980px; margin: 0 auto; color: var(--acl-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.acl-pub-wrap *, .acl-pub-card * { box-sizing: border-box; }

.acl-pub-card { background: var(--acl-card); border: 1px solid var(--acl-border); border-radius: 16px; padding: 22px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }

.acl-pub-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; padding: 26px; border-radius: 18px; background: linear-gradient(135deg, #2c5cff 0%, #6b89ff 60%, #b39dff 100%); color: #fff; margin-bottom: 16px; }
@media (max-width: 720px) { .acl-pub-hero { grid-template-columns: 1fr; } }
.acl-pub-hello small { display: block; opacity: .85; font-size: 13px; }
.acl-pub-hello h1 { margin: 4px 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.acl-pub-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); font-size: 12px; font-weight: 600; }
.acl-pub-balance-big { text-align: right; }
.acl-pub-balance-big small { display: block; opacity: .85; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.acl-pub-balance-big strong { display: block; font-size: 42px; font-weight: 700; letter-spacing: -.02em; line-height: 1; margin: 6px 0; }

.acl-pub-progress-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--acl-muted); margin-bottom: 8px; }
.acl-pub-bar { height: 10px; background: #eef0ff; border-radius: 999px; overflow: hidden; }
.acl-pub-bar > span { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }

.acl-pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .acl-pub-grid { grid-template-columns: 1fr; } }

.acl-pub-list { list-style: none; padding: 0; margin: 0; }
.acl-pub-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f3f9; }
.acl-pub-list li:last-child { border-bottom: 0; }
.acl-pub-list strong { display: block; font-size: 14px; }
.acl-pub-list small { color: var(--acl-muted); font-size: 12px; }
.acl-pub-amount { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-weight: 600; }
.acl-pub-amount .acl-pos { color: var(--acl-pos); }
.acl-pub-amount .acl-neg { color: var(--acl-neg); }

.acl-pub-shops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .acl-pub-shops { grid-template-columns: 1fr; } }
.acl-pub-shop { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--acl-border); border-radius: 12px; text-decoration: none; color: var(--acl-text); transition: all .15s; }
.acl-pub-shop:hover { border-color: var(--acl-primary); box-shadow: 0 4px 12px rgba(44,92,255,.08); transform: translateY(-1px); }
.acl-pub-shop-thumb { width: 64px; height: 64px; border-radius: 10px; background: #eef0ff center/cover no-repeat; flex-shrink: 0; }
.acl-pub-shop-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acl-pub-shop-body strong { font-size: 14px; }
.acl-pub-shop-body small { color: var(--acl-muted); font-size: 12px; }
.acl-pub-shop-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.acl-pub-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eef0ff; color: var(--acl-primary); font-weight: 600; }

.acl-pub-form label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 13px; }
.acl-pub-form label > span { font-weight: 500; }
.acl-pub-form input[type="text"], .acl-pub-form input[type="email"], .acl-pub-form input[type="date"] { padding: 11px 12px; border: 1px solid var(--acl-border); border-radius: 10px; font-size: 14px; }
.acl-pub-form input:focus { outline: none; border-color: var(--acl-primary); box-shadow: 0 0 0 3px rgba(44,92,255,.12); }
.acl-pub-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acl-pub-check { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 13px; }
.acl-pub-btn { background: var(--acl-primary); color: #fff; border: 0; padding: 12px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; width: 100%; transition: background .15s; }
.acl-pub-btn:hover { background: var(--acl-primary-dark); }

.acl-pub-alert { padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }
.acl-pub-alert-ok { background: #ecfdf5; color: #047857; }
.acl-pub-alert-err { background: #fef2f2; color: #b91c1c; }

.acl-pub-empty { text-align: center; padding: 40px 20px; }
.acl-pub-empty-text { color: var(--acl-muted); font-size: 14px; margin: 0; }

.acl-pub-balance { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: linear-gradient(135deg, #2c5cff, #6b89ff); color: #fff; font-weight: 700; font-size: 16px; }
.acl-pub-balance small { font-size: 12px; opacity: .85; font-weight: 400; }

/* Connectivity badge + toast */
.acl-pub-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f3f4f6; color: #4b5563; margin: 0 0 12px; }
.acl-pub-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.acl-pub-badge.is-online { background: #ecfdf5; color: #047857; }
.acl-pub-badge.is-online .dot { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.acl-pub-badge.is-offline { background: #fffbeb; color: #b45309; }
.acl-pub-badge.is-offline .dot { background: #f59e0b; }

.acl-pub-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); padding: 12px 18px; border-radius: 12px; background: #1f2937; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 12px 32px rgba(15, 23, 42, .25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 99999; max-width: 92vw; }
.acl-pub-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.acl-pub-toast.is-ok { background: #047857; }
.acl-pub-toast.is-warn { background: #b45309; }
.acl-pub-toast.is-err { background: #b91c1c; }

.acl-pub-btn.is-loading { opacity: .7; cursor: wait; }
.acl-pub-btn-ghost { background: transparent !important; color: var(--acl-primary) !important; border: 1px solid var(--acl-primary); }
.acl-pub-btn-ghost:hover { background: rgba(44, 92, 255, .08) !important; }

/* ==========================================================================
   Auth card (sign-in / join tabs on the portal)
   ========================================================================== */
.acl-auth-card { padding: 0; overflow: hidden; max-width: 480px; margin: 16px auto; }
.acl-auth-tabs { display: flex; border-bottom: 1px solid var(--acl-border); }
.acl-auth-tab { flex: 1; padding: 14px 16px; background: transparent; border: 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--acl-muted); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.acl-auth-tab:hover { color: var(--acl-primary); }
.acl-auth-tab.is-active { color: var(--acl-primary); border-bottom-color: var(--acl-primary); background: rgba(44, 92, 255, .04); }
.acl-auth-pane { display: none; padding: 20px 22px 22px; }
.acl-auth-pane.is-active { display: block; }
.acl-auth-intro { margin: 0 0 14px; font-size: 13px; color: var(--acl-muted); line-height: 1.5; }
.acl-auth-help { margin: 10px 0 0; font-size: 12px; text-align: center; color: var(--acl-muted); }
.acl-auth-help a { color: var(--acl-primary); text-decoration: none; }
.acl-auth-help a:hover { text-decoration: underline; }
.acl-signout { display: inline-block; margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .85); text-decoration: underline; }
.acl-signout:hover { color: #fff; }

/* ==========================================================================
   Shop directory grid (used by [acl_shop_directory])
   ========================================================================== */
.acl-shops-grid { display: grid; gap: 18px; margin: 16px 0; }
.acl-shops-cols-1 { grid-template-columns: 1fr; }
.acl-shops-cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.acl-shops-cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.acl-shops-cols-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 720px) {
	.acl-shops-cols-3 { grid-template-columns: repeat(3, 1fr); }
	.acl-shops-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.acl-shop-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--acl-border); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--acl-text); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
.acl-shop-card:hover { transform: translateY(-2px); border-color: var(--acl-primary); box-shadow: 0 12px 28px rgba(44, 92, 255, .12); }
.acl-shop-card-thumb { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #2c5cff, #6b89ff) center/cover no-repeat; }
.acl-shop-card-badge { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .95); color: var(--acl-primary); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }
.acl-shop-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.acl-shop-card-body h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; }
.acl-shop-card-meta { margin: 0; font-size: 13px; color: var(--acl-muted); display: flex; align-items: flex-start; gap: 6px; }
.acl-shop-card-excerpt { margin: 4px 0 0; font-size: 13px; color: var(--acl-text); line-height: 1.5; }
.acl-shop-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.acl-shop-card-cta { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--acl-primary); }
.acl-ic { display: inline-block; }

/* ==========================================================================
   Single-shop hero + body
   ========================================================================== */
.acl-shop-single { padding: 24px 0 40px; }
.acl-shop-back { display: inline-block; color: var(--acl-muted); text-decoration: none; font-size: 13px; margin-bottom: 12px; }
.acl-shop-back:hover { color: var(--acl-primary); }
.acl-shop-hero { background: linear-gradient(135deg, #2c5cff, #6b89ff); color: #fff; border-radius: 22px; padding: 36px; margin-bottom: 18px; box-shadow: 0 18px 40px rgba(44, 92, 255, .18); }
.acl-shop-hero-body small { display: block; opacity: .85; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.acl-shop-hero-body h1 { margin: 6px 0 14px; font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.acl-shop-hero-tags { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.acl-shop-hero-rate { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }

.acl-shop-grid { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 720px) { .acl-shop-grid { grid-template-columns: 1fr; } }

.acl-shop-info p { font-size: 14px; line-height: 1.5; margin: 8px 0; display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.acl-shop-info a { color: var(--acl-primary); text-decoration: none; }
.acl-shop-info a:hover { text-decoration: underline; }
.acl-shop-link { font-size: 13px; font-weight: 600; }
.acl-shop-desc { font-size: 14px; line-height: 1.6; margin: 14px 0; color: var(--acl-text); }
.acl-shop-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.acl-shop-actions .acl-pub-btn { width: auto; padding: 10px 18px; font-size: 14px; }

.acl-shop-list li { padding: 12px 0; border-bottom: 1px solid #f1f3f9; }
.acl-shop-list li:last-child { border-bottom: 0; }
.acl-shop-list strong { font-size: 14px; display: block; }
.acl-shop-list small { color: var(--acl-muted); font-size: 12px; }
