/* MOLECULAR & DIAGNOSTIC ACADEMY - MDA SHOP */

.mda-shop-page {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 35px auto 65px;
    color: #17283D;
    font-family: Arial, Helvetica, sans-serif;
}

.mda-shop-page h1 {
    color: #12365A;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
}

.mda-shop-page h2 {
    color: #12365A;
    font-size: 22px;
    font-weight: 750;
}

.mda-shop-page p {
    color: #43546A;
    line-height: 1.7;
}

.mda-shop-eyebrow {
    color: #087779;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.mda-shop-admin-form {
    padding: 30px;
    margin: 25px 0 35px;
    background: #FFFFFF;
    border: 1px solid #D5DFE9;
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(18,54,90,.07);
}

.mda-shop-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.mda-shop-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.mda-shop-field label {
    color: #12365A;
    font-weight: 700;
    font-size: 14px;
}

.mda-shop-field input,
.mda-shop-field select,
.mda-shop-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #C8D5E2;
    border-radius: 9px;
    background: #FFFFFF;
    color: #17283D;
    box-sizing: border-box;
    font-size: 14px;
}

.mda-shop-field textarea {
    min-height: 95px;
    resize: vertical;
}

.mda-shop-field input:focus,
.mda-shop-field select:focus,
.mda-shop-field textarea:focus {
    outline: none;
    border-color: #087779;
    box-shadow: 0 0 0 3px rgba(8,119,121,.13);
}

.mda-shop-form-actions {
    margin-top: 24px;
}

.mda-shop-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 12px 25px;
    border: 0;
    border-radius: 10px;
    background: #087779;
    color: #FFFFFF !important;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
}

.mda-shop-button:hover {
    background: #065F62;
}

.mda-shop-product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mda-shop-product-card {
    padding: 23px;
    background: #FFFFFF;
    border: 1px solid #D5DFE9;
    border-radius: 15px;
}

.mda-shop-product-card h3 {
    color: #12365A;
    font-size: 18px;
}

.mda-shop-product-price {
    color: #087779;
    font-size: 23px;
    font-weight: 800;
}

.mda-shop-actions {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mda-shop-cart-layout,
.mda-shop-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 25px;
    align-items: start;
}

.mda-shop-cart-item,
.mda-shop-cart-summary,
.mda-shop-checkout-form,
.mda-shop-checkout-summary {
    padding: 25px;
    background: #FFFFFF;
    border: 1px solid #D5DFE9;
    border-radius: 15px;
    margin-bottom: 18px;
}

.mda-shop-total {
    color: #087779 !important;
    font-size: 23px;
    font-weight: 800;
}

@media(max-width: 768px) {
    .mda-shop-form-grid,
    .mda-shop-product-list,
    .mda-shop-cart-layout,
    .mda-shop-checkout-layout {
        grid-template-columns: 1fr;
    }

    .mda-shop-admin-form {
        padding: 20px;
    }

    .mda-shop-page h1 {
        font-size: 27px;
    }
}

/* =========================================================
   MDA SHOP 2.0 - CATALOGO INSTITUCIONAL
   Adaptacion exclusiva para la pagina PHP de Moodle.
   Conserva los estilos originales de Boost.
   ========================================================= */

#page-local-mda_shop-catalog #page.drawers .main-inner,
#page-local-mda_shop-catalog .main-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#page-local-mda_shop-catalog #region-main,
#page-local-mda_shop-catalog #region-main-box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#page-local-mda_shop-catalog #page-header,
#page-local-mda_shop-catalog .secondary-navigation,
#page-local-mda_shop-catalog .tertiary-navigation,
#page-local-mda_shop-catalog #region-main-settings-menu {
    display: none !important;
}

#page-local-mda_shop-catalog .mda-catalog-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--mda-light, #F3F6FA);
}

#page-local-mda_shop-catalog .mda-inner-hero {
    width: 100%;
    box-sizing: border-box;
}

#page-local-mda_shop-catalog .mda-catalog {
    width: 100%;
    box-sizing: border-box;
}

