.dmware-service-page {
    --dmware-bg: #11141d;
    --dmware-card: #181c27;
    --dmware-card-soft: #1d2230;
    --dmware-border: rgba(255, 255, 255, 0.11);
    --dmware-text: #f7f8fb;
    --dmware-muted: #aeb6c8;
    --dmware-accent: #d84789;
    --dmware-blue: #5aa9cf;
    color: var(--dmware-text);
}

.dmware-service-page,
.dmware-service-page * {
    box-sizing: border-box;
}

.dmware-service-page .dmware-service-hero {
    position: relative;
    display: block !important;
    overflow: hidden;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 22px !important;
    padding: 28px 38px !important;
    border: 1px solid var(--dmware-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 12%, rgba(216, 71, 137, .24), transparent 34%),
        radial-gradient(circle at 68% 110%, rgba(90, 169, 207, .18), transparent 40%),
        linear-gradient(135deg, #191d2a 0%, #12151e 72%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}

.dmware-service-page .dmware-service-hero::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -95px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.dmware-service-page .dmware-service-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #dfe5f2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.dmware-service-page .dmware-service-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    min-height: 0 !important;
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.dmware-service-page .dmware-service-hero-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: var(--dmware-muted);
    font-size: 15px;
}

.dmware-portal-login {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 28px;
    border: 1px solid var(--dmware-border);
    border-radius: 20px;
    background: var(--dmware-card);
    box-shadow: 0 18px 52px rgba(0, 0, 0, .15);
}

.dmware-portal-login-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 15px;
    background: rgba(216, 71, 137, .13);
    color: #f7b0d0;
    font-size: 20px;
    font-weight: 800;
}

.dmware-portal-login .dmware-service-eyebrow {
    margin-bottom: 6px;
}

.dmware-portal-login h2 {
    display: block !important;
    margin: 0 0 6px !important;
    color: #fff;
    font-size: 23px;
    line-height: 1.2;
}

.dmware-portal-login p {
    margin: 0;
    color: var(--dmware-muted);
    font-size: 14px;
    line-height: 1.55;
}

.dmware-portal-login > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 999px;
    background: var(--dmware-accent);
    color: #fff !important;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none !important;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .dmware-portal-login {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 16px;
        padding: 21px;
    }

    .dmware-portal-login > a {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dmware-portal-login {
        grid-template-columns: 1fr;
    }
}

.dmware-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(90, 169, 207, .38);
    border-radius: 999px;
    background: rgba(90, 169, 207, .12);
    color: #c8ebfb;
    font-size: 13px;
    font-weight: 700;
}

.dmware-service-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6ed3a7;
    box-shadow: 0 0 0 4px rgba(110, 211, 167, .12);
}

.dmware-service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 28px;
    align-items: start;
}

.dmware-service-card,
.dmware-service-sidebar-card {
    border: 1px solid var(--dmware-border);
    border-radius: 20px;
    background: var(--dmware-card);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .14);
}

.dmware-service-card {
    margin-bottom: 20px;
    padding: 24px;
}

