/* CS Tools – Discount Manager: Sale Alert subscribe modal (storefront). */

.cssa-wrap {
    display: inline-block;
    margin: 0;
}

.cssa-open {
    cursor: pointer;
}

/* Recommended trigger: a subtle price-aware text link with a tag icon.
   Zero margin/padding and inherited font so it sits inline beside other text. */
.cssa-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    vertical-align: middle;
    font: inherit;
    font-weight: 600;
    color: #4e7310;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.cssa-trigger:hover {
    color: #7cad18;
}

.cssa-trigger-icon {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
}

.cssa-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.cssa-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    color: #111;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.cssa-card h3 {
    margin-top: 0;
}

/* Alert-type chooser inside the popup — three across */
.cssa-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0 4px;
    text-align: center;
}

.cssa-type-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    cursor: pointer;
}

.cssa-type-opt input {
    margin: 0;
}

.cssa-type-opt span {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.25;
}

.cssa-type-opt small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    color: #666;
}

.cssa-type-opt:has(input:checked) {
    border-color: #7cad18;
    background: #f5f8ef;
}

.cssa-type-opt.cssa-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cssa-email {
    width: 100%;
    max-width: 340px;
    margin: 12px auto;
    display: block;
    padding: 12px 14px;
    box-sizing: border-box;
}

.cssa-msg {
    margin-top: 12px;
    font-size: 14px;
    min-height: 18px;
}

.cssa-msg.success {
    color: #157347;
}

.cssa-msg.error {
    color: #b42318;
}

/* Storefront "my subscriptions" table badge */
.cssa-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: #eef4fb;
    color: #2271b1;
}
