/* Submission buttons: Canva yellow action-button treatment.
   Keep this font alias separate so loading it does not change body typography. */
@font-face {
    font-family: 'TT Hoves Pro Buttons';
    src: url('../css/TT-Hoves-Pro-Regular.woff') format('woff');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'TT Hoves Pro Buttons';
    src: url('../css/TT%20Hoves%20Pro%20Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* Shared typography also covers secondary buttons and Web Forms link buttons.
   Keep this separate from the yellow treatment to preserve secondary backgrounds
   and compact link-action layouts. Text colors belong with each background;
   a shared color here would override white labels on dark upload buttons. */
body button,
body input[type='submit'],
body input[type='button'],
body input[type='reset'],
body [role='button'],
body .btn-primary,
body .btn-secondary,
body .button-text,
body .entry-action-link,
body .judging-page-header-link {
    font-family: 'TT Hoves Pro Buttons', Arial, sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
}

/* One treatment across submission, registration and judging.
   Page-specific widths and margins remain responsive. */
body .btn-primary,
body .btn-place-order,
body .btn-continue,
body .btn-close-invoice,
body .add-to-cart-btn,
body .gema-confirm-primary,
body .gema-confirm-cancel,
body.login-page .register-btn,
body.judging-body .judging-btn,
body.judging-body .judging-right-panel input[type='submit'],
body.judging-body .judging-right-panel input[type='button'],
body.judging-body .judging-right-panel button {
    font-family: 'TT Hoves Pro Buttons', Arial, sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: #404040 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    padding: 10px 24px !important;
    height: auto !important;
    min-height: 38px !important;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    background: #E8FC00 !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-align: center;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
    text-shadow: none;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer;
}

body.login-page .register-btn,
body .gema-confirm-cancel {
    background: #ECECEC !important;
}

/* Telerik's nested sprite spans otherwise cover the confirmation button. */
body .gema-confirm-primary .rwOuterSpan,
body .gema-confirm-primary .rwInnerSpan {
    background: none !important;
    color: inherit !important;
    font: inherit !important;
    padding: 0 !important;
    height: auto !important;
    line-height: inherit !important;
}

body .btn-primary:hover,
body .btn-place-order:hover,
body .btn-continue:hover,
body .btn-close-invoice:hover,
body .add-to-cart-btn:hover,
body .gema-confirm-primary:hover,
body .gema-confirm-cancel:hover,
body.judging-body .judging-btn:hover,
body.judging-body .judging-right-panel input[type='submit']:hover,
body.judging-body .judging-right-panel input[type='button']:hover,
body.judging-body .judging-right-panel button:hover {
    background-color: #E8FC00;
    opacity: 1;
}

body .btn-primary:focus-visible,
body .btn-place-order:focus-visible,
body .btn-continue:focus-visible,
body .btn-close-invoice:focus-visible,
body .add-to-cart-btn:focus-visible,
body .gema-confirm-primary:focus-visible,
body .gema-confirm-cancel:focus-visible,
body.judging-body .judging-btn:focus-visible,
body.judging-body .judging-right-panel input:focus-visible,
body.judging-body .judging-right-panel button:focus-visible {
    outline: 2px solid #404040;
    outline-offset: 3px;
}

body .btn-primary:disabled,
body .btn-place-order:disabled,
body .btn-continue:disabled,
body .btn-close-invoice:disabled,
body .add-to-cart-btn:disabled,
body .btn-primary.aspNetDisabled,
body.judging-body .judging-btn:disabled,
body.judging-body .judging-btn.aspNetDisabled,
body.judging-body .judging-right-panel input:disabled,
body.judging-body .judging-right-panel button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.gema-confirm-dialog {
    margin: auto;
    width: 560px;
    max-width: calc(100% - 32px);
    padding: 40px;
    border: 0;
    background: #fff;
    color: #404040;
    text-align: center;
    font-family: 'TT Hoves Pro Buttons', Arial, sans-serif;
}
.gema-confirm-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.gema-confirm-dialog:not([open]) { display: none; }
.gema-confirm-dialog h2 { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.gema-confirm-dialog p { font-size: 18px; margin-bottom: 28px; }
.gema-confirm-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.gema-confirm-actions button { flex: 1 1 160px; }
