/* Button closing the editor (product page, over the editor top bar): small circle, thin dark-blue outline,
   centred on the 54px menu row of the editor */
#closeFrameDesign.nbdesigner_pp_close {
    top: 17px;
    left: 12px;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 1.5px solid #0B5460;
    border-radius: 50%;
    box-shadow: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B5460' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
    color: transparent;
    font-size: 0;
    transition: background-color .2s;
}
#closeFrameDesign.nbdesigner_pp_close:hover {
    background-color: #E9F3F5;
}

/* "Prepara tu pedido" window (class-rnc-options-popup.php, NBDesigner >= 2.18): light blue-grey background,
   4 white cards with a light-blue top border, line icon, title 500, round dark-blue arrow */
.nbd-popup-wrap.rnc-options {
    background: rgba(229, 238, 240, .97);
    font-family: 'Quicksand', sans-serif;
}
.nbd-popup-wrap.rnc-options:not(.is-hidden) ~ #closeFrameDesign {
    display: none;
}
.nbd-popup-wrap.rnc-options .nbd__pop__content_wrapper,
.nbd-popup-wrap.rnc-options .nbd__pop__content_wrapper.nbd__pop_wide {
    max-width: 1040px;
    padding: 0 24px;
}
.nbd-popup-wrap.rnc-options .content__header {
    position: relative;
    bottom: auto;
    padding: 0 48px 32px;
    box-sizing: border-box;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    color: #5B6D72;
    text-align: center;
}
.nbd-popup-wrap.rnc-options .content__header b {
    font-weight: 500;
    color: #0B5460;
}
.nbd-popup-wrap.rnc-options .rnc-options-close {
    position: absolute;
    top: 2px;
    right: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    box-sizing: border-box;
    border: 1.5px solid #0B5460;
    border-radius: 50%;
    cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B5460' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.nbd-popup-wrap.rnc-options .rnc-options-close:hover {
    background-color: #E9F3F5;
}
.nbd-popup-wrap.rnc-options .content__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 0;
    font-size: 14px;
}
.nbd-popup-wrap.rnc-options .layout__item.rnc-card {
    display: block;
    width: auto;
    padding: 0;
}
.nbd-popup-wrap.rnc-options .rnc-card .rnc-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.nbd-popup-wrap.rnc-options .rnc-card .layout__item__inner {
    display: block;
    height: 100%;
    box-sizing: border-box;
    border-top: 3px solid #7DB8C6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(11, 84, 96, .08);
    text-align: left;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
}
.nbd-popup-wrap.rnc-options .rnc-card .layout__item__inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 84, 96, .14);
}
/* NBDesigner lays the card content out in a row (icon | text): stack it, icon on top */
.nbd-popup-wrap.rnc-options .rnc-card .item__layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    height: 100%;
    margin: 0;
    padding: 20px 18px 52px;
    box-sizing: border-box;
    overflow: visible;
}
.nbd-popup-wrap.rnc-options .rnc-card-icon {
    display: block;
    flex: none;
    width: auto;
    height: 44px;
    margin: 0 0 14px;
}
.nbd-popup-wrap.rnc-options .rnc-card-title,
.nbd-popup-wrap.rnc-options .rnc-card-text {
    flex: none;
    width: 100%;
}
.nbd-popup-wrap.rnc-options .rnc-card-icon img {
    display: block;
    width: auto;
    height: 44px;
    max-width: 56px;
}
.nbd-popup-wrap.rnc-options .rnc-card-title {
    margin: 0 0 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: #1D1D1B;
    text-transform: none;
}
.nbd-popup-wrap.rnc-options .rnc-card-text p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #4F6165;
}
.nbd-popup-wrap.rnc-options .rnc-card-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0B5460 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 7l5 5-5 5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.nbd-popup-wrap.rnc-options #open_m-custom-cart-wrap-link .h__link {
    position: static;
    display: block;
    width: 100%;
    height: 34px;
    margin: 8px 0 0;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid #C9D6DA;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    color: #1D1D1B;
}
.nbd-popup-wrap.rnc-options #open_m-custom-cart-wrap-link .h__link:focus {
    border-color: #7DB8C6;
    outline: none;
}
@media (max-width: 767px) {
    /* stacked cards can be taller than the screen: scroll instead of the centred absolute box */
    .nbd-popup-wrap.rnc-options {
        overflow-y: auto;
        padding: 24px 0;
    }
    .nbd-popup-wrap.rnc-options .nbd__pop__content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }
    .nbd-popup-wrap.rnc-options .content__header {
        padding: 0 40px 20px;
        font-size: 18px;
    }
    .nbd-popup-wrap.rnc-options .content__content {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* "Continuar sin archivo" tile (product page, NBDesigner < 2.18) */
#open_m-custom-cart-wrap-link .rnc-tile-image {
    background-color: #d75050bf;
}
#open_m-custom-cart-wrap-link .rnc-tile-image img {
    width: 50%;
    position: absolute;
    top: 42%;
    left: 30%;
}
#open_m-custom-cart-wrap-link ul {
    margin-bottom: 15px;
}
#open_m-custom-cart-wrap-link .h__link {
    width: 61%;
    bottom: 5px;
    position: absolute;
    left: 35%;
    border: 1px solid gray;
    padding: 6px;
}
@media (max-width: 767px) {
    .tile__text-wrap-inner .h__link {
        left: 25% !important;
        bottom: 16px !important;
    }
    #open_m-custom-cart-wrap-link .tile__text-wrap-inner {
        padding-bottom: 50px !important;
    }
}

/* Download link (cart / checkout) */
.custom-mm .link-ah {
    margin-right: 10px;
}
.custom-mm .toogle_ct {
    display: none;
}
.custom-mm .et_ca input {
    border: 1px solid;
    padding: 0 15px;
}
.custom-mm .ed_ct,
.custom-mm .rutno {
    cursor: pointer;
    color: var(--e-global-color-accent);
    background: black !important;
    padding: 3px !important;
    border-radius: 3px;
    margin-bottom: 10px;
    display: inline-block;
    width: 85px;
    text-align: center;
}
.custom-mm .rutno {
    margin-top: 10px;
}
