/**
 * Copyright (C) 2020-present Darko Gjorgjijoski <https://darkog.com>
 * Copyright (C) 2020-present IDEOLOGIX MEDIA DOOEL <https://ideologix.com>
 * All Rights Reserved.
 * Licensed under GPLv3.
 */

.dlsm-list-inline {
    display: block;
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.dlsm-list-inline li {
    display: inline-block;
}

.dlsm-inline-child .dlsm-status {
    display: inline-block !important;
}

.dlsm-list-inline-mb-0 {
    margin-bottom: 0 !important;
}

/** Buttons */
.dlsm-button {
    width: auto;
    height: auto;
    padding: 10px 12px;
    line-height: 1;
    border-radius: 3px;
}

/** My Account **/

/** Micromodal related */
.micromodal-slide form .dlsm-form-row:last-child {
    margin-bottom: 0;
}

.micromodal-slide form .dlsm-form-row {
    margin-bottom: 20px;
}

.micromodal-slide form .dlsm-form-row label {
    display: block;
    font-size: 16px;
    font-weight: bold;
}

.micromodal-slide .modal__title {
    font-size: 25px;
}

.micromodal-slide .dlsm-form-row input[type=text] {
    width: 100%;
}

.micromodal-slide .button-primary {
    background: var(--color-success);
    color: #fff;
}

.micromodal-slide form {
    margin-bottom: 0;
}

.dlsm-myaccount-license-key {
    display: inline-block;
}

.dlsm-myaccount-license-key > .dlsm-myaccount-license-key-action:hover {
    background-image: linear-gradient(to right, #6fd4a1, #36be6c);
    color: #ffffff;
}

.dlsm-myaccount-license-key > .dlsm-myaccount-license-key-action {
    font-family: Consolas, monospace;
    font-size: 13px;
    background-image: linear-gradient(to right, #f0f0f0, #f9f9f9);
    padding: 2px 7px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none !important;
}

.dlsm-clipboard {
    font-family: Consolas, monospace;
    background-color: #f0f0f0;
    color: #334;
    padding: 7px 14px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 3px;
    opacity: 1;
    -webkit-box-shadow: 2px 3px 5px rgba(0, 0, 0, .1);
    box-shadow: 2px 3px 5px rgba(0, 0, 0, .1);
    -webkit-transition: all .5s ease-out;
    -o-transition: all .5s ease-out;
    transition: all .5s ease-out;
}

.dlsm-form {
    width: 100%;
}

.dlsm-form .dlsm-form-row {
    width: 100%;
    margin-bottom: 10px;
}

.dlsm-form .dlsm-form-row label,
.dlsm-form .dlsm-form-row input[type=text],
.dlsm-form .dlsm-form-row input[type=email],
.dlsm-form .dlsm-form-row input[type=password] {
    display: block;
    width: 100%;
}

/**
Licenses
 */
.dlsm-myaccount-product-licenses .dlsm-myaccount-product-licenses--row {
    margin-bottom: 36px;
}

.dlsm-myaccount-product-licenses .dlsm-myaccount-product-licenses--row .dlsm-myaccount-page-subtitle {
    margin-bottom: 18px;
}

/** Sections */
.dlsm-myaccount-license-section {
    margin-bottom: 32px;
}
.dlsm-myaccount-license-section--content {
    margin-bottom: 18px;
}
.dlsm-myaccount-license-section--header {
    margin-bottom: 12px;
}
.dlsm-myaccount-license-section--header h3, .dlsm-myaccount-license-section--header button {
    display: inline-block;
    width: auto;
}
.dlsm-myaccount-license-section--header .dlsm-button {
    float: right;
}

/** Statuses */
@media (max-width: 767px) {
    .shop_table_responsive .dlsm-license-status.dlsm-license-status--full {
        display: inline-block;
        min-width: 120px;
        width: auto;
    }
    .shop_table_responsive .dlsm-myaccount-table-row-actions {
        display: inline-flex;
        width: auto;
    }
    .shop_table_responsive .dlsm-status-inline {
        display: inline-flex
    }
}

.dlsm-myaccount-table-row--status .dlsm-license-status--inline {
    min-width: 150px;
}

/**
Certificates
 */
#dlsm-license-certificate-download .dlsm-button {
    min-width: 150px;
    font-weight: normal;
    font-size: 15px;
}

/**
Tables Row actions
 */
.dlsm-myaccount-table-row-actions {
    display: flex;
    width: 100%;
    gap: 3px;
}
.dlsm-myaccount-table-row-actions .dlsm-myaccount-table-row-actions--button {
    font-weight: normal;
    font-size: 15px;
    padding: 8px 10px;
}


/* Premium license delivery cards and accessible license details modal. */
.dlsm-order-license-cards { margin: 28px 0; }
.dlsm-order-license-card { box-sizing:border-box; width:100%; max-width:720px; margin:22px auto; padding:24px; border:1px solid #e0e9e1; border-radius:18px; background:#fff; box-shadow:0 8px 28px rgba(20,55,28,.08); text-align:center; }
.dlsm-order-license-card__top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:22px; text-align:left; }
.dlsm-order-license-card__product { color:#263328; font-size:18px; line-height:1.5; font-weight:700; }
.dlsm-order-license-status { display:inline-flex; align-items:center; gap:5px; padding:7px 13px; border-radius:999px; font-size:12px; line-height:1.3; font-weight:800; letter-spacing:.45px; white-space:nowrap; }
.dlsm-order-license-status.is-delivered { color:#176b32; background:#e8f6ec; }
.dlsm-order-license-status.is-pending { color:#8a5a00; background:#fff4d8; }
.dlsm-order-license-card__key-label { margin:0 0 9px; color:#6b7280; font-size:11px; font-weight:800; letter-spacing:1.5px; }
.dlsm-order-license-card__key { display:block; margin:0 auto 20px; padding:16px 18px; border:1px dashed #a9c4ad; border-radius:12px; background:#f4f8f4; color:#173c20; font-family:Consolas,Monaco,monospace; font-size:clamp(20px,4vw,27px); line-height:1.5; font-weight:800; letter-spacing:1.3px; overflow-wrap:anywhere; }
.dlsm-order-license-card__expiry { margin:12px 0; color:#626b63; font-size:13px; }
.dlsm-order-license-view,.dlsm-license-copy { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:52px; padding:13px 25px; border:0; border-radius:12px; background:linear-gradient(135deg,#286b3a,#39884d); color:#fff!important; font-size:15px; font-weight:800; letter-spacing:.45px; text-decoration:none!important; cursor:pointer; box-shadow:0 6px 16px rgba(40,107,58,.22); transition:transform .18s ease,box-shadow .18s ease,filter .18s ease; }
.dlsm-order-license-view:hover,.dlsm-license-copy:hover { color:#fff!important; filter:brightness(1.06); transform:translateY(-2px); box-shadow:0 9px 20px rgba(40,107,58,.28); }
.dlsm-order-license-view:disabled { opacity:.55; cursor:not-allowed; transform:none; }
.dlsm-license-modal { display:none; position:fixed; z-index:999999; inset:0; align-items:center; justify-content:center; padding:18px; }
.dlsm-license-modal.is-open { display:flex; }
.dlsm-license-modal__backdrop { position:absolute; inset:0; background:rgba(12,25,15,.68); backdrop-filter:blur(3px); }
.dlsm-license-modal__panel { position:relative; z-index:1; box-sizing:border-box; width:min(100%,520px); max-height:90vh; overflow:auto; padding:32px 26px 26px; border:1px solid #e2ebe3; border-radius:20px; background:#fff; box-shadow:0 24px 70px rgba(0,0,0,.25); text-align:center; }
.dlsm-license-modal__close { position:absolute; top:10px; right:14px; width:38px; height:38px; border:0; border-radius:50%; background:#f1f4f1; color:#334238; font-size:27px; line-height:1; cursor:pointer; }
.dlsm-license-modal__icon { display:flex; align-items:center; justify-content:center; width:54px; height:54px; margin:0 auto 12px; border-radius:50%; background:#e8f6ec; color:#23743a; font-size:27px; font-weight:800; }
.dlsm-license-modal__panel h3 { margin:0 0 14px; color:#202820; font-size:25px; font-weight:800; }
.dlsm-license-modal__product { margin:17px 0; color:#465248; font-size:15px; font-weight:700; }
.dlsm-license-modal__key { display:block; box-sizing:border-box; width:100%; margin:0 0 18px; padding:18px 12px; border:1px dashed #a9c4ad; border-radius:12px; background:#f4f8f4; color:#173c20; font-family:Consolas,Monaco,monospace; font-size:clamp(19px,4vw,25px); line-height:1.5; font-weight:800; letter-spacing:1px; overflow-wrap:anywhere; white-space:normal; }
.dlsm-license-copy { width:100%; }
.dlsm-license-copy-feedback { min-height:20px; margin:9px 0 0; color:#23743a; font-size:13px; font-weight:700; }
body.dlsm-license-modal-open { overflow:hidden; }
@media(max-width:600px) { .dlsm-order-license-card { padding:18px 14px; border-radius:15px; } .dlsm-order-license-card__top { align-items:flex-start; flex-direction:column; } .dlsm-order-license-view { width:100%; } .dlsm-license-modal__panel { padding:30px 17px 20px; } }
