@use "../index" as *;

.wpr-rollback-component-wrap {
    max-width: 800px;
    margin: 0 auto 100px;
    border: 1px solid $border-color;
}

// Top Header Bar & Images
.wpr-content-banner {
    border-bottom: 1px solid $border-color;
    height: 259px;
    background: #fff;

    &__theme {
        height: 180px;
        border: 1px solid $border-color;
    }
}

.wpr-content-header {
    background-color: #fff;
    padding: 30px;
    display: flex;
    gap: 25px;
    border-bottom: 1px solid $border-color;
}

.wpr-intro-text {
    font-size: 16px;
}

.wpr-content-wrap {
    background: #fff;
    border: 1px solid $border-color;
    padding: 0;
}

.wpr-heading-link {
    text-decoration: none;
    color: $color-headings;
    outline: none;

    &:hover {
        color: var(--wp-admin-theme-color);
    }

    &:focus {
        outline: none;
        box-shadow: none;
    }

    .dashicons {
        margin-left: 6px;
        font-size: 18px;
    }
}

.wpr-expand-text {
    color: var(--wp-admin-theme-color);
    display: block;
    margin-left: -6px;
    cursor: pointer;

    &:hover {
        text-decoration: underline;
        color: var(--wp-admin-theme-color);
    }
}

// API errors
.wpr-api-error {
    padding: 15px 20px;
    margin: 200px auto;
    width: 600px;
    background: #fff;
    border: 1px solid $border-color;

    h1 {
        font-size: 17px;
    }
}

// Plugin Info
.wpr-plugin-info {
    flex-grow: 1;

    .wpr-plugin-name {
        margin: 0 0 13px;
        padding: 0;
        line-height: 1.3;
    }
}

.wpr-plugin-avatar-wrap {
    width: 96px;
    height: 96px;
}

.wpr-plugin-avatar {
    border: 1px solid $border-color;
    width: 96px;
    height: 96px;
}

// Pills displaying meta data

.wpr-pill-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.wpr-pill {
    background: $color-light-blue;
    border-radius: 500px;
    padding: 6px 12px;

    &__black {
        background: #1d2327;
        color: #fff;
    }

    .wpr-pill-text {
        font-size: 14px;
        margin: 0;
        padding: 0;

        a {
            color: var(--wp-admin-theme-color);
        }
    }
}

// Right side of header / Meta Data
.wpr-meta-wrap {
    min-width: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;

    h3 {
        @include all-caps-heading;
        font-weight: 500;
    }

    .wpr-updater-info .dashicons {
        font-size: 16px;
    }

    .wpr-plugin-lastupdate {
        font-size: 14px;
        font-style: italic;
    }

    .wpr-view-changelog {
        margin-bottom: 25px;
    }
}

.wpr-theme-author-inner {
    border: 1px solid $border-color;
    text-align: center;

    img {
        margin: 15px auto;
    }

    .wpr-theme-author-info {
        border-top: 1px solid $border-color;
        padding: 4px 6px;
        background: $background-light-gray;
        line-height: 15px;

        a {
            font-size: 11px;
            line-height: 1.2;
            text-decoration: none;
        }

        a:focus,
        a:hover {
            box-shadow: none;
            outline: none;
            text-decoration: underline;
        }
    }
}

// Version Info
.wpr-versions-container {
    background-color: #fff;
    overflow-y: auto;
    min-height: 450px;
    max-height: 450px;
}

.wpr-version-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid $border-color;
    background: $background-light-gray;

    &:hover {
        background: #fff;
    }

    &.wpr-active-row {
        background: #f1f8ff;
    }

    .wpr-popover-wrap {
        display: inline-block;
        margin-left: 10px;
    }
}

.wpr-plugin-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 170px;
}

// Radios listing versions
.wpr-version-radio-wrap {
    margin: 0;
    padding: 0;

    label {
        display: flex;
        padding: 20px 30px;
        align-items: center;
    }

    input[type="radio"] {
        margin: 0;
    }

    span.wpr-version-lineitem {
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 0 8px;
    }

    span.wpr-version-lineitem-current {
        font-size: 15px;
        font-style: italic;
        font-weight: 400;
        margin: 0 0 0 20px;
    }
}

// Bottom button
.wpr-button-wrap {
    padding: 20px 30px;
    background: #fff;
    bottom: 0;
    width: 802px;
    box-sizing: border-box;
    border: 1px solid $border-color;
    box-shadow: 0px -10px 20px rgb(0 0 0 / 9%);

    .is-secondary {
        margin-left: 20px;
    }
}
