/* Admin Styles for Shiprazor Shipping Plugin */

/* Table styles */
.sspssp-txt-ctr {
    text-align: center !important;
}

.sspssp-dis-flex {
    display: flex !important;
    height: 25px;
    margin-top: 5px !important;
}

.sspssp-dis-block {
    display: block !important;
    height: 25px;
    margin-top: 5px !important;
}

.sspssp-input {
    width: 150px !important;
}

.sspssp-mrg {
    margin-left: 5px !important;
}

.sspssp-rule-btn {
    width: 120px !important;
    margin-left: 5px !important;
    height: 30px;
}


.sspssp-rule-btn-rm {
    /* width: px !important; */
    margin-left: 5px !important;
    height: 30px;
}

/* Table Container */
.sspssp-discount-table {
    width: 30%;
    border-collapse: collapse;
    margin-top: 10px;
}

/* Table Headers */
.sspssp-th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center !important;
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Table Rows */
.sspssp-tr:nth-child(even) {
    background-color: #f9f9f9;
}

.sspssp-tr:hover {
    background-color: #f1f1f1;
}

/* Table Data Cells */
.sspssp-td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

/* Input Fields for Editable Cells */
.sspssp-input-min,
.sspssp-input-max,
.sspssp-input-discount {
    width: 20%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

/* Remove Button */
.sspssp-remove-row {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    text-align: center;
}

.sspssp-remove-row:hover {
    background-color: #ff0000;
}

/* Add New Row Button */
.sspssp-add-row {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 3px;
    text-align: center;
}

.sspssp-add-row:hover {
    background-color: #45a049;
}

.sspssp-input-error {
    border: 2px solid red;
    background-color: #ffe6e6;
}

.sspssp-form-container {
    /* width: 50% !important; */
}

.sspssp-new-min {
    width: 100px !important;
    height: 35px !important;

}

.sspssp-new-max {
    width: 80px !important;
    height: 35px !important;
    margin-left: 10px;

}

.sspssp-new-discount {
    width: 80px !important;
    height: 35px !important;
    margin-left: 10px;

}

.sspssp-connect-status {
    margin: 14px 0 0;
    font-weight: 600;
}

.sspssp-connect-status:empty {
    display: none;
}

/* ---------- Shiprazor connect hero ---------- */
.sspssp-connect-cell {
    padding: 0 !important;
}

.sspssp-hero {
    position: relative;
    overflow: hidden;
    max-width: 760px;
    margin: 8px 0 4px;
    padding: 38px 40px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #1f2a5a 0%, #2d3aa8 45%, #5a4bd6 100%);
    box-shadow: 0 18px 40px rgba(45, 58, 168, 0.28);
}

.sspssp-hero.is-connected {
    background: linear-gradient(135deg, #0b3d2e 0%, #0f7a4f 50%, #18a36a 100%);
    box-shadow: 0 18px 40px rgba(15, 122, 79, 0.28);
}

.sspssp-hero__glow {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.sspssp-hero__content {
    position: relative;
    z-index: 1;
}

.sspssp-hero__badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
}

.sspssp-hero__title {
    margin: 16px 0 10px;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.sspssp-hero__desc {
    margin: 0 0 18px;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.sspssp-hero__features {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.sspssp-hero__features li {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.sspssp-hero__tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
}

.sspssp-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sspssp-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2a5a;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.sspssp-hero.is-connected .sspssp-hero__btn {
    color: #0f7a4f;
}

.sspssp-hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.sspssp-hero__btn:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.sspssp-hero__btn-icon {
    font-size: 16px;
}

.sspssp-hero__connected-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.16);
}

.sspssp-hero__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #7dffb0;
    box-shadow: 0 0 0 0 rgba(125, 255, 176, 0.7);
    animation: sspssp-pulse 1.8s infinite;
}

@keyframes sspssp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(125, 255, 176, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(125, 255, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(125, 255, 176, 0); }
}

.sspssp-hero__key {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
}

.sspssp-hero__key-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.sspssp-hero__key-value {
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: transparent;
    letter-spacing: 0.04em;
}

.sspssp-hero .sspssp-connect-status {
    color: #fff;
}

.sspssp-hero__note {
    margin: 18px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 600px) {
    .sspssp-hero {
        padding: 28px 22px;
    }
    .sspssp-hero__title {
        font-size: 23px;
    }
}

.sspssp-connect-success {
    color: #00a32a;
}

.sspssp-connect-error {
    color: #d63638;
}

.sspssp-connected-note {
    margin-top: 8px !important;
}