.woocommerce-view-subscription .woocommerce-MyAccount-content .dmware-service-page .dmware-service-card-title {
    display: block !important;
    margin: 0 0 12px !important;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.dmware-service-page table.shop_table {
    width: 100%;
    margin: -8px 0 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dmware-service-page table.shop_table tr {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dmware-service-page table.shop_table th,
.dmware-service-page table.shop_table td {
    padding: 14px 16px !important;
    border: 0 !important;
    background: rgba(255, 255, 255, .035) !important;
    color: var(--dmware-text);
    vertical-align: middle;
    box-shadow: none !important;
}

.dmware-service-page table.shop_table thead th {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    background: transparent !important;
    color: var(--dmware-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dmware-service-page table.shop_table tbody tr > :first-child,
.dmware-service-page table.shop_table tfoot tr > :first-child {
    border-radius: 11px 0 0 11px;
}

.dmware-service-page table.shop_table tbody tr > :last-child,
.dmware-service-page table.shop_table tfoot tr > :last-child {
    border-radius: 0 11px 11px 0;
}

.dmware-service-page table.shop_table td:first-child,
.dmware-service-page table.shop_table th:first-child {
    width: 31%;
    color: var(--dmware-muted);
    font-weight: 600;
}

.dmware-service-page .button,
.dmware-service-page a.button {
    margin: 4px 7px 4px 0;
    padding: 11px 17px;
    border: 1px solid transparent !important;
    border-radius: 999px;
    background: var(--dmware-accent) !important;
    color: #fff !important;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .2s ease, filter .2s ease;
}

.dmware-service-page .button:hover,
.dmware-service-page a.button:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.dmware-service-page .shop_table.order_details .button {
    background: var(--dmware-blue) !important;
}

.woocommerce-view-subscription .dmware-service-page #woocommerce-subscriptions-related-orders-table .button {
    min-height: 34px !important;
    margin: 2px 5px 2px 0;
    padding: 7px 13px !important;
    font-size: 13px;
    line-height: 1.15;
}

.dmware-service-page .wcs-auto-renew-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dmware-service-page .subscription-auto-renew-toggle {
    position: relative;
    top: auto;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: 52px;
    height: 30px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    outline: 0;
    text-decoration: none !important;
}

.dmware-service-page .subscription-auto-renew-toggle__i {
    position: relative;
    display: block;
    width: 52px;
    height: 30px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 999px;
    background: #343a48 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .28);
    transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.dmware-service-page .subscription-auto-renew-toggle__i::before {
    position: absolute;
    top: 3px;
    right: auto;
    left: 3px;
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .34);
    transition: left .22s ease, transform .22s ease;
}

.dmware-service-page .subscription-auto-renew-toggle--on .subscription-auto-renew-toggle__i {
    border-color: rgba(243, 116, 173, .65) !important;
    background: linear-gradient(135deg, #e05291 0%, #c73578 100%) !important;
    box-shadow: 0 0 0 3px rgba(216, 71, 137, .12), inset 0 1px 2px rgba(255, 255, 255, .18);
}

.dmware-service-page .subscription-auto-renew-toggle--on .subscription-auto-renew-toggle__i::before {
    right: auto;
    left: 26px;
}

.dmware-service-page .subscription-auto-renew-toggle:hover .subscription-auto-renew-toggle__i {
    border-color: rgba(255, 255, 255, .3) !important;
}

.dmware-service-page .subscription-auto-renew-toggle--on:hover .subscription-auto-renew-toggle__i {
    border-color: rgba(255, 185, 216, .82) !important;
    box-shadow: 0 0 0 4px rgba(216, 71, 137, .16), inset 0 1px 2px rgba(255, 255, 255, .18);
}

.dmware-service-page .subscription-auto-renew-toggle:focus-visible .subscription-auto-renew-toggle__i {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.dmware-service-page .subscription-auto-renew-toggle--disabled {
    cursor: wait;
    opacity: .58;
}

.dmware-service-page .dmware-auto-renew-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--dmware-muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
}

.dmware-service-page .dmware-auto-renew-status.is-active {
    border-color: rgba(110, 211, 167, .36);
    background: rgba(110, 211, 167, .12);
    color: #b9f2d7;
}

@media (prefers-reduced-motion: reduce) {
    .dmware-service-page .subscription-auto-renew-toggle__i,
    .dmware-service-page .subscription-auto-renew-toggle__i::before {
        transition: none;
    }
}

body.woocommerce-order-pay #payment #place_order,
body.woocommerce-order-pay #payment button[name="woocommerce_change_payment"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: #d84789 !important;
    color: #fff !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}

body.woocommerce-order-pay #payment #place_order:hover,
body.woocommerce-order-pay #payment button[name="woocommerce_change_payment"]:hover {
    color: #fff !important;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.dmware-service-sidebar {
    position: sticky;
    top: 28px;
}

.dmware-service-sidebar-card {
    overflow: hidden;
    padding: 24px;
}

.dmware-service-sidebar-heading h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 24px;
    letter-spacing: -.02em;
}

.dmware-service-health {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 11px 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
    color: var(--dmware-muted);
    font-size: 13px;
    font-weight: 600;
}

.dmware-service-health-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0a84c;
}

.dmware-service-health.is-ready .dmware-service-health-dot {
    background: #6ed3a7;
    box-shadow: 0 0 0 4px rgba(110, 211, 167, .1);
}

.dmware-service-links {
    display: grid;
    gap: 10px;
}

.dmware-service-link {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--dmware-border);
    border-radius: 13px;
    background: var(--dmware-card-soft);
    color: #fff;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.dmware-service-link:hover {
    border-color: rgba(90, 169, 207, .55);
    background: #222838;
    color: #fff;
    transform: translateY(-1px);
}

.dmware-service-link.is-primary {
    border-color: rgba(216, 71, 137, .42);
    background: linear-gradient(135deg, rgba(216, 71, 137, .22), rgba(216, 71, 137, .08));
}

.dmware-service-link-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.dmware-service-link strong,
.dmware-service-link small {
    display: block;
}

.dmware-service-link strong {
    color: #fff;
    font-size: 15px;
}

.dmware-service-link small {
    overflow: hidden;
    margin-top: 2px;
    color: var(--dmware-muted);
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dmware-service-help {
    margin: 22px -24px -24px;
    padding: 22px 24px 24px;
    border-top: 1px solid var(--dmware-border);
    background: rgba(0, 0, 0, .12);
}

.dmware-service-help h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 16px;
}

.dmware-service-help p {
    margin: 0 0 13px;
    color: var(--dmware-muted);
    font-size: 13px;
    line-height: 1.55;
}

.dmware-service-help div {
    display: flex;
    gap: 16px;
}

.dmware-service-help a {
    color: #cdeeff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.dmware-service-page .betweensubandorder,
.dmware-service-page .aware-subscription-details {
    display: none;
}

.dmware-service-page .proposed-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dmware-service-page .prodotto-consigliato {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--dmware-border);
    border-radius: 16px;
    background: var(--dmware-card-soft);
    color: #fff;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.dmware-service-page .prodotto-consigliato:hover {
    border-color: rgba(216, 71, 137, .52);
    background: #232838;
    color: #fff;
    transform: translateY(-2px);
}

.dmware-recommendation-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 20px;
}

