/*
 * Shared styles for the version4 public pages. Loaded before the tenant stylesheets
 * (/<tenant>/style/*.css) so tenants can override anything here.
 * Page-specific rules live in /css/pages/<page>.css.
 */

/* ---------------------------------------------------------------------------------------------
   Modal (js/site.js SSREG.modal) */

.ssreg-modal-open,
.ssreg-modal-open body {
    overflow: hidden;
}

.ssreg-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssreg-modal__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ssreg-modal__dialog {
    position: relative;
    width: 600px;
    height: 450px;
    max-width: 95vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.ssreg-modal__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 4px;
}

.ssreg-modal__close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 1;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font: bold 18px/22px Arial, sans-serif;
    cursor: pointer;
}

.ssreg-modal__close:hover,
.ssreg-modal__close:focus {
    background: #000;
}

/* ---------------------------------------------------------------------------------------------
   Shared components */

/* Red-bordered "your card will be charged" style notice (checkout, class participants). */
.notice-box {
    width: 80%;
    padding: 4px;
    border: 6px solid red;
}

.notice-box__body {
    padding: 4px;
    text-align: left;
}

/* Top/bottom bar of popup pages with the "close window" and print links. */
.popup-page {
    padding: 5px;
}

.popup-bar {
    padding-right: 5px;
    padding-bottom: 5px;
    text-align: right;
}

.popup-content {
    border: 6px solid #fff;
    text-align: left;
}

/* Links that act as buttons for actions (print, close) */
.action-link {
    cursor: pointer;
}

.icon-inline {
    vertical-align: middle;
}

.list-plain {
    list-style: none;
}
