/* Office 365 One-Click Toggle Switch Styles */
.ps-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 20px;
    vertical-align: middle;
}
.ps-toggle-switch input { display: none; }
.ps-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.ps-toggle-slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .ps-toggle-slider {
    background-color: #375caf;
}
input:checked + .ps-toggle-slider:before {
    transform: translateX(26px);
}
.psp-logo {
    border-bottom: 1px solid #D9D9D9;
    padding: 10px 0;
}

.psp-extensions {
    margin: 15px 0;
}

.psp-extension {
    background: #fff;
    border: 1px solid #375CAF;
    width: calc(25% - 27px);
    float: left;
    margin-bottom: 25px;
    margin-right: 25px;
    box-shadow: 0px 2px 4px #999999;
}

.psp-extension-top {
    padding: 15px;
    border-bottom: 1px solid #e3e3e3;
    min-height: 162px;
}

.psp-extension img {
    width: 35px;
}

.psp-extension h4 {
    margin: 0px;
}

.psp-extension p {
    color: #737373;
}

.psp-extension-bottom {
    display: block;
    padding: 15px 15px;
}

.psp-extension-status {
    font-weight: 600;
}

.psp-extension-status.deactivated {
    background-color: #9092B0;
}

.psp-extension-status.activated {
    background-color: #375CAF;
}

.bonus-extensions {
    margin-top: 25px;
}

.bonus-extensions .psp-extension-logo {
    position: relative;
}

.psp-menu {
    float: right;
}

.psp-menu .dashicons-ellipsis {
    rotate: 90deg;
    cursor: pointer;
    margin: 10px 0;
    color: #9092B0;
}

.psp-sub-menu {
    background-color: #ffffff;
    position: absolute;
    right: 11px;
    top: 14px;
    padding: 5px 8px;
    box-shadow: 1px 1px 3px #a9a9a9;
    width: 130px;
    display: none;
}

.psp-menu-item {
    padding: 3px 0;
    margin-left: 6px;
}

.psp-menu-item a {
    text-decoration: none;
    color: #5B5E80;
}

.psp-menu-item b {
    font-size: 12px;
    font-weight: 500;
}

.psp-footer {
    padding: 0 25px;
}

.psp-footer button {
    float: right;
}

.psp-extension-status.active {
    color: #375CAF;
}

.psp-extension-status.inactive {
    color: #9092B0;
}

.psp-popup-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    display: none;
}

.psp-confirmation-popup {
    background: #fff;
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 330px;
    height: 150px;
    z-index: 1;
    padding: 10px 25px 15px 25px;
    border: 1px solid #375CAF;
    box-shadow: 0px 2px 4px #666666;
}

.psp-confirmation-popup h3 {
    color: #375CAF;
}

.psp-confirmation-popup p {
    font-weight: 600;
}

.psp-popup-btns {
    margin-top: 19px;
}

.psp-popup-btns a {
    padding: 1px 29px!important;
    font-size: 15px!important;
    font-weight: 500;
    box-shadow: 0px 2px 4px #666666;
}

.psp-popup-btns a:nth-child(1) {
    border: 1px solid #5B5E80;
    background: #ffffff;
    color: #375CAF;
}

.psp-popup-btns a:nth-child(1):hover {
    border: 1px solid #5B5E80;
}

.psp-popup-btns a:nth-child(2) {
    background: #375CAF;
    color: #ffffff;
}

.psp-popup-btns a:nth-child(2):hover {
    background: #3758a3;
}


.psp-popup-btns a:nth-child(2) {
    float: right;
}

tr[data-slug="post-smtp-pro"] .upgrade {
    display: none;
}

.ps-switch-1 {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
}

.ps-switch-1 input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ps-switch-1 input:checked + .ps-switch-slider {
    background-color: #375CAF;
}

.ps-switch-1 .ps-switch-slider.ps-switch-round {
    border-radius: 34px;
}

.ps-switch-1 .ps-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #9092B0;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.ps-switch-1 input:checked + .ps-switch-slider:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
}

.ps-switch-1 .ps-switch-slider.ps-switch-round:before {
    
    border-radius: 50%;
}
.ps-switch-1 .ps-switch-slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.clear {
    clear: both;
}

/* Upgrade Popup Styles */
.psp-upgrade-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.psp-upgrade-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    text-align: center;
}

.psp-upgrade-popup h3 {
    margin-top: 0;
    color: #375CAF;
}

/* Restricted Extension Styles */
.psp-extension-restricted {
    position: relative;
    opacity: 0.85;
    cursor: pointer;
    transition: all 0.3s ease;
}

.psp-extension-restricted:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px #666;
}

.psp-extension-restricted .psp-extension-logo {
    position: relative;
}

.psp-upgrade-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b35;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 10;
}

.psp-extension-restricted[data-restriction-reason="version"] .psp-upgrade-badge {
    background: #e74c3c;
}

.psp-extension-restricted[data-restriction-reason="plan"] .psp-upgrade-badge {
    background: #ff6b35;
}

.psp-upgrade-text {
    color: #375CAF !important;
    font-weight: bold;
    margin-top: 10px;
    font-size: 12px;
}

.ps-switch-disabled {
    background-color: #ccc !important;
    cursor: pointer !important;
}

.psp-extension-restricted input {
    cursor: pointer;
}

.psp-extension-restricted .ps-switch-slider {
    cursor: pointer;
}

/* Microsoft 365 One-Click Setup Styles */
.office365-settings-section {
    /* background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0; */
}

.toggle-switch-container {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0073aa;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.office365-auth-fields {
    /* padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #0073aa; */
}

.auth-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.auth-button.primary {
    background: #0078d4;
    color: white;
}

.auth-button.primary:hover {
    background: #106ebe;
    color: white;
    text-decoration: none;
}

.auth-button.danger {
    background: #dc3545;
    color: white;
}

.auth-button.danger:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.connected-status {
    margin-bottom: 10px;
    padding: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 14px;
}

.connected-email {
    font-weight: 600;
    color: #0073aa;
}

.business-plan-notice {
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    margin-bottom: 15px;
}

.business-plan-notice strong {
    color: #856404;
}

.upgrade-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.upgrade-link:hover {
    text-decoration: underline;
}
#office365_settings .ps-disable-office365-setup{
	margin-top: 7px !important
}