.dmware-recommendation-heading .dmware-service-card-title {
    margin-bottom: 0 !important;
    font-size: 23px;
}

.dmware-recommendation-heading > p {
    margin: 0;
    color: var(--dmware-muted);
    font-size: 14px;
    line-height: 1.55;
}

.dmware-recommendation-type {
    display: block;
    margin-bottom: 7px;
    color: #9fd8f4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.dmware-recommendation-name {
    display: block;
    min-height: 48px;
    color: #fff;
    font-size: 17px;
    line-height: 1.35;
}

.dmware-recommendation-image {
    display: grid;
    min-height: 112px;
    margin: 14px 0;
    place-items: center;
}

.dmware-recommendation-image img {
    width: 104px;
    height: 104px;
    margin: 0;
    border-radius: 13px;
    object-fit: cover;
}

.dmware-recommendation-price {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.dmware-recommendation-price .subscription-details,
.dmware-recommendation-price .woocommerce-price-suffix {
    color: var(--dmware-muted);
    font-size: 12px;
    font-weight: 500;
}

.dmware-recommendation-discover {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--dmware-border);
    color: #f3bed8;
    font-size: 13px;
    font-weight: 700;
}

.dmware-recommendation-catalogs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.dmware-recommendation-catalogs a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid var(--dmware-border);
    border-radius: 999px;
    color: #d7eefa;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.dmware-recommendation-catalogs a:hover {
    border-color: rgba(90, 169, 207, .55);
    background: rgba(90, 169, 207, .08);
    color: #fff;
}

.dmware-email-recommendation {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-top: 20px;
    padding: 19px 20px;
    border: 1px solid rgba(216, 71, 137, .3);
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(216, 71, 137, .16), rgba(90, 169, 207, .08));
}

.dmware-email-recommendation strong {
    display: block;
    color: #fff;
    font-size: 17px;
}

.dmware-email-recommendation p {
    margin: 4px 0 0;
    color: var(--dmware-muted);
    font-size: 13px;
}

.dmware-email-recommendation > a {
    flex: 0 0 auto;
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--dmware-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .dmware-service-layout {
        grid-template-columns: 1fr;
    }

    .dmware-service-sidebar {
        position: static;
        order: -1;
    }

    .dmware-service-page .proposed-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .dmware-service-page .dmware-service-hero {
        padding: 23px 22px !important;
        border-radius: 18px;
    }

    .dmware-service-hero-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .dmware-service-card,
    .dmware-service-sidebar-card {
        border-radius: 16px;
    }

    .dmware-recommendation-heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dmware-service-page .proposed-products {
        grid-template-columns: 1fr;
    }

    .dmware-recommendation-name {
        min-height: 0;
    }

    .dmware-email-recommendation {
        align-items: flex-start;
        flex-direction: column;
    }

    .dmware-service-page table.shop_table,
    .dmware-service-page table.shop_table tbody,
    .dmware-service-page table.shop_table tr,
    .dmware-service-page table.shop_table td,
    .dmware-service-page table.shop_table th {
        display: block;
        width: 100%;
    }

    .dmware-service-page table.shop_table td:first-child,
    .dmware-service-page table.shop_table th:first-child {
        width: 100%;
        padding: 13px 14px 4px !important;
        border-radius: 10px 10px 0 0;
    }

    .dmware-service-page table.shop_table td:last-child,
    .dmware-service-page table.shop_table th:last-child {
        padding: 4px 14px 13px !important;
        border-radius: 0 0 10px 10px;
    }
}