#page-local-mda_shop-catalog .mda-catalog-container {
    width: 100%;
    box-sizing: border-box;
}

#page-local-mda_shop-catalog .mda-catalog-tools input {
    box-sizing: border-box;
    color: var(--mda-dark, #17283D);
    font-size: 15px;
}

#page-local-mda_shop-catalog .mda-catalog-tools input:focus {
    outline: none;
    border-color: var(--mda-teal, #087779);
    box-shadow: 0 0 0 3px rgba(8,119,121,.13);
}

#page-local-mda_shop-catalog .mda-course-grid {
    align-items: stretch;
}

#page-local-mda_shop-catalog .mda-course-card[hidden] {
    display: none !important;
}

#page-local-mda_shop-catalog .mda-course-footer {
    flex-wrap: wrap;
    gap: 12px;
}

#page-local-mda_shop-catalog .mda-course-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

#page-local-mda_shop-catalog .mda-course-actions form {
    margin: 0;
}

#page-local-mda_shop-catalog .mda-course-actions button {
    min-height: 38px;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    background: var(--mda-navy, #12365A);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

#page-local-mda_shop-catalog .mda-course-actions button:hover {
    background: var(--mda-teal, #087779);
}

#page-local-mda_shop-catalog .mda-shop-actions {
    justify-content: center;
    margin-top: 35px;
}

#page-local-mda_shop-catalog .mda-shop-admin-link {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
}

#page-local-mda_shop-catalog .mda-course-card {
    min-width: 0;
}

@media(max-width: 900px) {

    #page-local-mda_shop-catalog .mda-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media(max-width: 600px) {

    #page-local-mda_shop-catalog .mda-course-grid {
        grid-template-columns: 1fr;
    }

    #page-local-mda_shop-catalog .mda-inner-hero {
        padding: 50px 25px;
    }

    #page-local-mda_shop-catalog .mda-course-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    #page-local-mda_shop-catalog .mda-course-actions {
        width: 100%;
        justify-content: flex-start;
    }

}


/* =========================================================
   MDA SHOP 2.0 - CARRITO INSTITUCIONAL
   ========================================================= */

#page-local-mda_shop-cart #page.drawers .main-inner,
#page-local-mda_shop-cart .main-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#page-local-mda_shop-cart #region-main,
#page-local-mda_shop-cart #region-main-box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#page-local-mda_shop-cart #page-header,
#page-local-mda_shop-cart .secondary-navigation,
#page-local-mda_shop-cart .tertiary-navigation,
#page-local-mda_shop-cart #region-main-settings-menu {
    display: none !important;
}

#page-local-mda_shop-cart .mda-cart-page {
    width: 100%;
    box-sizing: border-box;
}

#page-local-mda_shop-cart .mda-cart-layout {
    width: 100%;
    box-sizing: border-box;
}

#page-local-mda_shop-cart .mda-cart-item {
    box-sizing: border-box;
}

#page-local-mda_shop-cart .mda-cart-info {
    min-width: 0;
}

#page-local-mda_shop-cart .mda-cart-remove {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

#page-local-mda_shop-cart .mda-cart-empty {
    max-width: 650px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid #d5dfea;
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
}

#page-local-mda_shop-cart .mda-cart-empty h2 {
    color: #12365A;
}

#page-local-mda_shop-cart .mda-cart-empty p {
    margin-bottom: 25px;
    color: #53647d;
}

#page-local-mda_shop-cart .mda-cart-empty .mda-checkout-button {
    max-width: 260px;
    margin: 0 auto;
}

#page-local-mda_shop-cart .mda-cart-summary {
    min-width: 0;
}

#page-local-mda_shop-cart .mda-summary-product span {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media(max-width:800px) {
    #page-local-mda_shop-cart .mda-cart-layout {
        grid-template-columns: 1fr;
    }
}

@media(max-width:550px) {
    #page-local-mda_shop-cart .mda-cart-page {
        padding: 35px 20px 60px;
    }

    #page-local-mda_shop-cart .mda-cart-item {
        grid-template-columns: 64px minmax(0,1fr);
        gap: 12px;
    }

    #page-local-mda_shop-cart .mda-cart-thumb {
        width: 64px;
        height: 64px;
    }

    #page-local-mda_shop-cart .mda-cart-price {
        grid-column: 2;
        text-align: left;
    }
}


