/*
 * New in the rebuilt shop (not on the old site): the cookie banner (KRP-051) and the online
 * withdrawal form (KRP-053). Colours and fonts are the storefront's own (all.css).
 */

/* The banner: at the bottom of the screen until the visitor chooses; the footer link opens it
   again (#cookie-settings), without JavaScript. */
.consent-banner {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;  /* under the cart side panel (1000): an open panel is the visitor's own step, and its buttons stay usable */
    background: #fff;
    color: #00243c;
    border-top: 2px solid #c8af84;
    box-shadow: 0 -4px 16px rgba(0, 36, 60, .15);
    max-height: 90vh;
    overflow-y: auto;
}
.consent-banner.is-open,
.consent-banner:target {
    display: block;
}
.consent-inner {
    max-width: 1128px;
    margin: 0 auto;
    padding: 16px;
}
.consent-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}
.consent-text {
    margin-bottom: 12px;
    font-size: 14px;
}
.consent-text a {
    color: #00243c;
    text-decoration: underline;
}
.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}
/* The three choices look alike: same size, colour and weight (EDPB Cookie Banner Taskforce, 2023). */
.consent-button {
    display: inline-block;
    box-sizing: border-box;  /* the <summary> is content-box by default, the <button>s are not */
    min-width: 180px;
    min-height: 40px;
    padding: 10px 16px;
    background-color: #c8af84;
    color: #00243c;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 20px;
}
.consent-button:hover,
.consent-button:focus-visible {
    background-color: #ad803c;
}
.consent-button:focus-visible {
    outline: 2px solid #00243c;
    outline-offset: 2px;
}
.consent-details {
    flex-basis: auto;
}
.consent-details > summary {
    list-style: none;
    cursor: pointer;
}
.consent-details > summary::-webkit-details-marker {
    display: none;
}
.consent-details[open] {
    flex-basis: 100%;
}
.consent-details[open] > summary {
    margin-bottom: 12px;
}
.consent-categories {
    margin-bottom: 12px;
}
.consent-categories li {
    margin-bottom: 8px;
    font-size: 14px;
}
.consent-categories span {
    display: block;
    margin-left: 22px;
}
.consent-categories strong {
    font-weight: 700;
}
@media only screen and (max-width: 767px) {
    .consent-button {
        width: 100%;
    }
    .consent-actions > .consent-button,
    .consent-details {
        flex-basis: 100%;
    }
}

/* The withdrawal form */
.withdrawal-container .contact-form-container {
    max-width: 640px;
    margin: 0 auto 64px;
}
.withdrawal-intro,
.withdrawal-container p {
    margin-bottom: 16px;
}
.withdrawal-intro a {
    color: #00243c;
    text-decoration: underline;
}
.withdrawal-form .form-info {
    margin-bottom: 16px;
}
.withdrawal-form label {
    display: block;
    margin-bottom: 4px;
}
.withdrawal-form input[type=text],
.withdrawal-form input[type=email] {
    width: 100%;
    min-height: 40px;
    padding: 8px;
    border: 1px solid #c8af84;
    font: inherit;
}
.withdrawal-form .has-error input {
    border: 2px solid #ff0000;
}
.withdrawal-form .red-star,
.withdrawal-form .help-block {
    color: #ff0000;
}
.withdrawal-help {
    display: block;
    font-size: 13px;
    margin-top: 4px;
}
.withdrawal-refund {
    margin: 8px 0 16px;
}
.withdrawal-refund legend {
    font-weight: 700;
    margin-bottom: 8px;
}
.withdrawal-form label.withdrawal-radio {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
/* all.css sizes every input of the contact form like a text field */
.withdrawal-form .withdrawal-radio input[type=radio] {
    flex: none;
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: #ad803c;
}
.withdrawal-alert {
    padding: 10px;
    border: 2px solid #ad803c;
    background: #fbf6ee;
}
.withdrawal-subtitle {
    font-weight: 700;
    margin: 24px 0 8px;
}
.withdrawal-content li {
    margin-bottom: 4px;
}
