/* Site-wide additions for the rebuilt layout (loaded after the theme CSS). */

/* Images carry width/height attributes to reserve space; keep them proportional. */
img[width][height] { height: auto; }

/* Logout is a POST form; make its <button> look like the theme's a.dtbtn link. */
.logout-form { display: inline; margin: 0; }
button.dtbtn { background: #0c5adb; border: 2px solid #0c5adb; border-radius: 5px; color: #fff; cursor: pointer; display: inline-block; font-family: inherit; font-size: 17px; font-weight: 600; line-height: inherit; padding: 10px 30px; transition: all .3s ease; }
button.dtbtn:hover, button.dtbtn:focus { background: transparent; color: #fff; }
@media (min-width: 992px) and (max-width: 1199px) { button.dtbtn { font-size: 15px; padding: 9px 25px; } }

/* ---------- PWA install prompt ---------- */
.install-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; background: #fff; padding: 15px; display: flex; align-items: center; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,.2); animation: slideUp .5s ease-in-out; z-index: 1000; }
.install-container[hidden] { display: none; }
.install-content { display: flex; align-items: center; width: 100%; }
.install-logo { width: 50px; height: 50px; border-radius: 10px; margin-right: 10px; border: 1px solid #0C5ADB; }
.install-text h3 { margin: 0; font-size: 18px; font-weight: bold; }
.install-text p { margin: 5px 0 0; font-size: 14px; color: #666; }
.install-btn { background: #007bff; color: #fff; padding: 8px 12px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: bold; margin-left: auto; }
.install-btn:hover { background: #0056b3; }
.close-btn { background: none; border: none; font-size: 20px; font-weight: bold; cursor: pointer; color: #888; margin-left: 10px; }
.close-btn:hover { color: #555; }
@keyframes slideUp { from { transform: translateX(-50%) translateY(50px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* ---------- Important-notice modal ---------- */
.notice-overlay { display: flex; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100000; align-items: center; justify-content: center; padding: 16px; }
.notice-overlay[hidden] { display: none; }
.notice-modal { background: #fff; border-radius: 12px; max-width: 700px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,.25); animation: noticeSlideIn .3s ease; }
.notice-header { background: royalblue; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.notice-title { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.notice-x { background: transparent; border: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.notice-body { padding: 10px 24px 20px; }
.notice-highlight { color: #c0392b; font-weight: 600; }
.notice-contact { display: flex; justify-content: center; gap: 20px; padding: 0 24px 16px; flex-wrap: wrap; }
.notice-contact a { display: inline-flex; align-items: center; gap: 6px; color: #222; text-decoration: none; font-size: 14px; font-weight: 600; }
.notice-contact a .fa { font-size: 18px; color: #c0392b; }
.notice-contact a.notice-wa, .notice-contact a.notice-wa .fa { color: #25d366; }
.notice-contact a.notice-wa .fa { font-size: 20px; }
.notice-footer { padding: 0 24px 20px; text-align: right; }
.notice-ok { background: royalblue; color: #fff; border: none; border-radius: 6px; padding: 10px 28px; font-size: 15px; cursor: pointer; font-weight: 600; }
@keyframes noticeSlideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .notice-modal, .install-container { animation: none; }
}

/* Cookie consent banner (every page) */
.pp-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 720px; margin: 0 auto; background: #fff; color: #1f2937; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 16px 18px; font-size: 14px; line-height: 1.5; }
.pp-cookie[hidden] { display: none; }
.pp-cookie p { margin: 0 0 12px; color: #1f2937; font-size: 14px; }
.pp-cookie a { color: #4169e1; text-decoration: underline; }
.pp-cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-cookie__btn { border: 2px solid #003157; border-radius: 8px; padding: 8px 16px; font-weight: 600; font-size: 14px; cursor: pointer; background: #003157; color: #fff; }
.pp-cookie__btn--ghost { background: #fff; color: #003157; }
.pp-cookie__btn:focus-visible { outline: 3px solid #4169e1; outline-offset: 2px; }