/* =========================================================
   MDA SHOP 2.0 - COMPRA DIRECTA
   ========================================================= */

.mda-buy-now-page {
    min-height: 65vh;
    padding: 65px 20px;
    background: #f3f6fa;
}

.mda-buy-now-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 38px;
    border: 1px solid #d5dfea;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15,43,79,.07);
}

.mda-buy-now-card h1,
.mda-buy-now-card h2 {
    color: #12365A;
    font-family: Georgia, "Times New Roman", serif;
}

.mda-buy-now-card p {
    color: #53647d;
    line-height: 1.7;
}

.mda-buy-now-price {
    margin: 22px 0;
    color: #087779;
    font-size: 30px;
    font-weight: 800;
}

.mda-buy-now-submit {
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 10px;
    background: #12365A;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.mda-buy-now-submit:hover {
    background: #087779;
}

.mda-buy-now-back {
    display: block;
    margin-top: 20px;
    color: #087779;
    text-align: center;
}


/* =========================================================
   MDA SHOP 2.0 - CHECKOUT PROFESIONAL
   ========================================================= */

body[id*="mda_shop-checkout_v2"] .mda-shop-page {
    max-width: 1180px;
    padding: 24px 18px 60px;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-page > h1 {
    margin-bottom: 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-form,
body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-summary {
    min-width: 0;
    padding: 28px;
    margin-bottom: 22px;
    background: #ffffff;
    border: 1px solid #d5dfea;
    border-radius: 17px;
    box-shadow: 0 7px 24px rgba(15,43,79,.055);
}

body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-form h2,
body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-summary h2 {
    margin: 0 0 22px;
    color: #12365a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-form > label {
    display: block;
    margin: 16px 0 7px;
    color: #12365a;
    font-size: 13px;
    font-weight: 700;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-form input:not([type="hidden"]) {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    box-sizing: border-box;
    border: 1px solid #cbd7e4;
    border-radius: 9px;
    background: #ffffff;
    color: #17283d;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-form input:focus {
    outline: none;
    border-color: #087779;
    box-shadow: 0 0 0 3px rgba(8,119,121,.12);
}

body[id*="mda_shop-checkout_v2"] .mda-password-control {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    margin: 7px 0;
}

body[id*="mda_shop-checkout_v2"] .mda-password-control input {
    padding-right: 55px !important;
}

body[id*="mda_shop-checkout_v2"] .mda-password-toggle {
    position: absolute;
    right: 5px;
    width: 40px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #12365a;
    cursor: pointer;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-form small {
    display: block;
    margin: 7px 0 14px;
    color: #718198;
    font-size: 12px;
    line-height: 1.5;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-form button[type="submit"] {
    display: block;
    width: 100%;
    min-height: 49px;
    margin-top: 24px;
    padding: 13px 20px;
    border: 0;
    border-radius: 10px;
    background: #087779;
    color: #ffffff;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-form button[type="submit"]:hover {
    background: #065f62;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-summary h2 {
    margin-bottom: 18px;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-summary > p {
    padding: 13px 0;
    margin: 0;
    border-bottom: 1px solid #edf1f5;
    color: #53647d;
    font-size: 13px;
    line-height: 1.6;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-summary > strong {
    display: block;
    padding-top: 21px;
    color: #087779;
    font-size: 23px;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-summary {
    position: sticky;
    top: 90px;
}

body[id*="mda_shop-checkout_v2"] .mda-shop-page .alert {
    margin-bottom: 18px;
    border-radius: 11px;
}

/* =========================================================
   MDA SHOP 2.0 - CONFIRMACION DE COMPRA
   ========================================================= */

.mda-success-page {
    min-height: 70vh;
    padding: 35px 18px 65px;
    background: #f3f6fa;
}

.mda-success-container {
    max-width: 1100px;
    margin: 0 auto;
}

.mda-success-hero {
    padding: 36px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: linear-gradient(125deg,#102b4d,#174d78);
    color: #ffffff;
    box-shadow: 0 9px 26px rgba(15,43,79,.12);
}

.mda-success-eyebrow {
    display: inline-block;
    padding: 7px 12px;
    margin-bottom: 12px;
    border-radius: 20px;
    background: rgba(255,255,255,.13);
    color: #65d4cf;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
}

.mda-success-hero h1 {
    margin: 0 0 12px;
    color: #ffffff !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
}

.mda-success-reference {
    margin: 0;
    color: #dce8f3;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.mda-success-card {
    padding: 30px;
    border: 1px solid #d5dfea;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(15,43,79,.05);
}

.mda-success-card h2 {
    margin: 0 0 22px;
    color: #12365a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
}

.mda-success-card h3 {
    margin: 25px 0 14px;
    color: #12365a;
    font-size: 18px;
}

.mda-success-courses {
    display: grid;
    gap: 11px;
}

.mda-success-course {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 17px;
    border: 1px solid #e1e8ef;
    border-radius: 11px;
    background: #fbfcfe;
}

.mda-success-course-name {
    color: #263e5a;
    font-size: 14px;
    font-weight: 650;
}

.mda-success-course-price {
    flex: 0 0 auto;
    color: #12365a;
    font-size: 15px;
    white-space: nowrap;
}

.mda-success-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin-top: 16px;
    border-radius: 11px;
    background: #edf8f7;
    color: #12365a;
    font-weight: 750;
}

.mda-success-total strong {
    color: #087779;
    font-size: 25px;
}

.mda-success-card .alert {
    margin-top: 22px;
    border-radius: 11px;
    line-height: 1.6;
}

.mda-success-enrolments {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

.mda-success-enrolment {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px;
    border: 1px solid #cde8dc;
    border-radius: 11px;
    background: #f0faf5;
    color: #047857;
}

.mda-success-enrolment > span {
    font-size: 20px;
    font-weight: 800;
}

.mda-success-enrolment strong {
    color: #12365a;
    font-size: 13px;
}

.mda-success-enrolment small {
    color: #047857;
    font-size: 12px;
    font-weight: 750;
}

.mda-success-paypal-container {
    max-width: 430px;
    margin: 22px auto 12px;
}

.mda-success-paypal-status {
    color: #53647d;
    font-size: 13px;
    text-align: center;
}

.mda-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.mda-success-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 47px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none !important;
    transition: background .2s, transform .2s;
}

.mda-success-button:hover {
    transform: translateY(-2px);
}

.mda-success-primary {
    background: #087779;
    color: #ffffff !important;
}

.mda-success-primary:hover {
    background: #065f62;
    color: #ffffff !important;
}

.mda-success-secondary {
    border: 1px solid #d5dfea;
    background: #ffffff;
    color: #12365a !important;
}

.mda-success-secondary:hover {
    background: #f3f6fa;
}

@media(max-width:850px) {
    body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-layout {
        grid-template-columns: 1fr;
    }

    body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-summary {
        position: static;
    }
}

@media(max-width:600px) {
    body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-form,
    body[id*="mda_shop-checkout_v2"] .mda-shop-checkout-summary {
        padding: 20px;
    }

    .mda-success-hero {
        padding: 26px 21px;
    }

    .mda-success-hero h1 {
        font-size: 28px;
    }

    .mda-success-card {
        padding: 20px;
    }

    .mda-success-course {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .mda-success-enrolments {
        grid-template-columns: 1fr;
    }

    .mda-success-actions {
        flex-direction: column;
    }

    .mda-success-button {
        width: 100%;
        box-sizing: border-box;
    }
}


/* MDA_ADMIN_CAPACITATIONS_BUTTON */

.mda-shop-page .mda-shop-admin-link {
    display: flex;
    justify-content: center;
    margin: 28px 0 12px;
    text-align: center;
}

.mda-shop-page .mda-shop-admin-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 290px;
    max-width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    background: linear-gradient(135deg,#12365A,#1C4C70);
    box-shadow: 0 7px 20px rgba(18,54,90,.16);
    color: #FFFFFF !important;
    text-align: left;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease,
                background .2s ease;
}

.mda-shop-page .mda-shop-admin-button:hover,
.mda-shop-page .mda-shop-admin-button:focus {
    transform: translateY(-3px);
    background: linear-gradient(135deg,#087779,#12365A);
    box-shadow: 0 12px 26px rgba(18,54,90,.23);
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.mda-shop-page .mda-shop-admin-icon {
    display: flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #087779;
    color: #FFFFFF;
    font-size: 25px;
}

.mda-shop-page .mda-shop-admin-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.mda-shop-page .mda-shop-admin-text strong {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
}

.mda-shop-page .mda-shop-admin-text small {
    color: #DCE8F3;
    font-size: 11px;
}

.mda-shop-page .mda-shop-admin-arrow {
    color: #FFFFFF;
    font-size: 22px;
    transition: transform .2s ease;
}

.mda-shop-page .mda-shop-admin-button:hover
.mda-shop-admin-arrow {
    transform: translateX(4px);
}

@media(max-width:480px) {
    .mda-shop-page .mda-shop-admin-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

/* END_MDA_ADMIN_CAPACITATIONS_BUTTON */


/* MDA_ADMIN_BUTTON_FINAL */

body#page-local-mda_shop-catalog
.mda-shop-page .mda-shop-admin-link {
    display: flex !important;
    justify-content: center !important;
    width: 100%;
    margin: 30px auto 18px !important;
    text-align: center;
}

body#page-local-mda_shop-catalog
.mda-shop-page .mda-shop-admin-button {
    display: flex !important;
    width: 340px;
    max-width: 100%;
    min-height: 76px;
    box-sizing: border-box;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px;
    padding: 14px 19px !important;

    border: 1px solid #21496F !important;
    border-radius: 14px !important;

    background: linear-gradient(
        135deg,
        #12365A 0%,
        #21496F 100%
    ) !important;

    box-shadow: 0 7px 20px rgba(18,54,90,.16) !important;

    color: #FFFFFF !important;
    text-decoration: none !important;

    transition: all .22s ease;
}

body#page-local-mda_shop-catalog
.mda-shop-page .mda-shop-admin-button:hover {
    background: linear-gradient(
        135deg,
        #087779,
        #12365A
    ) !important;

    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(18,54,90,.25) !important;
    color: #FFFFFF !important;
}

body#page-local-mda_shop-catalog
.mda-shop-admin-icon {
    display: flex !important;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: #087779 !important;

    color: #FFFFFF !important;
    font-size: 26px;
}

body#page-local-mda_shop-catalog
.mda-shop-admin-text {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 5px;
    text-align: left;
}

body#page-local-mda_shop-catalog
.mda-shop-admin-text strong {
    display: block !important;
    margin: 0;
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.4;
}

body#page-local-mda_shop-catalog
.mda-shop-admin-text small {
    display: block !important;
    margin: 0;
    color: #DCE8F3 !important;
    font-size: 11px !important;
    line-height: 1.4;
}

body#page-local-mda_shop-catalog
.mda-shop-admin-arrow {
    display: flex !important;
    align-items: center;
    color: #FFFFFF !important;
    font-size: 23px !important;
    transition: transform .2s ease;
}

body#page-local-mda_shop-catalog
.mda-shop-admin-button:hover
.mda-shop-admin-arrow {
    transform: translateX(5px);
}

@media(max-width:480px) {
    body#page-local-mda_shop-catalog
    .mda-shop-page .mda-shop-admin-button {
        width: 100%;
    }
}

/* END MDA_ADMIN_BUTTON_FINAL */


/* MDA_ADMIN_PRODUCTS_INTERFACE */

.mda-admin-topbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 25px auto 0;
}

.mda-admin-nav-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    box-sizing: border-box;
    padding: 10px 17px !important;
    border: 1px solid #d5dfe9;
    border-radius: 10px;
    background: #ffffff;
    color: #12365a !important;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none !important;
    transition: all .2s ease;
}

.mda-admin-nav-primary {
    background: #12365a;
    border-color: #12365a;
    color: #ffffff !important;
}

.mda-admin-nav-primary:hover {
    background: #087779;
    border-color: #087779;
    color: #ffffff !important;
}

.mda-admin-nav-link:not(.mda-admin-nav-primary):hover {
    border-color: #087779;
    background: #edf7f7;
    color: #087779 !important;
    transform: translateY(-2px);
}

.mda-shop-page {
    margin-top: 25px;
}

.mda-shop-page > h1 {
    margin-bottom: 12px;
    font-size: clamp(27px,3vw,36px);
}

.mda-shop-admin-form {
    padding: 32px !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 28px rgba(18,54,90,.07) !important;
}

.mda-shop-admin-form h2 {
    margin-bottom: 23px;
    font-size: 23px;
}

.mda-shop-form-grid {
    gap: 24px !important;
}

.mda-shop-field label {
    margin-bottom: 3px;
    font-weight: 750;
}

.mda-shop-field input,
.mda-shop-field select,
.mda-shop-field textarea {
    min-height: 48px;
    border-radius: 10px !important;
    transition: border-color .2s ease,box-shadow .2s ease;
}

.mda-shop-field input:focus,
.mda-shop-field select:focus,
.mda-shop-field textarea:focus {
    border-color: #087779 !important;
    box-shadow: 0 0 0 3px rgba(8,119,121,.12) !important;
}

.mda-shop-button {
    min-height: 46px;
    padding: 12px 23px !important;
    border-radius: 10px !important;
    background: #087779 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    transition: background .2s ease,transform .2s ease;
}

.mda-shop-button:hover {
    background: #065f62 !important;
    transform: translateY(-2px);
}

.mda-shop-product-list {
    gap: 22px !important;
    margin-top: 22px !important;
}

.mda-shop-product-card {
    padding: 25px !important;
    border-radius: 16px !important;
    box-shadow: 0 5px 18px rgba(18,54,90,.05);
    transition: transform .2s ease,box-shadow .2s ease;
}

.mda-shop-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(18,54,90,.10);
}

.mda-shop-product-card h3 {
    font-size: 19px !important;
    line-height: 1.4;
}

.mda-shop-product-price {
    margin-top: 15px;
    color: #087779 !important;
    font-size: 25px !important;
    font-weight: 850;
}

@media(max-width:768px) {
    .mda-admin-topbar {
        width: calc(100% - 30px);
    }

    .mda-admin-nav-link {
        flex: 1 1 100%;
    }

    .mda-shop-admin-form {
        padding: 20px !important;
    }
}

/* END MDA_ADMIN_PRODUCTS_INTERFACE */


/* MDA_CAPACITATIONS_MANAGEMENT */

.mda-manage-summary {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    margin: 25px 0;
}

.mda-manage-stat {
    padding: 22px;
    border: 1px solid #d5dfe9;
    border-radius: 15px;
    background: #ffffff;
}

.mda-manage-stat strong {
    display: block;
    color: #12365a;
    font-size: 30px;
    font-weight: 850;
}

.mda-manage-stat span {
    color: #718096;
    font-size: 12px;
}

.mda-manage-course-readonly {
    padding: 13px 15px;
    border: 1px solid #d5dfe9;
    border-radius: 10px;
    background: #f3f6fa;
    color: #43546a;
}

.mda-manage-product-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
    margin: 22px 0 35px;
}

.mda-manage-product-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid #d5dfe9;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(18,54,90,.05);
}

.mda-manage-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.mda-manage-product-header h3 {
    color: #12365a;
    font-size: 18px;
    line-height: 1.4;
}

.mda-manage-status {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.mda-manage-status-active {
    background: #e9f9f0;
    color: #047857;
}

.mda-manage-status-inactive {
    background: #fff1f0;
    color: #b42318;
}

.mda-manage-product-card > p {
    color: #43546a;
    font-size: 13px;
    line-height: 1.6;
}

.mda-manage-product-card > small {
    display: block;
    margin-top: 10px;
    color: #718096;
}

.mda-manage-product-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5ebf1;
}

.mda-manage-product-actions form {
    margin: 0;
}

.mda-manage-edit-button,
.mda-manage-toggle-button,
.mda-manage-reactivate-button {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}

.mda-manage-edit-button {
    background: #12365a;
    color: #ffffff !important;
}

.mda-manage-toggle-button {
    background: #fff1f0;
    color: #b42318;
}

.mda-manage-reactivate-button {
    background: #e9f9f0;
    color: #047857;
}

.mda-admin-cancel-link {
    margin-left: 15px;
    color: #64748b;
    font-weight: 700;
}

@media(max-width:768px) {
    .mda-manage-summary,
    .mda-manage-product-list {
        grid-template-columns: 1fr;
    }

    .mda-manage-product-header {
        flex-direction: column;
    }
}

/* END MDA_CAPACITATIONS_MANAGEMENT */


/* MDA_ADMIN_FORM_FINAL */

body#page-local-mda_shop-manage_products #page-header {
    display: none !important;
}

.mda-manage-page > h1 {
    margin: 8px 0 12px;
    color: #12365A;
    font-size: clamp(28px,3vw,36px);
}

.mda-manage-form {
    margin-top: 28px;
    padding: 32px !important;
    border: 1px solid #D5DFE9;
    border-radius: 18px !important;
    background: #FFFFFF;
    box-shadow: 0 8px 28px rgba(18,54,90,.06);
}

.mda-manage-form > h2 {
    margin-bottom: 10px;
    color: #12365A;
    font-size: 24px;
}

.mda-manage-form > p {
    margin-bottom: 26px;
    color: #64748B;
    font-size: 14px;
}

.mda-manage-form .mda-shop-form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
}

.mda-manage-form .mda-shop-field {
    gap: 9px;
}

.mda-manage-form .mda-shop-field label {
    color: #12365A;
    font-size: 13px;
    font-weight: 800;
}

.mda-manage-form .mda-shop-field input,
.mda-manage-form .mda-shop-field select,
.mda-manage-form .mda-shop-field textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 49px;
    padding: 12px 15px;
    border: 1px solid #C8D5E2;
    border-radius: 10px;
    background: #FFFFFF;
    color: #17283D;
    font-size: 14px;
}

.mda-manage-form .mda-shop-field textarea {
    min-height: 115px;
    resize: vertical;
}

.mda-manage-form .mda-shop-field input:focus,
.mda-manage-form .mda-shop-field select:focus,
.mda-manage-form .mda-shop-field textarea:focus {
    border-color: #087779;
    box-shadow: 0 0 0 3px rgba(8,119,121,.12);
    outline: none;
}

.mda-manage-form .mda-shop-form-grid + .mda-shop-field {
    margin-top: 22px;
}

.mda-manage-form .mda-shop-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 25px;
}

.mda-manage-form .mda-shop-button {
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 10px;
    background: #087779;
    color: #FFFFFF;
    font-weight: 800;
}

.mda-manage-form .mda-shop-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.mda-manage-no-courses {
    margin: 15px 0;
}

.mda-manage-create-course-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0 15px;
    padding: 11px 17px;
    border-radius: 9px;
    background: #12365A;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.mda-manage-create-course-link:hover {
    background: #087779;
    color: #FFFFFF !important;
}

@media(max-width:768px) {
    .mda-manage-form {
        padding: 21px !important;
    }

    .mda-manage-form .mda-shop-form-grid {
        grid-template-columns: 1fr;
    }
}

/* END MDA_ADMIN_FORM_FINAL */


/* MDA_PROTECTED_PRODUCT_FIELDS */

.mda-manage-readonly {
    background: #edf2f7 !important;
    border: 1px solid #d5dfe9 !important;
    color: #64748b !important;
    cursor: not-allowed;
    opacity: 1 !important;
}

.mda-manage-form input:not([readonly]):focus,
.mda-manage-form textarea:focus {
    border-color: #087779 !important;
    box-shadow: 0 0 0 3px rgba(8,119,121,.12) !important;
}

/* END MDA_PROTECTED_PRODUCT_FIELDS */

