/* Base */

hr {
    margin: 3em 0;
}

h2:first-child,
h3:first-child {
    margin-top: 0;
}

img {
    width: 100%;
    height: auto;
}

.phksl-logo {
    max-width: 290px;
    width: 100%;
    margin-top: 20px;
}

.wp-core-ui .button-group {
    white-space: normal;
}

.wp-core-ui .button-group .button,
.wp-core-ui .button-group .button-primary,
.wp-core-ui .button-group .button-secondary {
    margin: 0 4px 4px 0;
}

/* WordPress Overrides */

.form-table td p {
    margin-top: 10px;
}

.form-table tr:last-child th,
.form-table tr:last-child td {
    padding-bottom: 0;
}

@media screen and (max-width: 782px) {
    .form-table th {
        padding-top: 15px;
        padding-bottom: 5px;
        border-bottom: 0;
    }
}

.wp-core-ui select {
    min-width: 150px;
}

.phksl-input-field-with-suffix input[type="number"] {
    min-width: calc(150px - 33px);
}

/* General */

.intro-text {
    max-width: 720px;
}

/* Navigation */

.nav-tab-wrapper {
    margin-bottom: 3em;
}

/* Resizing */

.phksl-image-size-label {
    margin-right: 5px;
}

.phksl-image-size-input {
    margin-right: 3px;
}

.phksl-image-size-unit {
    margin-right: 40px;
}

/* Layout */

.phksl-grid-2-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.phksl-white-box {
    background: white;
    border: 1px solid #ddd;
    padding-bottom: 16px;
    margin-bottom: 30px;
}

.phksl-white-box table {
    border-collapse: collapse;
    text-align: left;
    width: 100%;
}

.phksl-white-box .form-table {
    margin-top: 16px;
}

.phksl-white-box h2 {
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
    padding: 20px;
}

.phksl-white-box h3 {
    font-size: 1.2em;
    margin-bottom: 0;
}

.phksl-white-box table tr.title-row {
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.phksl-white-box table .last-options-row {
    border-bottom: 1px solid #ddd;
}

.phksl-white-box table .last-options-row:last-child {
    border-bottom: none;
}

.phksl-white-box table tr.title-row td {
    text-align: right;
    padding: 8px 20px;
}

.phksl-white-box table th {
    padding: 4px 0 4px 20px;
    vertical-align: middle;
    width: auto;
}

.phksl-white-box table td {
    padding: 4px 20px;
    vertical-align: middle;
    width: auto;
}

.phksl-white-box table .first-options-row th,
.phksl-white-box table .first-options-row td {
    padding-top: 16px;
}

.phksl-white-box table .last-options-row th,
.phksl-white-box table .last-options-row td {
    padding-bottom: 16px;
}

.phksl-white-box table .last-options-row:last-child th,
.phksl-white-box table .last-options-row:last-child td {
    padding-bottom: 0;
}

@media screen and (max-width: 782px) {
    .phksl-grid-2-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Help Tip */

.phksl-group-with-help-tip {
    display: flex;
    align-items: center;
}

.phksl-help-tip {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin: 0px;
    padding-left: 10px;
    cursor: default;
}

.phksl-help-tip .phksl-help-tip-symbol {
    background: #ccc;
    border-radius: 20px;
    color: white;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    width: 20px;
    height: 20px;
    transition-duration: .2s;
}

.phksl-help-tip:hover .phksl-help-tip-symbol,
.phksl-help-tip .phksl-help-tip-symbol:hover {
    background: #23282d;
}

.phksl-help-tip .phksl-help-tip-description {
    background: #23282d;
    color: white;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(5px);
    position: absolute;
    top: -10px;
    left: 40px;
    padding: 12px 15px;
    width: 240px;
    z-index: 10;
    transition-duration: .2s;
    transition-delay: 0s;
    pointer-events: none;
}

.phksl-help-tip .phksl-help-tip-description:hover {
    cursor: text;
}

.phksl-help-tip .phksl-help-tip-description p {
    font-size: 12px;
    margin-top: 8px;
}

.phksl-help-tip .phksl-help-tip-description p:first-child {
    margin-top: 0 !important;
}

.phksl-help-tip .phksl-help-tip-description p:last-child {
    margin-bottom: 0 !important;
}

.phksl-help-tip .phksl-help-tip-description:before {
    content: "";
    background: #23282d;
    width: 12px;
    height: 12px;
    position: absolute;
    top: 14px;
    left: -6px;
    transform: rotate(45deg);
    z-index: 10;
}

.phksl-help-tip:hover {
    width: 40px;
}

.phksl-help-tip:hover .phksl-help-tip-description {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    transition-delay: .2s;
}

.phksl-free-description p strong {
    color: #95d8ea;
}

@media screen and (max-width: 782px) {
    .phksl-help-tip .phksl-help-tip-description {
        font-size: 13px;
        transform: translateX(-5px);
        top: -7px;
        left: auto;
        right: 38px;
    }

    .phksl-help-tip .phksl-help-tip-description:before {
        left: auto;
        right: -6px;
        transform: rotate(45deg);
        z-index: 10;
    }

    .phksl-help-tip:hover {
        width: 26px;
    }
}

/* Premium Symbol */

.phksl-premium-symbol {
    background: #0AA0C7;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    transition-duration: .2s;
}

.phksl-help-tip:hover .phksl-premium-symbol,
.phksl-help-tip .phksl-premium-symbol:hover {
    background: #0034c8;
}

.phksl-premium-symbol img {
    width: 12px;
}

@media screen and (max-width: 782px) {
    .phksl-help-tip .phksl-premium-symbol,
    .phksl-help-tip .phksl-help-tip-symbol {
        width: 26px;
        height: 26px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .phksl-help-tip .phksl-premium-symbol img {
        width: 15px;
    }
}

/* Field Suffix */

.phksl-input-field-with-suffix {
    display: flex;
    align-items: center;
    margin-right: 1px;
}

.phksl-input-field-with-suffix input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 0;
    border-right: 0;
}

.phksl-field-suffix {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 .5rem;
    background: #f2f2f2;
    border: 1px solid #8c8f94;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    height: 28px;
}

.phksl-field-suffix.disabled {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(220, 220, 222, 0.75);
    color: rgba(44, 51, 56, 0.5);
}

@media screen and (max-width: 782px) {
    .phksl-input-field-with-suffix {
        width: 100%;
    }

    .phksl-input-field-with-suffix input[type="number"] {
        min-width: calc(100% - 37px);
        margin-right: 0 !important;
    }

    .phksl-field-suffix {
        height: 38px;
    }
}

/* Welcome Wizard */
.welcome-wizard-wrapper {
    max-width: 640px;
    margin: 100px auto 0 auto;
}